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" // multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { buildConfigField("Boolean","LOG_ENABLE","false") buildConfigField("Boolean","SHOW_LIFECYCLER_LOG","false") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { buildConfigField("Boolean","LOG_ENABLE","true") buildConfigField("Boolean","SHOW_LIFECYCLER_LOG","false") minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures { viewBinding true dataBinding true } } dependencies { // implementation fileTree(include: ['*.jar',"*.aar"], dir: 'libs') // implementation 'androidx.legacy:legacy-support-v4:1.0.0' 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 //Activity-ktx 扩展 api customDependencies.Activity_ktx //状态栏 api customDependencies.UltimateBarX //glide api customDependencies.Glide kapt customDependencies.GlideCompiler //glide translation api customDependencies.GlideTranslation //RxJava RxAndroid // api customDependencies.RxJava // api customDependencies.RxAndroid coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' //MMKV api customDependencies.MMKV // liveEventBus api customDependencies.liveEventBus // okhttp api customDependencies.Okhttp api customDependencies.OkhttpLoggingIntercepter api customDependencies.Retrofit // api customDependencies.RetrofitScalars // api customDependencies.RetrofitGson // api customDependencies.RetrofitProtobuf api customDependencies.Rxjava api customDependencies.RxAndroid api customDependencies.Retrofit2Rxjava3Adapter }