Files
yinmeng-android/library/build.gradle

102 lines
3.2 KiB
Groovy
Raw Normal View History

2020-04-02 10:43:40 +08:00
apply plugin: 'com.android.library'
2020-07-06 18:38:23 +08:00
apply plugin: 'kotlin-android'
2020-04-02 10:43:40 +08:00
android {
2021-12-20 10:27:23 +08:00
compileSdkVersion 30
2020-04-02 10:43:40 +08:00
defaultConfig {
minSdkVersion 21
2020-04-02 16:20:03 +08:00
targetSdkVersion 29
2020-04-02 10:43:40 +08:00
versionCode 1
versionName "1.0"
2020-04-24 15:14:59 +08:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020-04-02 10:43:40 +08:00
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled = true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
staging {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2021-12-20 10:27:23 +08:00
buildToolsVersion = '30.0.3'
2020-04-02 10:43:40 +08:00
}
dependencies {
2020-04-24 15:14:59 +08:00
def glideVersion = "4.11.0"
2021-01-05 11:51:57 +08:00
def retrofitVersion = "2.9.0"
def okhttp3 = "3.14.9"
def okio = "2.2.2"
2020-04-02 10:43:40 +08:00
def rxjava_adapter = "2.3.0"
def rxjava = "2.1.7"
def rxjava_android = "2.0.1"
def rxlifecycle = "3.1.0"
2020-04-24 15:14:59 +08:00
def loggerVersion = "2.2.0"
2020-04-02 10:43:40 +08:00
def qiniu = "7.3.15"
def SmartRefreshLayoutVersion = "1.0.3"
def eventbusVersion = "3.0.0"
2021-01-05 11:51:57 +08:00
def fragment_version = "1.2.5"
2020-04-02 10:43:40 +08:00
implementation fileTree(dir: 'libs', include: ['*.jar'])
2021-01-05 11:51:57 +08:00
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
2020-04-02 10:43:40 +08:00
2021-01-05 11:51:57 +08:00
api 'androidx.constraintlayout:constraintlayout:2.0.4'
api 'androidx.appcompat:appcompat:1.2.0'
2020-04-24 15:14:59 +08:00
api 'androidx.recyclerview:recyclerview:1.1.0'
2021-01-05 11:51:57 +08:00
api 'androidx.cardview:cardview:1.0.0'
api 'androidx.gridlayout:gridlayout:1.0.0'
api "androidx.core:core-ktx:1.3.2"
api "androidx.fragment:fragment:$fragment_version"
api "androidx.fragment:fragment-ktx:$fragment_version"
api 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
api 'com.google.android.material:material:1.2.1'
2020-04-02 10:43:40 +08:00
api "com.squareup.retrofit2:retrofit:${retrofitVersion}"
api "com.squareup.okhttp3:okhttp:${okhttp3}"
api "com.squareup.okhttp3:logging-interceptor:${okhttp3}"
api "com.squareup.retrofit2:adapter-rxjava2:${rxjava_adapter}"
api 'com.google.code.gson:gson:2.8.7'
2020-04-02 10:43:40 +08:00
api "com.squareup.okio:okio:${okio}"
api "com.scwang.smartrefresh:SmartRefreshLayout:${SmartRefreshLayoutVersion}"
api "com.scwang.smartrefresh:SmartRefreshHeader:${SmartRefreshLayoutVersion}"
api "io.reactivex.rxjava2:rxjava:${rxjava}"
api "io.reactivex.rxjava2:rxandroid:${rxjava_android}"
api "com.trello.rxlifecycle3:rxlifecycle:${rxlifecycle}"
api "com.trello.rxlifecycle3:rxlifecycle-android:${rxlifecycle}"
api "com.trello.rxlifecycle3:rxlifecycle-components:${rxlifecycle}"
2020-04-02 10:43:40 +08:00
api "com.github.bumptech.glide:glide:${glideVersion}"
annotationProcessor "com.github.bumptech.glide:compiler:${glideVersion}"
api "com.orhanobut:logger:${loggerVersion}"
api "com.qiniu:qiniu-android-sdk:${qiniu}"
api "org.greenrobot:eventbus:${eventbusVersion}"
2021-01-05 11:51:57 +08:00
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
2020-04-02 10:43:40 +08:00
2021-11-16 15:00:41 +08:00
api 'com.github.getActivity:ToastUtils:9.6'
2020-04-02 10:43:40 +08:00
}
2020-07-06 18:38:23 +08:00
repositories {
mavenCentral()
}