plugins { id 'com.android.library' id 'kotlin-android' } android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { minSdkVersion 21 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' } viewBinding { enabled = true } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' //打包方法超量 api "androidx.multidex:multidex:2.0.1" //网络请求,数据解析 api 'com.squareup.retrofit2:retrofit:2.9.0' api 'com.squareup.retrofit2:converter-gson:2.9.0' api 'com.squareup.okhttp3:okhttp:4.9.1' //Glide api 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' //android4.4以上沉浸式状态栏和导航栏实现以及Bar的其他管理 api 'com.gyf.immersionbar:immersionbar:3.0.0' // fragment快速实现(可选) api 'com.gyf.immersionbar:immersionbar-components:3.0.0' // kotlin扩展(可选) api 'com.gyf.immersionbar:immersionbar-ktx:3.0.0' //rxjava api 'io.reactivex.rxjava2:rxjava:2.2.4' api 'io.reactivex.rxjava2:rxandroid:2.1.0' api 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' //chuck 抓包 debugCompile 'com.readystatesoftware.chuck:library:1.1.0' releaseCompile 'com.readystatesoftware.chuck:library-no-op:1.1.0' }