Files
IngredientScale/app/build.gradle
T
2025-03-19 15:26:42 +08:00

132 lines
4.5 KiB
Groovy

plugins {
id 'com.android.application'
}
android {
compileSdk 33
def app_version_code = 10
def app_version_name = '1.0'
defaultConfig {
applicationId "com.sw.ingredient"
minSdk 26
targetSdk 33
versionCode app_version_code
versionName app_version_name
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "e09fd1a00814b34bb15492a8", //JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
]
ndk {
abiFilters 'armeabi-v7a'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
debug {
storeFile file("system_3568.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
android.applicationVariants.all {
variant ->
variant.outputs.all {
outputFileName = "app-release${app_version_name}.apk"
}
}
packagingOptions {
pickFirst 'lib/armeabi-v7a/libserial_port.so'
// pickFirst 'lib/arme64-v8a/libserial_port.so'
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
// 引入support支持库的multidex库
implementation 'com.android.support:multidex:1.0.3'
//或androidx支持库的multidex库
implementation 'androidx.multidex:multidex:2.0.1'
// implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation project(path: ':MPChartLib')
// implementation project(path: ':jiguang')
// implementation files('libs\\libWeighingscale.jar')
implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar')
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.lzy.net:okgo:3.0.4'
implementation('com.lzy.net:okrx2:2.0.2')
implementation("io.reactivex.rxjava2:rxandroid:2.0.1")
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
implementation 'com.youth.banner:banner:2.1.0'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-classics:2.0.3' //经典刷新头
implementation 'com.github.li-xiaojun:XPopup:2.9.19'
implementation 'com.hyman:flowlayout-lib:1.1.2'
// implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'com.umeng.umsdk:common:9.4.2'// 必选
implementation 'com.umeng.umsdk:asms:1.4.1'// 必选
implementation 'com.umeng.umsdk:apm:1.4.2'
implementation files('libs/WbIntelligentHardwareSDK-debug.aar')
implementation files('libs/utilcode.jar')
// 串口
// implementation 'com.licheedev:android-serialport:2.1.2'
// implementation 'com.licheedev:hardwareutils:1.0.0'
// implementation 'com.licheedev:logplus:1.0.0'
// eventbus
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'pub.devrel:easypermissions:3.0.0'
implementation 'com.github.bingoogolapple.BGAQRCode-Android:zxing:1.3.8'
def roomVersion = "2.2.5"
implementation("androidx.room:room-runtime:$roomVersion")
annotationProcessor("androidx.room:room-compiler:$roomVersion")
}