|
|
|
@ -3,7 +3,6 @@ apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
|
|
android {
|
|
|
|
compileSdk 33
|
|
|
|
compileSdk 33
|
|
|
|
buildToolsVersion '33.0.0'
|
|
|
|
buildToolsVersion '33.0.0'
|
|
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.rehome.sbcksyy"
|
|
|
|
applicationId "com.rehome.sbcksyy"
|
|
|
|
minSdkVersion 24
|
|
|
|
minSdkVersion 24
|
|
|
|
@ -18,13 +17,26 @@ android {
|
|
|
|
abiFilters 'armeabi-v7a','arm64-v8a'
|
|
|
|
abiFilters 'armeabi-v7a','arm64-v8a'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
viewBinding = true
|
|
|
|
|
|
|
|
buildConfig = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
|
|
|
release {
|
|
|
|
|
|
|
|
keyAlias 'key0'
|
|
|
|
|
|
|
|
storeFile file('../key/keystore1')
|
|
|
|
|
|
|
|
storePassword 'abc123123'
|
|
|
|
|
|
|
|
keyPassword 'abc123123'
|
|
|
|
|
|
|
|
v1SigningEnabled true //是否开启V1签名
|
|
|
|
|
|
|
|
v2SigningEnabled true //是否开启V2签名
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* keypassword:abc123123 alias key0*/
|
|
|
|
/* keypassword:abc123123 alias key0*/
|
|
|
|
buildTypes {
|
|
|
|
buildTypes {
|
|
|
|
|
|
|
|
debug {
|
|
|
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
|
|
|
buildConfigField "boolean", "LOG_ERROR", "true"
|
|
|
|
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
@ -39,7 +51,8 @@ android {
|
|
|
|
zipAlignEnabled true // 对齐zip
|
|
|
|
zipAlignEnabled true // 对齐zip
|
|
|
|
debuggable false // 是否debug
|
|
|
|
debuggable false // 是否debug
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
buildConfigField("boolean","LOG_ERROR","false")
|
|
|
|
buildConfigField "boolean", "LOG_ERROR", "false"
|
|
|
|
|
|
|
|
signingConfig signingConfigs.release // 打包签名信息
|
|
|
|
//修改生成的apk名字
|
|
|
|
//修改生成的apk名字
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
variant.outputs.all {
|
|
|
|
variant.outputs.all {
|
|
|
|
@ -56,8 +69,8 @@ android {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
namespace 'com.rehome.sbcksyy'
|
|
|
|
namespace 'com.rehome.sbcksyy'
|
|
|
|
compileOptions {
|
|
|
|
compileOptions {
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|