|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
def androidConfig = rootProject.ext.android |
|
|
def androidConfig = rootProject.ext.android |
|
|
android { |
|
|
android { |
|
|
|
|
|
signingConfigs { |
|
|
|
|
|
relese { |
|
|
|
|
|
storeFile file('../xuekaole.jks') |
|
|
|
|
|
keyAlias 'XueKaoLe' |
|
|
|
|
|
keyPassword '1Ucik75SH9uJxPrV' |
|
|
|
|
|
storePassword '0PuY5usdSTULJxS0' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
compileSdk androidConfig.compile_sdk_version |
|
|
compileSdk androidConfig.compile_sdk_version |
|
|
buildToolsVersion androidConfig.build_tools_version |
|
|
buildToolsVersion androidConfig.build_tools_version |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
//Kotlin环境RoomSchemaLocation配置 |
|
|
//Kotlin环境RoomSchemaLocation配置 |
|
|
kapt{ |
|
|
|
|
|
arguments{ |
|
|
|
|
|
arg("room.schemaLocation","$projectDir/schemas") |
|
|
|
|
|
|
|
|
kapt { |
|
|
|
|
|
arguments { |
|
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas") |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
ndk { |
|
|
|
|
|
// 只接入 armeabi-v7a 和 x86 架构 |
|
|
|
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a' |
|
|
|
|
|
} |
|
|
|
|
|
externalNativeBuild { |
|
|
|
|
|
cmake { |
|
|
|
|
|
cppFlags "-std=c++11" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
/*构建类型: 定义Gradle在构建阶段和打包应用时使用的某些属性*/ |
|
|
/*构建类型: 定义Gradle在构建阶段和打包应用时使用的某些属性*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buildTypes { |
|
|
buildTypes { |
|
|
release { |
|
|
release { |
|
|
|
|
|
buildConfigField "int", "PORT", "10006" |
|
|
|
|
|
buildConfigField "String", "ENVIRONMENT", "\"production\"" |
|
|
minifyEnabled false |
|
|
minifyEnabled false |
|
|
|
|
|
shrinkResources false |
|
|
|
|
|
debuggable = true |
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
|
|
signingConfig signingConfigs.relese |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
debug { |
|
|
|
|
|
buildConfigField "int", "PORT", "10003" |
|
|
|
|
|
buildConfigField "String", "ENVIRONMENT", "\"development\"" |
|
|
|
|
|
minifyEnabled false |
|
|
|
|
|
zipAlignEnabled false |
|
|
|
|
|
debuggable = true |
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
|
|
|
signingConfig signingConfigs.relese |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
applicationVariants.all { |
|
|
|
|
|
it.outputs.each { |
|
|
|
|
|
it.outputFileName = "学考乐本地_${defaultConfig.versionName}.apk" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|