93 lines
2.8 KiB
Groovy
93 lines
2.8 KiB
Groovy
|
|
apply plugin: 'com.android.application'
|
||
|
|
apply plugin: 'com.jakewharton.butterknife'
|
||
|
|
|
||
|
|
def releaseTime() {
|
||
|
|
return new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("GMT+8"))
|
||
|
|
}
|
||
|
|
android {
|
||
|
|
compileSdkVersion 33
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
applicationId "cn.artprofessor.cellsysart"
|
||
|
|
|
||
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
||
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||
|
|
versionCode rootProject.ext.android.versionCode
|
||
|
|
versionName rootProject.ext.android.versionName
|
||
|
|
|
||
|
|
renderscriptTargetApi 19
|
||
|
|
renderscriptSupportModeEnabled true
|
||
|
|
multiDexEnabled true
|
||
|
|
|
||
|
|
javaCompileOptions {
|
||
|
|
annotationProcessorOptions {
|
||
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
signingConfigs {
|
||
|
|
release {
|
||
|
|
keyAlias 'cellsys'
|
||
|
|
keyPassword 'akcellsys'
|
||
|
|
storeFile file('D:\\android_key\\airkoon.jks')//这里是你的jks文件路径
|
||
|
|
storePassword 'akcellsys'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
minifyEnabled false
|
||
|
|
signingConfig signingConfigs.release
|
||
|
|
applicationVariants.all { variant ->
|
||
|
|
variant.outputs.all {
|
||
|
|
def fileName = "CellsysART_${defaultConfig.versionName}_${releaseTime()}_${variant.buildType.name}.apk"
|
||
|
|
outputFileName = fileName
|
||
|
|
}
|
||
|
|
}
|
||
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
}
|
||
|
|
|
||
|
|
debug {
|
||
|
|
buildConfigField "boolean", "LOG_DEBUG", "true" //不显示log
|
||
|
|
signingConfig signingConfigs.release
|
||
|
|
}
|
||
|
|
demo {
|
||
|
|
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
||
|
|
signingConfig signingConfigs.release
|
||
|
|
}
|
||
|
|
}
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
||
|
|
}
|
||
|
|
/*repositories {
|
||
|
|
flatDir {
|
||
|
|
dirs 'libs'
|
||
|
|
dirs '../common_base/libs'//c_tsp为module名字
|
||
|
|
}
|
||
|
|
}*/
|
||
|
|
dataBinding {
|
||
|
|
enabled = true
|
||
|
|
}
|
||
|
|
namespace 'cn.artprofessor.cellsysart'
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
testImplementation 'junit:junit:4.+'
|
||
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||
|
|
implementation fileTree(include: ['*.?ar'], dir: 'libs')
|
||
|
|
implementation project(':common_base')
|
||
|
|
// implementation project(':CellsysRxSDK')
|
||
|
|
if (!isRunModule.toBoolean()) {
|
||
|
|
implementation project(':module_user')
|
||
|
|
implementation project(':module_main')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 如果 app 主工程中使用了 Arouter 注解,那就需要这个 annotationProcessor
|
||
|
|
annotationProcessor rootProject.ext.dependencies['arouter-compiler']
|
||
|
|
|
||
|
|
|
||
|
|
}
|