123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- if (rootProject.ext.isDebtModule) {
- apply plugin: 'com.android.library'
- } else {
- apply plugin: 'com.android.application'
- }
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 1
- versionName "1.0"
- if (!rootProject.ext.isDebtModule) {
- applicationId "com.winhc.debt"
- }else{
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
- }
- }
- }
- }
- compileOptions {
- sourceCompatibility rootProject.ext.appSourceCompatibility
- targetCompatibility rootProject.ext.appTargetCompatibility
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main {
- if (!rootProject.ext.isDebtModule) {
- manifest.srcFile 'src/debug/AndroidManifest.xml'
- java.srcDir 'src/main/java/'
- } else {
- manifest.srcFile 'src/main/AndroidManifest.xml'
- java.srcDir 'src/main/java/'
- }
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation project(path: ':busCore')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- if (rootProject.ext.isDebtModule) {
- annotationProcessor "com.alibaba:arouter-compiler:1.5.2"
- }
- }
|