| /*if(isModule.toBoolean()){//如果是组件模式---可以单独运行 | 
|     apply plugin: 'com.android.application' | 
| }else {//集成模式,不能单独运行 | 
|     apply plugin: 'com.android.library' | 
| }*/ | 
|   | 
| apply plugin: 'com.android.library' | 
|   | 
| android { | 
|     compileSdkVersion build_versions.compile_sdk | 
|     //buildToolsVersion build_versions.build_tools | 
|   | 
|     defaultConfig { | 
|         minSdkVersion build_versions.min_sdk | 
|         targetSdkVersion build_versions.target_sdk | 
|         versionCode 1 | 
|         versionName "1.0" | 
|   | 
|         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
|         consumerProguardFiles 'consumer-rules.pro' | 
|   | 
|         javaCompileOptions { | 
|             annotationProcessorOptions { | 
|                 arguments = [ AROUTER_MODULE_NAME : project.getName() ] | 
|                 includeCompileClasspath = true | 
|             } | 
|         } | 
|     } | 
|   | 
|     buildTypes { | 
|         release { | 
|             minifyEnabled false | 
|             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 
|         } | 
|     } | 
|   | 
|     /** | 
|      * 组件模式和集成模式下清单的切换 | 
|      */ | 
|     /*sourceSets { | 
|         main { | 
|             if (isModule.toBoolean()) {//组件模式下 | 
|                 manifest.srcFile 'src/main/AndroidManifest.xml' | 
|             } else {//集成模式下 | 
|                 manifest.srcFile 'src/main/library/AndroidManifest.xml' | 
|                 //集成开发模式下排除debug文件夹中的所有Java文件 | 
|                 java { | 
|                     exclude 'debug/**' | 
|                 } | 
|             } | 
|         } | 
|     }*/ | 
|   | 
|     dataBinding { | 
|         enabled = true | 
|     } | 
|     compileOptions { | 
|         sourceCompatibility JavaVersion.VERSION_1_8 | 
|         targetCompatibility JavaVersion.VERSION_1_8 | 
|     } | 
|     ndkVersion '20.0.5594570' | 
| } | 
|   | 
| dependencies { | 
|     implementation fileTree(dir: 'libs', include: ['*.jar']) | 
|     implementation deps.support.constraintlayout | 
|     implementation deps.support.appcompat | 
|     implementation deps.support.recyclerview | 
|     implementation 'androidx.viewpager2:viewpager2:1.0.0' | 
|   | 
|     testImplementation deps.test.junit | 
|     androidTestImplementation deps.test.ext_junit | 
|     androidTestImplementation deps.test.test_espresso | 
|   | 
|     implementation deps.hilt.hilt_android | 
|     annotationProcessor  deps.hilt.hilt_android_compiler | 
|   | 
|     implementation deps.hilt.hilt_viewmodel | 
|     annotationProcessor  deps.hilt.hilt_compiler | 
|   | 
|     api project(path: ':lib_opensource') | 
|   | 
|     implementation deps.room.runtime | 
|     annotationProcessor deps.room.compiler | 
|     implementation deps.room.rxjava2 | 
|   | 
|     api 'top.zibin:Luban:1.1.8' | 
| } |