buildscript { ext.okhttp_version = '3.7.0' ext.retrofit_version = '2.9.0' ext.rxlifecycle_version = '2.2.1' ext.stetho_version = '1.3.1' ext.kotlin_version = "1.4.21" } plugins { id 'com.android.library' id 'kotlin-android' } android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.4.0' api "com.squareup.okhttp3:okhttp:$okhttp_version" api "com.squareup.okhttp3:logging-interceptor:$okhttp_version" api "com.squareup.retrofit2:retrofit:2.9.0" api "com.squareup.retrofit2:adapter-rxjava2:2.9.0" api "com.squareup.retrofit2:converter-gson:2.9.0" api 'com.squareup.retrofit2:converter-scalars:2.4.0' api 'io.reactivex.rxjava2:rxjava:2.1.12' api 'io.reactivex.rxjava2:rxandroid:2.0.2' implementation 'com.qiniu:qiniu-android-sdk:8.2.+' }