build.gradle 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'org.greenrobot.greendao'
  5. android {
  6. compileSdkVersion rootProject.ext.compileSdkVersion
  7. buildToolsVersion rootProject.ext.buildToolsVersion
  8. //GreenDao配置
  9. greendao {
  10. schemaVersion 1
  11. //daoPackage 'com.greendao.gen' //dao包名
  12. //targetGenDir 'src/main/java' //生成目录
  13. }
  14. //lint配置
  15. lintOptions {
  16. checkReleaseBuilds false
  17. abortOnError false
  18. }
  19. defaultConfig {
  20. applicationId "com.rdiot.yx485"
  21. minSdkVersion rootProject.ext.minSdkVersion
  22. targetSdkVersion rootProject.ext.targetSdkVersion
  23. versionCode rootProject.ext.versionCode
  24. versionName rootProject.ext.versionName
  25. // dex突破65535的限制
  26. //multiDexEnabled true
  27. manifestPlaceholders = [
  28. //从 3.1.2.0 版本开始,APPID 占位符从 GETUI_APP_ID 切换为 GETUI_APPID
  29. //后续所有产品的 APPID 均统一配置为 GETUI_APPID 占位符
  30. GETUI_APPID : "LSFQhLICT5AiOMB7CIZ1D9",
  31. // 华为 相关应用参数
  32. HUAWEI_APP_ID : "107630077",
  33. // 小米相关应用参数
  34. XIAOMI_APP_ID : "2882303761520219041",
  35. XIAOMI_APP_KEY : "5372021977041",
  36. // OPPO 相关应用参数
  37. OPPO_APP_KEY : "d5862f83314e40ad84ec2bb6bae9b78f",
  38. OPPO_APP_SECRET: "c98c7a7869a6436e894c484160cc51a9",
  39. // VIVO 相关应用参数
  40. VIVO_APP_ID : "105883724",
  41. VIVO_APP_KEY : "8d267be2db14231854fec1b5e5ea4e54",
  42. // 魅族相关应用参数
  43. MEIZU_APP_ID : "155304",
  44. MEIZU_APP_KEY : "3e45010653eb4ad9afeea39bbfa2dd72",
  45. // 荣耀相关应用参数
  46. HONOR_APP_ID : "900841768",
  47. ]
  48. ndk {
  49. abiFilters 'arm64-v8a', 'armeabi-v7a'//, 'armeabi' // 添加arm64以适配android14系统手机vivo y200i
  50. }
  51. }
  52. signingConfigs {
  53. release {
  54. storeFile file('yx485.jks')
  55. storePassword "yx485123456"
  56. keyAlias 'yx485'
  57. keyPassword "yx485123456"
  58. }
  59. }
  60. buildTypes {
  61. debug {
  62. minifyEnabled false
  63. zipAlignEnabled false
  64. shrinkResources false
  65. signingConfig signingConfigs.release
  66. }
  67. release {
  68. minifyEnabled false
  69. zipAlignEnabled false
  70. shrinkResources false
  71. signingConfig signingConfigs.release
  72. }
  73. }
  74. compileOptions {
  75. sourceCompatibility JavaVersion.VERSION_1_8
  76. targetCompatibility JavaVersion.VERSION_1_8
  77. }
  78. ndkVersion "22.1.7171670"
  79. buildFeatures {
  80. viewBinding true
  81. dataBinding false // 显式禁用 DataBinding(关键步骤!)
  82. }
  83. dataBinding {
  84. enabled true
  85. }
  86. }
  87. dependencies {
  88. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  89. implementation fileTree(include: ['*.jar'], dir: 'libs')
  90. implementation project(':libFrame')
  91. implementation project(':FastBleLib')
  92. implementation 'androidx.appcompat:appcompat:1.2.0'
  93. implementation 'com.google.android.material:material:1.4.0'
  94. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  95. implementation 'org.greenrobot:greendao:3.3.0'
  96. implementation 'org.webrtc:google-webrtc:1.0.32006'
  97. //底部按钮
  98. implementation 'com.yun.ospl:jtabstrip:0.1.13-Y'
  99. implementation 'com.github.zcolin:ZRecyclerView:3.0.0'
  100. implementation 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
  101. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  102. implementation 'com.guolindev.permissionx:permissionx:1.7.1'
  103. implementation 'com.github.lindroy:iOSDialog:1.0.0'
  104. implementation 'com.google.android.gms:play-services-location:18.0.0'
  105. //ZXingLite https://github.com/jenly1314/ZXingLite
  106. implementation 'com.github.jenly1314:zxing-lite:2.2.1'
  107. // implementation 'com.tencent:mmkv:1.2.14'
  108. // Kotlin 协程核心库
  109. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1"
  110. // 用于 Android 的协程扩展库
  111. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
  112. implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2" // JSON序列化库
  113. // ViewModel
  114. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1"
  115. implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1"
  116. implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1"
  117. implementation "androidx.activity:activity-ktx:1.5.1"
  118. implementation "androidx.fragment:fragment-ktx:1.3.0"
  119. //Serialize https://github.com/liangjingkanji/Serialize
  120. implementation 'com.github.liangjingkanji:Serialize:1.3.2'
  121. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  122. implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
  123. implementation 'io.github.lucksiege:pictureselector:v3.11.1'
  124. implementation 'io.github.lucksiege:compress:v3.11.1'
  125. implementation 'com.getui:gtsdk:3.3.10.0' //个推SDK
  126. implementation 'com.getui:gtc:3.2.18.0' //个推核心组件
  127. // 根据所需厂商选择集成
  128. implementation 'com.getui.opt:hwp:3.1.2' // 华为
  129. implementation 'com.huawei.hms:push:6.12.0.300'
  130. implementation 'com.getui.opt:xmp:3.3.3' // 小米
  131. implementation 'com.assist-v3:oppo:3.5.0' // oppo
  132. implementation 'com.google.code.gson:gson:2.6.2'
  133. implementation 'commons-codec:commons-codec:1.6'
  134. implementation 'com.android.support:support-annotations:28.0.0'
  135. implementation 'com.assist-v3:vivo:3.2.0' // vivo
  136. implementation 'com.getui.opt:mzp:3.2.4' // 魅族
  137. implementation 'com.getui.opt:honor:3.6.0' // 荣耀
  138. implementation 'com.hihonor.mcs:push:7.0.61.303'
  139. // https://mvnrepository.com/artifact/com.github.tbruyelle/rxpermissions
  140. implementation("com.github.tbruyelle:rxpermissions:2.x.v0.9.3")
  141. // For developers using AndroidX in their applications
  142. implementation 'pub.devrel:easypermissions:3.0.0'
  143. // implementation("com.huawei.hms:scanplus:2.1.0.300")
  144. }