123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'org.greenrobot.greendao'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- //GreenDao配置
- greendao {
- schemaVersion 1
- //daoPackage 'com.greendao.gen' //dao包名
- //targetGenDir 'src/main/java' //生成目录
- }
- //lint配置
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
- defaultConfig {
- applicationId "com.rdiot.yx485"
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
- // dex突破65535的限制
- //multiDexEnabled true
- manifestPlaceholders = [
- //从 3.1.2.0 版本开始,APPID 占位符从 GETUI_APP_ID 切换为 GETUI_APPID
- //后续所有产品的 APPID 均统一配置为 GETUI_APPID 占位符
- GETUI_APPID : "LSFQhLICT5AiOMB7CIZ1D9",
- // 华为 相关应用参数
- HUAWEI_APP_ID : "107630077",
- // 小米相关应用参数
- XIAOMI_APP_ID : "2882303761520219041",
- XIAOMI_APP_KEY : "5372021977041",
- // OPPO 相关应用参数
- OPPO_APP_KEY : "d5862f83314e40ad84ec2bb6bae9b78f",
- OPPO_APP_SECRET: "c98c7a7869a6436e894c484160cc51a9",
- // VIVO 相关应用参数
- VIVO_APP_ID : "105883724",
- VIVO_APP_KEY : "8d267be2db14231854fec1b5e5ea4e54",
- // 魅族相关应用参数
- MEIZU_APP_ID : "155304",
- MEIZU_APP_KEY : "3e45010653eb4ad9afeea39bbfa2dd72",
- // 荣耀相关应用参数
- HONOR_APP_ID : "900841768",
- ]
- ndk {
- abiFilters 'arm64-v8a', 'armeabi-v7a'//, 'armeabi' // 添加arm64以适配android14系统手机vivo y200i
- }
- }
- signingConfigs {
- release {
- storeFile file('yx485.jks')
- storePassword "yx485123456"
- keyAlias 'yx485'
- keyPassword "yx485123456"
- }
- }
- buildTypes {
- debug {
- minifyEnabled false
- zipAlignEnabled false
- shrinkResources false
- signingConfig signingConfigs.release
- }
- release {
- minifyEnabled false
- zipAlignEnabled false
- shrinkResources false
- signingConfig signingConfigs.release
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- ndkVersion "22.1.7171670"
- buildFeatures {
- viewBinding true
- dataBinding false // 显式禁用 DataBinding(关键步骤!)
- }
- dataBinding {
- enabled true
- }
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation project(':libFrame')
- implementation project(':FastBleLib')
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.4.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- implementation 'org.greenrobot:greendao:3.3.0'
- implementation 'org.webrtc:google-webrtc:1.0.32006'
- //底部按钮
- implementation 'com.yun.ospl:jtabstrip:0.1.13-Y'
- implementation 'com.github.zcolin:ZRecyclerView:3.0.0'
- implementation 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
- implementation 'com.contrarywind:Android-PickerView:4.1.9'
- implementation 'com.guolindev.permissionx:permissionx:1.7.1'
- implementation 'com.github.lindroy:iOSDialog:1.0.0'
- implementation 'com.google.android.gms:play-services-location:18.0.0'
- //ZXingLite https://github.com/jenly1314/ZXingLite
- implementation 'com.github.jenly1314:zxing-lite:2.2.1'
- // implementation 'com.tencent:mmkv:1.2.14'
- // Kotlin 协程核心库
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1"
- // 用于 Android 的协程扩展库
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2" // JSON序列化库
- // ViewModel
- implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1"
- implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1"
- implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1"
- implementation "androidx.activity:activity-ktx:1.5.1"
- implementation "androidx.fragment:fragment-ktx:1.3.0"
- //Serialize https://github.com/liangjingkanji/Serialize
- implementation 'com.github.liangjingkanji:Serialize:1.3.2'
- implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
- implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
- implementation 'io.github.lucksiege:pictureselector:v3.11.1'
- implementation 'io.github.lucksiege:compress:v3.11.1'
- implementation 'com.getui:gtsdk:3.3.10.0' //个推SDK
- implementation 'com.getui:gtc:3.2.18.0' //个推核心组件
- // 根据所需厂商选择集成
- implementation 'com.getui.opt:hwp:3.1.2' // 华为
- implementation 'com.huawei.hms:push:6.12.0.300'
- implementation 'com.getui.opt:xmp:3.3.3' // 小米
- implementation 'com.assist-v3:oppo:3.5.0' // oppo
- implementation 'com.google.code.gson:gson:2.6.2'
- implementation 'commons-codec:commons-codec:1.6'
- implementation 'com.android.support:support-annotations:28.0.0'
- implementation 'com.assist-v3:vivo:3.2.0' // vivo
- implementation 'com.getui.opt:mzp:3.2.4' // 魅族
- implementation 'com.getui.opt:honor:3.6.0' // 荣耀
- implementation 'com.hihonor.mcs:push:7.0.61.303'
- // https://mvnrepository.com/artifact/com.github.tbruyelle/rxpermissions
- implementation("com.github.tbruyelle:rxpermissions:2.x.v0.9.3")
- // For developers using AndroidX in their applications
- implementation 'pub.devrel:easypermissions:3.0.0'
- // implementation("com.huawei.hms:scanplus:2.1.0.300")
- }
|