123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- apply plugin: 'com.android.library'
- apply plugin: 'com.jakewharton.butterknife'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- android {
- compileSdkVersion build_versions.target_sdk
- defaultConfig {
- minSdkVersion build_versions.min_sdk
- targetSdkVersion build_versions.target_sdk
- versionCode 1
- versionName "1.0"
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: 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-optimize.txt'), 'proguard-rules.pro'
- }
- }
- buildFeatures {
- viewBinding = true
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation deps.constraint_layout
- implementation 'com.android.support:design:28.0.0'
- implementation project(':uchat_common')
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
- annotationProcessor deps.butterknife_annotationProcessor
- kapt deps.butterknife_annotationProcessor
- annotationProcessor deps.arouter_compiler
- kapt deps.arouter_compiler
- implementation 'com.kyleduo.switchbutton:library:2.0.0'
- }
|