Files
fengjignqi 1b1575eb8a first
2026-05-16 16:19:39 +08:00

52 lines
1.1 KiB
Groovy

apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
android {
// final sdk = rootProject.ext.sdk
//
// compileSdkVersion sdk.compileSdk
compileSdkVersion 33
defaultConfig {
minSdkVersion 24
targetSdkVersion 30
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
resourcePrefix "ef_"
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier.set('sources') // Gradle 7.x 之后使用这种方式
}
artifacts {
archives sourcesJar
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.github.bumptech.glide:glide:4.9.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "androidx.appcompat:appcompat:1.0.2"
testImplementation 'junit:junit:4.12'
}