81 lines
2.2 KiB
Groovy
81 lines
2.2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt' //kapt3插件
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'org.greenrobot.greendao'
|
|
|
|
//apply plugin: 'com.jfrog.bintray'
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
|
|
defaultConfig {
|
|
minSdkVersion 24
|
|
targetSdkVersion 31
|
|
multiDexEnabled true
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
//启用renderscript
|
|
// renderscriptTargetApi = 18
|
|
// renderscriptSupportModeEnabled = true
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
|
//design包
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
compileOnly 'com.google.android.material:material:1.4.0'
|
|
|
|
//appcompat包
|
|
compileOnly 'androidx.appcompat:appcompat:1.4.1'
|
|
|
|
//recyclerview包
|
|
compileOnly 'androidx.recyclerview:recyclerview:1.2.1'
|
|
compileOnly 'androidx.annotation:annotation:1.3.0'
|
|
compileOnly 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
//流式布局
|
|
compileOnly 'com.google.android:flexbox:2.0.1'
|
|
//沉浸式
|
|
compileOnly 'com.readystatesoftware.systembartint:systembartint:1.0.3'
|
|
|
|
//Log日志格式美化包
|
|
compileOnly 'com.orhanobut:logger:2.2.0'
|
|
|
|
//压缩与加密
|
|
implementation 'net.lingala.zip4j:zip4j:1.3.2'
|
|
|
|
compileOnly 'org.greenrobot:greendao:3.2.2'
|
|
compileOnly 'androidx.exifinterface:exifinterface:1.3.3'
|
|
compileOnly 'com.google.guava:guava:27.1-jre'
|
|
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.5'
|
|
implementation 'joda-time:joda-time:2.9.9'
|
|
// implementation "androidx.core:core-ktx:1.2.0"
|
|
|
|
|
|
// testImplementation 'junit:junit:4.13'
|
|
// androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
}
|
|
|