apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { compileSdkVersion COMPILE_SDK_VERSION.toInteger() defaultConfig { minSdkVersion MIN_SDK_VERSION.toInteger() targetSdkVersion TARGET_SDK_VERSION.toInteger() testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dataBinding { enabled = true } viewBinding { enabled = true } sourceSets { main { java.srcDirs = [ 'src/main/java', 'src/module_easypermission/java', 'src/module_luban/java', 'src/module_easyphoto/java', 'src/module_common/java', ] res.srcDirs = [ 'src/main/res', 'src/module_easypermission/res', 'src/module_easyphoto/res', 'src/module_common/res', ] } } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } staging { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } buildToolsVersion = '30.0.3' } dependencies { def glideVersion = "4.13.2" def retrofitVersion = "2.9.0" def okhttp3 = "4.9.3" def okio = "2.8.0" def rxjava_adapter = "2.3.0" def rxjava = "2.1.7" def rxjava_android = "2.0.1" def rxlifecycle = "3.1.0" def loggerVersion = "2.2.0" def qiniu = "8.4.4" def SmartRefreshLayoutVersion = "1.0.3" def eventbusVersion = "3.0.0" def fragment_version = "1.3.6" def GlideTransformationsVersion = "3.0.1" implementation fileTree(dir: 'libs', include: ['*.jar']) testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' api 'androidx.constraintlayout:constraintlayout:2.1.4' api 'androidx.appcompat:appcompat:1.4.2' api 'androidx.recyclerview:recyclerview:1.2.1' api 'androidx.cardview:cardview:1.0.0' api 'androidx.gridlayout:gridlayout:1.0.0' api "androidx.core:core-ktx:1.7.0" api "androidx.fragment:fragment:$fragment_version" api "androidx.fragment:fragment-ktx:$fragment_version" api 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' api 'androidx.lifecycle:lifecycle-extensions:2.2.0' api 'com.google.android.material:material:1.6.1' api "com.squareup.retrofit2:retrofit:${retrofitVersion}" api "com.squareup.okhttp3:okhttp:${okhttp3}" api "com.squareup.okhttp3:logging-interceptor:${okhttp3}" api "com.squareup.okio:okio:${okio}" api "com.squareup.retrofit2:adapter-rxjava2:${rxjava_adapter}" api 'com.google.code.gson:gson:2.9.0' 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}" 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}" api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" api 'com.github.getActivity:ToastUtils:10.5' api 'androidx.legacy:legacy-support-v4:1.0.0' api 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0' api 'com.github.chrisbanes:PhotoView:2.3.0' //mmkv api 'com.tencent:mmkv:1.2.13' api "jp.wasabeef:glide-transformations:${GlideTransformationsVersion}" } repositories { mavenCentral() }