app-release

master
hwf452 2 years ago
parent 97f18a6ff9
commit 035e11f898

@ -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
} }
} }

@ -7,7 +7,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.0.1' classpath 'com.android.tools.build:gradle:8.1.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1' classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

Loading…
Cancel
Save