59 lines
1.3 KiB
Groovy
59 lines
1.3 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion "30.0.2"
|
|
|
|
defaultConfig {
|
|
applicationId "com.chaoran"
|
|
minSdkVersion 8
|
|
targetSdkVersion 15
|
|
versionCode 1
|
|
versionName "V1.079"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(RELEASE_STOREFILE);
|
|
storePassword RELEASE_STORE_PASSWORD;
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false //是否代码混淆
|
|
multiDexEnabled true //防止方法数量超过65536导致错误
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
//配置签名
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
//关闭代码格式检查
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
//加载动态库
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDir(['libs'])
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//加载jar包
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
} |