Files
xj-zj-android/lib_base/build.gradle
T
2025-06-30 14:12:14 +08:00

70 lines
2.1 KiB
Groovy

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'org.jetbrains.kotlin.android'
}
apply plugin: 'kotlin-android'
android {
compileSdk rootProject.ext.compileSdkVersion
defaultConfig {
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
debug {
minifyEnabled false // 开启混淆
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
dataBinding true
}
namespace 'com.btpj.lib_base'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
api project(path: ':rsalibrary')
configurations {
all*.exclude group: 'com.google.guava', module: 'listenablefuture'
}
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
//androidx
implementation rootProject.ext.androidxLibs
// ViewModel and LiveData
implementation rootProject.ext.jetpackLibs
/* annotationProcessor */
kapt rootProject.ext.annotationProcessorLibs
/*网络请求相关*/
implementation rootProject.ext.networkLibs
/*Glide*/
implementation rootProject.ext.glideLibs
/*AgentWeb*/
implementation rootProject.ext.agentWebLibs
// 其他包
implementation rootProject.ext.commonLibs
}