import java.text.SimpleDateFormat apply plugin: 'com.android.application' apply plugin: 'com.hihonor.mcs.asplugin' apply plugin: 'io.freefair.lombok' // ✅ 加上这个 android { compileSdkVersion 34 lintOptions { checkReleaseBuilds false // 关闭 release 打包时 lint 检查 abortOnError false // 即使有错误也不终止编译 } signingConfigs { release { storeFile file('../chengkong.jks') keyAlias 'chengkong' keyPassword '111111' storePassword '111111' } debug { storeFile file('../chengkong.jks') keyAlias 'chengkong' keyPassword '111111' storePassword '111111' } config { storeFile file('../chengkong.jks') keyAlias 'chengkong' keyPassword '111111' storePassword '111111' } } buildFeatures { dataBinding true } defaultConfig { applicationId "com.ckkj.water" minSdkVersion 26 targetSdkVersion 30 versionCode 1 versionName "1.0.1"//version 1.0.0-appstore version 1.0.0-xh // 添加自定义字段 buildConfigField "String", "APP_VERSION_NAME", "\"${versionName}\"" buildConfigField "int", "APP_VERSION_CODE", "${versionCode}" resConfigs "zh", "en" } buildTypes { debug { signingConfig signingConfigs.config } release { signingConfig signingConfigs.config minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildFeatures { viewBinding true } sourceSets { main { jniLibs.srcDir 'libs' } } defaultConfig { ndk { //设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so) abiFilters "arm64-v8a" // 同时支持 32 和 64 位 // abiFilters "armeabi-v7a" // 只打 32 位 // abiFilters "arm64-v8a" // 只打 64 位 } } packagingOptions { exclude 'META-INF/filepicker_release.kotlin_module' exclude 'lib/x86/libc++_shared.so' exclude 'lib/armeabi-v7a/libc++_shared.so' exclude 'lib/arm64-v8a/libc++_shared.so' exclude 'lib/x86_64/libc++_shared.so' } repositories { flatDir { dirs 'libs' } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation files('libs/QWeather_Public_Android_V5.1.2.jar') implementation 'com.google.android.material:material:1.6.0' // testImplementation 'junit:junit:4.+' // //(gson生成和解析库) implementation 'com.google.code.gson:gson:2.8.0' api ('com.squareup.retrofit2:converter-gson:2.0.2'){ exclude group : 'com.google.code.gson' } implementation "androidx.core:core:1.5.0" //针对rxjava2.x(adapter-rxjava2的版本要 >= 2.2.0) api 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' api 'io.reactivex.rxjava2:rxjava:2.1.7' api 'io.reactivex.rxjava2:rxandroid:2.0.1' //okhttp的log信息 implementation 'com.squareup.okhttp3:okhttp:4.9.3' // 替换为最新版本 implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'net.i2p.crypto:eddsa:0.3.0' implementation "com.mapzen:on-the-road:1.2.0" //fastJson implementation files('libs\\fastjson-1.2.40.jar') implementation project(path: ':imagepickerl') //消息传递 implementation 'de.greenrobot:eventbus:3.0.0-beta1' implementation 'org.greenrobot:eventbus:3.3.1' implementation 'com.trello.rxlifecycle2:rxlifecycle:2.2.1' implementation 'com.trello.rxlifecycle2:rxlifecycle-android:2.2.1' implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1' //banner implementation 'io.github.youth5201314:banner:2.2.3' implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3' implementation("com.github.bumptech.glide:glide:4.12.0") annotationProcessor ("com.github.bumptech.glide:compiler:4.12.0") //BaseRecyclerViewAdapterHelper implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30' //下拉刷新,上拉加载 implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6' implementation 'io.github.scwang90:refresh-header-classics:2.0.6' implementation 'io.github.scwang90:refresh-footer-classics:2.0.6' //权限获取 implementation 'pub.devrel:easypermissions:3.0.0' implementation 'com.github.getActivity:XXPermissions:18.5' /*****高德相关*****/ //定位功能 // implementation 'com.amap.api:location:latest.integration' //圆形视图库 implementation 'com.makeramen:roundedimageview:2.3.0' //字母索引View, implementation 'com.github.lzjin:SideBarView:1.0.1' //拼音工具类 implementation 'com.belerweb:pinyin4j:2.5.0' //地区三级联动插件 implementation 'com.contrarywind:Android-PickerView:4.1.9' // implementation 'com.contrarywind:Android-Picker:4.1.0' //富文本处理图片 implementation 'org.jsoup:jsoup:1.11.2' //FlexboxLayoutManager 处理recycleview的不规整布局 implementation 'com.google.android:flexbox:2.0.1' //吐司框架 implementation 'com.github.getActivity:Toaster:12.5' //鲁班图片压缩 implementation 'top.zibin:Luban:1.1.8' //带有侧滑功能的recyclerview implementation 'com.yanzhenjie.recyclerview:x:1.3.2' // implementation 'com.github.luqiming666:SwipeRecyclerView:1.4.8' //Activity与Fragmen实现沉浸式状态栏 implementation 'com.github.tangguna:immersion:1.0.1' //viewpager2 implementation 'androidx.viewpager2:viewpager2:1.0.0' //文件管理框架 implementation 'com.droidninja:filepicker:2.2.5' // implementation 'com.github.angads25:filepicker:1.1.1' // implementation 'io.github.tutorialsandroid:filepicker:9.2.5' implementation 'me.rosuh:AndroidFilePicker:1.0.1' implementation 'com.github.ns3chz:Picker:1.0.2' implementation 'com.github.zzy0516alex:FileSelectorRelease:v6.2' implementation 'com.github.chrisbanes:PhotoView:2.3.0' implementation 'androidx.appcompat:appcompat:1.3.1'//(最低版本) // implementation 'com.umeng.umsdk:share-wx:7.1.5' //微信完整版 // implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.0'//微信官方依赖库,必选 //商品评价星星 // implementation 'me.zhanghai.android.materialratingbar:library:1.4.0' implementation 'com.google.android.material:material:1.6.0' //图片选择器 implementation 'com.github.Mariovc:ImagePicker:1.2.2' implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2' implementation 'com.github.barteksc:android-pdf-viewer:2.8.2' //zxing 依赖 二维码,扫描等使用 implementation 'com.google.zxing:core:3.4.1' // implementation 'com.journeyapps:zxing-android-embedded:4.3.0' implementation 'com.github.maning0303:MNZXingCode:V2.1.9' //该库专门用于在 ImageView 中处理 GIF 动画。 // implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23' //下载框架 implementation 'io.github.chiclaim:downloader:1.0.2' implementation 'com.blankj:utilcodex:1.31.1' // debugImplementation("com.reqable.android:user-certificate-trust:1.0.0") implementation 'com.android.support:design:24.1.0' //以下依赖都需要添加 implementation 'commons-codec:commons-codec:1.6' implementation 'androidx.annotation:annotation:1.1.0' implementation 'com.aliyun.dpa:oss-android-sdk:2.9.21' //阿里云oss //图片裁剪 implementation 'com.github.yalantis:ucrop:2.2.6' //XPopup 弹窗样式 implementation 'com.github.li-xiaojun:XPopup:2.10.0' //处理 DeepSeek 返回的 markDown 格式 implementation 'io.noties.markwon:core:4.6.2' //lottie动画依赖 implementation 'com.airbnb.android:lottie:6.4.0' implementation 'cn.6tail:lunar:1.7.4' //开关控件 implementation 'com.kyleduo.switchbutton:library:2.1.0' // lombok 库 compileOnly 'org.projectlombok:lombok:1.18.30' annotationProcessor 'org.projectlombok:lombok:1.18.30' implementation 'me.jessyan:autosize:1.2.1' //黑白主题依赖 implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.github.maning0303:MNMLKitScanner:V1.0.4' //下面版本自己控制,barcode-scanning>=17.0.2 implementation 'com.google.mlkit:barcode-scanning:17.0.2' implementation "androidx.camera:camera-core:1.0.2" implementation "androidx.camera:camera-camera2:1.0.2" implementation "androidx.camera:camera-lifecycle:1.0.2" implementation "androidx.camera:camera-view:1.0.0-alpha25" //蓝牙扫描 implementation 'no.nordicsemi.android.support.v18:scanner:1.6.0' //蓝牙通讯 implementation 'no.nordicsemi.android:ble:2.11.0' //espressif官方sdk,用于esp固件的扫描,配网等。 implementation 'com.github.espressif:esp-idf-provisioning-android:lib-2.2.3' //自定义progressBar implementation 'com.timqi.sectorprogressview:library:2.0.1' }