apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' apply from: "../maven_push.gradle" kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) } } android { compileSdkVersion rootProject.ext.android["compileSdkVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"] defaultConfig { minSdkVersion rootProject.ext.android["minSdkVersion"] targetSdkVersion rootProject.ext.android["targetSdkVersion"] versionCode 1 versionName "1.0" multiDexEnabled true testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' } lintOptions { abortOnError false } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { res.srcDirs = [ 'src/main/res' ] } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' api(rootProject.ext.dependencies["ptr-lib-release"]){transitive=true} api(rootProject.ext.dependencies["support-v4"]) api(rootProject.ext.dependencies["appcompat-v7"]) api(rootProject.ext.dependencies["design"]) implementation(rootProject.ext.dependencies["arouter"]) kapt(rootProject.ext.dependencies["arouter-compiler"]) compileOnly(rootProject.ext.dependencies["systembartint"]) }