apply plugin: 'com.android.library' android { compileSdkVersion COMPILE_SDK_VERSION as int buildToolsVersion BUILD_TOOLS_VERSION defaultConfig { minSdkVersion MIN_SDK_VERSION targetSdkVersion TARGET_SDK_VERSION as int versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.2.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' api 'com.qmuiteam:qmui:1.2.0' //design 包依赖 implementation "com.android.support:design:29.0.0" //网络请求依赖 api 'io.reactivex.rxjava2:rxjava:2.2.4' api 'io.reactivex.rxjava2:rxandroid:2.0.2' api 'com.squareup.retrofit2:retrofit:2.4.0' api 'com.squareup.retrofit2:converter-gson:2.4.0' api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' api 'com.squareup.okhttp3:okhttp:3.11.0' api 'com.squareup.okhttp3:logging-interceptor:3.10.0' api 'com.squareup.retrofit2:converter-scalars:2.3.0' api 'com.google.code.gson:gson:2.8.5' //butterknife 依赖 api 'com.jakewharton:butterknife:10.2.3' annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3' //glide api 'com.github.bumptech.glide:glide:4.9.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0' //RecyclerViewAdapter 依赖 api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46' //fastJson api 'com.alibaba:fastjson:1.1.71.android' //防止rxJava内存泄漏 api 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0' //沉浸式状态栏 api('com.github.niorgai:StatusBarCompat:2.3.3', { exclude group: 'androidx.appcompat:appcompat' exclude group: 'com.google.android.material:material' }) api 'com.makeramen:roundedimageview:2.2.1' // 此处为引入开源库代码 //loader api 'com.wang.avi:library:2.1.3' api 'com.github.PhilJay:MPAndroidChart:v3.1.0' api 'me.dm7.barcodescanner:zxing:1.9.13' // RxPermissions 的使用方法详解 api 'com.github.tbruyelle:rxpermissions:0.10.2' api 'org.greenrobot:eventbus:3.2.0' }