72 lines
2.1 KiB
Groovy
72 lines
2.1 KiB
Groovy
if (isRunModule.toBoolean()) {
|
|
apply plugin: 'com.android.application'
|
|
} else {
|
|
apply plugin: 'com.android.library'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
|
|
if (isRunModule.toBoolean()){
|
|
applicationId "com.artprofessor.module_user"
|
|
}
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode rootProject.ext.android.versionCode
|
|
versionName rootProject.ext.android.versionName
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
buildConfigField "boolean", "LOG_DEBUG", "true" //不显示log
|
|
//signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
// sourceSets {
|
|
// main {
|
|
// if (isRunAlone.toBoolean()) {
|
|
// manifest.srcFile 'src/main/debug/AndroidManifest.xml'
|
|
// } else {
|
|
// manifest.srcFile 'src/main/AndroidManifest.xml'
|
|
// java {
|
|
// // 全部 module 一起编译时剔除 debug 目录
|
|
// exclude '**/debug/**'
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
namespace 'com.artprofessor.module_user'
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation project(':common_base')
|
|
implementation project(':module_main')
|
|
// implementation project(':TaskQueue')
|
|
// arouter-compiler
|
|
annotationProcessor rootProject.ext.dependencies['arouter-compiler']
|
|
annotationProcessor rootProject.ext.dependencies['glide-compiler']
|
|
|
|
api rootProject.ext.dependencies['materialedittext']
|
|
} |