Files
ElectricGriddlePro/app/build.gradle
fengjignqi 30f272f1af 更新
2026-11-16 09:55:32 +08:00

186 lines
6.7 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import java.text.SimpleDateFormat
apply plugin: 'com.android.application'
apply plugin: 'com.hihonor.mcs.asplugin'
apply plugin: 'io.freefair.lombok' // ✅ 加上这个
android {
namespace 'com.ckkj.griddle'
compileSdk 36
lint {
checkReleaseBuilds false // 关闭 release 打包时 lint 检查
abortOnError false // 即使有错误也不终止编译
}
signingConfigs {
release {
storeFile file('../kunyanzhiyao.jks')
keyAlias 'kunyanzhiyao'
keyPassword '111111'
storePassword '111111'
}
debug {
storeFile file('../kunyanzhiyao.jks')
keyAlias 'kunyanzhiyao'
keyPassword '111111'
storePassword '111111'
}
config {
storeFile file('../kunyanzhiyao.jks')
keyAlias 'kunyanzhiyao'
keyPassword '111111'
storePassword '111111'
}
}
defaultConfig {
applicationId "com.ckkj.griddle"
minSdk 26
targetSdk 36
versionCode 5
versionName "1.0.5"//version 1.0.0-appstore version 1.0.0-xh
// 添加自定义字段
buildConfigField "String", "APP_VERSION_NAME", "\"${versionName}\""
buildConfigField "int", "APP_VERSION_CODE", "${versionCode}"
}
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 {
dataBinding true
viewBinding true
buildConfig true
}
sourceSets {
main {
jniLibs.srcDir 'libs'
}
}
defaultConfig {
ndk {
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
abiFilters "arm64-v8a" // 同时支持 32 和 64 位
// abiFilters "armeabi-v7a" // 只打 32 位
// abiFilters "arm64-v8a" // 只打 64 位
}
}
packaging {
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'
}
}
dependencies {
// 原生折线图:设备数据页的温度、功率和使用时长趋势。
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
// Espressif 官方 ESP32 配网 SDK(BLE / SoftAP)
implementation 'com.github.espressif:esp-idf-provisioning-android:lib-2.4.4'
// 官方配网 SDK 的连接事件使用新版 EventBus;与框架现有的 de.greenrobot 包并存。
implementation 'org.greenrobot:eventbus:3.3.1'
testImplementation 'junit:junit:4.13.2'
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.9'
api ('com.squareup.retrofit2:converter-gson:2.0.2'){
exclude group : 'com.google.code.gson'
}
/***************************************/
implementation 'com.jakewharton:butterknife:10.2.3' // 最新版
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
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 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'net.i2p.crypto:eddsa:0.3.0'
//fastJson
implementation files('libs\\fastjson-1.2.40.jar')
implementation project(path: ':imagepickerl')
//消息传递
implementation 'de.greenrobot:eventbus:3.0.0-beta1'
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'
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'
//地区三级联动插件
implementation 'com.contrarywind:Android-PickerView:4.1.9'
// implementation 'com.contrarywind:Android-Picker:4.1.0'
//吐司框架
implementation 'com.github.getActivity:Toaster:12.5'
//鲁班图片压缩
implementation 'top.zibin:Luban:1.1.8'
//viewpager2
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'me.rosuh:AndroidFilePicker:1.0.1'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'androidx.appcompat:appcompat:1.3.1'//(最低版本)
//商品评价星星
// implementation 'me.zhanghai.android.materialratingbar:library:1.4.0'
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
//zxing 依赖 二维码,扫描等使用
implementation 'com.google.zxing:core:3.4.1'
implementation 'com.github.maning0303:MNZXingCode:V2.1.9'
//下载框架
implementation 'io.github.chiclaim:downloader:1.0.2'
//图片裁剪
implementation 'com.github.yalantis:ucrop:2.2.6'
//XPopup 弹窗样式
implementation 'com.github.li-xiaojun:XPopup:2.10.0'
//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'
}