plugins { id 'com.android.library' id 'kotlin-android' id 'kotlin-kapt' } android { compileSdk rootProject.ext.android.compile_sdk_version buildToolsVersion rootProject.ext.android.build_tools_version defaultConfig { minSdk rootProject.ext.android.min_sdk_version targetSdk rootProject.ext.android.target_sdk_version versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { buildConfigField("Boolean","LOG_ENABLE","false") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { buildConfigField("Boolean","LOG_ENABLE","true") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures { viewBinding true dataBinding true } } dependencies { rootProject.ext.dependencies_required.each{ k,v -> implementation v} testImplementation rootProject.ext.dependencies_testImplementation.junit rootProject.ext.dependencies_androidTestImplementation.each{ k,v -> androidTestImplementation v} def customDependencies = rootProject.ext.dependencies_custom //状态栏 api customDependencies.UltimateBarX //glide api customDependencies.Glide kapt customDependencies.GlideCompiler //glide translation api customDependencies.GlideTranslation }