|
|
@@ -0,0 +1,57 @@
|
|
|
+if (isModule.toBoolean()) {
|
|
|
+ apply plugin: 'com.android.application'
|
|
|
+} else {
|
|
|
+ apply plugin: 'com.android.library'
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+android {
|
|
|
+ compileSdkVersion build_versions.target_sdk
|
|
|
+// buildToolsVersion "28.0.2"
|
|
|
+
|
|
|
+ defaultConfig {
|
|
|
+ minSdkVersion build_versions.min_sdk
|
|
|
+ targetSdkVersion build_versions.target_sdk
|
|
|
+ versionCode 1
|
|
|
+ versionName "1.0"
|
|
|
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
+ javaCompileOptions {
|
|
|
+ annotationProcessorOptions {
|
|
|
+ arguments = [moduleName: project.getName()]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ compileOptions {
|
|
|
+ sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
+ targetCompatibility JavaVersion.VERSION_1_8
|
|
|
+ }
|
|
|
+
|
|
|
+ sourceSets {
|
|
|
+ main {
|
|
|
+ if (isModule.toBoolean()) {
|
|
|
+ manifest.srcFile 'src/main/module/AndroidManifest.xml'
|
|
|
+ } else {
|
|
|
+ manifest.srcFile 'src/main/AndroidManifest.xml'
|
|
|
+ //集成开发模式下排除debug文件夹中的所有Java文件
|
|
|
+ java {
|
|
|
+ exclude 'debug/**'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ buildTypes {
|
|
|
+ release {
|
|
|
+ minifyEnabled false
|
|
|
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+dependencies {
|
|
|
+ compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
+ annotationProcessor deps.arouter_compiler
|
|
|
+ implementation project(':lib_common')
|
|
|
+compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
|
+}
|