70 lines
2.4 KiB
Groovy
70 lines
2.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
buildToolsVersion rootProject.ext.android.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode rootProject.ext.android.versionCode
|
|
versionName rootProject.ext.android.versionName
|
|
applicationId rootProject.ext.android.applicationId
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
}
|
|
}
|
|
|
|
multiDexEnabled true
|
|
// externalNativeBuild {
|
|
// ndk {
|
|
// // 设置支持的SO库架构
|
|
// abiFilters 'armeabi'
|
|
// }
|
|
// }
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
keyAlias = 'CarLauncher'
|
|
storeFile file('../keystore/car_launcher.jks')
|
|
storePassword 'ZDauto123456'
|
|
keyPassword 'ZDauto123456'
|
|
}
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.release
|
|
debuggable = true
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
signingConfig signingConfigs.release
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
api rootProject.ext.dependencies.androidxappcompat
|
|
debugImplementation rootProject.ext.dependencies.leakcanary
|
|
testImplementation rootProject.ext.dependencies.leakcanary
|
|
releaseImplementation rootProject.ext.dependencies.leakcanarynoop
|
|
releaseImplementation rootProject.ext.dependencies.androidxmultidex
|
|
|
|
if (Boolean.valueOf(RELEASE)) {
|
|
api rootProject.ext.dependencies.modulemain
|
|
api rootProject.ext.dependencies.mogocommons
|
|
implementation rootProject.ext.dependencies.moduledemo
|
|
implementation rootProject.ext.dependencies.moduledemo2
|
|
} else {
|
|
implementation project(':modules:mogo-module-main')
|
|
implementation project(':foudations:mogo-commons')
|
|
implementation project(':demo:demo-module-map')
|
|
implementation project(':demo:demo-module-map2')
|
|
}
|
|
}
|