53 lines
1.2 KiB
Groovy
53 lines
1.2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
//apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
android {
|
|
namespace 'com.esafirm.imagepicker'
|
|
// final sdk = rootProject.ext.sdk
|
|
//
|
|
// compileSdkVersion sdk.compileSdk
|
|
compileSdk 36
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 36
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lint {
|
|
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'
|
|
}
|