ext { // module是否独立运行 isBuildModule = false android = [ compileSdk : 32, minSdk : 21, targetSdk : 33, versionCode: 1, versionName: "1.0" ] dependencies = [ //----------- Android------------- coreKtx : "androidx.core:core-ktx:1.7.0", appcompat : "androidx.appcompat:appcompat:1.4.1", material : "com.google.android.material:material:1.5.0", constraintlayout : "androidx.constraintlayout:constraintlayout:2.1.3", junit : "junit:junit:4.13.2", junitExt : "androidx.test.ext:junit:1.1.3", espresso : "androidx.test.espresso:espresso-core:3.4.0", //----------- Jetpack---------------- viewModelKtx : "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1", liveDataKtx : "androidx.lifecycle:lifecycle-livedata-ktx:2.4.1", activityKtx : "androidx.activity:activity-ktx:1.2.3", //---------------UI相关------------- smartRefreshCore : 'io.github.scwang90:refresh-layout-kernel:2.0.5', smartRefreshHeader : 'io.github.scwang90:refresh-header-classics:2.0.5', smartRefreshFooter : 'io.github.scwang90:refresh-footer-classics:2.0.5', recyclerview : 'androidx.recyclerview:recyclerview:1.2.1', // google官方的flex布局 flexbox : 'com.google.android.flexbox:flexbox:3.0.0', // 沉浸式状态栏 immersionbar : 'com.geyifeng.immersionbar:immersionbar:3.2.2', immersionbar_ktx : 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2', // BaseRecyclerViewAdapterHelper BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7', // material风格功能强大的Dialog materialDialogsCore : 'com.afollestad.material-dialogs:core:3.3.0', materialDialogsLifecycle : 'com.afollestad.material-dialogs:lifecycle:3.3.0', materialDialogsbottomsheets : 'com.afollestad.material-dialogs:bottomsheets:3.3.0', // 轮播图 https://github.com/youth5201314/banner banner : 'io.github.youth5201314:banner:2.2.2', // 更强大的webView //agentWeb : 'com.github.Just-son.AgentWeb:agent-web-core:v4.1.9-androidx', agentWeb : 'com.github.Justson.AgentWeb:agentweb-core:v5.0.0-alpha.1-androidx', // (必选) agentWeb_filechooser : 'com.github.Justson.AgentWeb:agentweb-filechooser:v5.0.0-alpha.1-androidx',// (可选) agentWeb_downloader : 'com.github.Justson:Downloader:v5.0.0-androidx',// (可选) // 屏幕适配https://github.com/JessYanCoding/AndroidAutoSize //AndroidAutoSize : 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1', //---------------存储相关------------------ // 替代SharePreference mmkv : 'com.tencent:mmkv:1.2.13', //---------------网络相关------------------ retrofit : 'com.squareup.retrofit2:retrofit:2.9.0', converterGson : 'com.squareup.retrofit2:converter-gson:2.9.0', // okhttp3 日志拦截器 loggingInterceptor : 'com.squareup.okhttp3:logging-interceptor:4.8.0', // okhttp3 缓存 PersistentCookieJar : 'com.github.franmontiel:PersistentCookieJar:v1.0.1', //---------------图片相关------------------ glide : 'com.github.bumptech.glide:glide:4.12.0', // picture_selector : 'io.github.lucksiege:pictureselector:v3.10.0', picture_compress : 'io.github.lucksiege:compress:v3.10.0', picture_ucrop : 'io.github.lucksiege:ucrop:v3.10.0', picture_camerax : 'io.github.lucksiege:camerax:v3.10.7', // camerax mnmlKitScaner : 'com.github.maning0303:MNMLKitScanner:V1.0.4', barcode_scanning : 'com.google.mlkit:barcode-scanning:17.0.2', camerax_core : 'androidx.camera:camera-core:1.1.0-beta02', camerax : 'androidx.camera:camera-camera2:1.1.0-beta02', camerax_lifecycle : 'androidx.camera:camera-lifecycle:1.1.0-beta02', camerax_view : 'androidx.camera:camera-view:1.1.0-beta02', // 应用优化升级 bugly_update : 'com.tencent.bugly:crashreport_upgrade:1.6.1', bugly_nativecrashreport : 'com.tencent.bugly:nativecrashreport:3.7.1', leakcanary : 'com.squareup.leakcanary:leakcanary-android:2.9.1', // ARouter路由框架 arouter_api : 'com.alibaba:arouter-api:1.5.2', arouter_compiler : 'com.alibaba:arouter-compiler:1.5.2', // permission-x permissionx : 'com.guolindev.permissionx:permissionx:1.7.1', // multidex multidex : 'com.android.support:multidex:1.0.3', // http stetho : 'com.facebook.stetho:stetho:1.6.0', stetho_okttp3 : 'com.facebook.stetho:stetho-okhttp3:1.6.0' ] }