12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- 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")
- 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 {
- 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
-
-
-
-
-
-
- }
|