充电桩app代码

build.gradle 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.greenrobot.greendao'
  3. apply plugin: 'com.mob.sdk'
  4. apply plugin: 'bugly'
  5. bugly {
  6. appId = '900010422' // 注册时分配的App ID
  7. appKey = 'mnhwhy8jP7Fq2G6b' // 注册时分配的App Key
  8. debug = true
  9. }
  10. android {
  11. signingConfigs {
  12. release {
  13. keyAlias 'KeyMac'
  14. keyPassword 'd1ev123'
  15. storeFile file('../keystore/KeyMacCDZ.jks')
  16. storePassword 'd1ev123'
  17. }
  18. }
  19. compileSdkVersion 29
  20. buildToolsVersion '29.0.2'
  21. aaptOptions.cruncherEnabled = false
  22. aaptOptions.useNewCruncher = false
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. defaultConfig {
  28. applicationId "com.electric.chargingpile"
  29. minSdkVersion 24
  30. targetSdkVersion 29
  31. multiDexEnabled true
  32. ndk {
  33. abiFilters "armeabi"
  34. }
  35. flavorDimensions "default"
  36. vectorDrawables.useSupportLibrary = true
  37. // jackOptions {
  38. // enabled true
  39. // }
  40. }
  41. dataBinding {
  42. enabled true
  43. }
  44. sourceSets.main {
  45. jniLibs.srcDirs 'src/main/libs'
  46. res.srcDirs = ['src/main/res']
  47. }
  48. lintOptions {
  49. checkReleaseBuilds false
  50. abortOnError false
  51. }
  52. greendao {
  53. schemaVersion 3
  54. daoPackage 'com.electric.chargingpile.gen'
  55. targetGenDir 'src/main/java'
  56. }
  57. buildTypes {
  58. debug {
  59. //是否优化zip
  60. zipAlignEnabled false
  61. // 移除无用的resource文件
  62. // shrinkResources true
  63. //启用代码混淆 debug 模式下需要设置为false,否则无法看到局部变量的值
  64. minifyEnabled false
  65. //混淆规则配置文件
  66. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  67. signingConfig signingConfigs.release
  68. }
  69. release {
  70. //是否优化zip
  71. zipAlignEnabled true
  72. // 移除无用的resource文件
  73. //启用代码混淆
  74. minifyEnabled true
  75. // shrinkResources true
  76. //混淆规则配置文件
  77. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  78. signingConfig signingConfigs.release
  79. }
  80. }
  81. dexOptions {
  82. javaMaxHeapSize "8g"
  83. }
  84. packagingOptions {
  85. exclude 'META-INF/DEPENDENCIES.txt'
  86. exclude 'META-INF/rxjava.properties'
  87. exclude 'META-INF/LICENSE.txt'
  88. exclude 'META-INF/NOTICE.txt'
  89. exclude 'META-INF/NOTICE'
  90. exclude 'META-INF/LICENSE'
  91. exclude 'META-INF/DEPENDENCIES'
  92. exclude 'META-INF/notice.txt'
  93. exclude 'META-INF/license.txt'
  94. exclude 'META-INF/dependencies.txt'
  95. exclude 'META-INF/LGPL2.1'
  96. }
  97. productFlavors {
  98. yingyongbao {}
  99. c360 {}
  100. xiaomi {}
  101. huawei {}
  102. oppo {}
  103. cdz {}
  104. // wandoujia {} baidu {} anzhi {} pp {} vivo {} meizu {} sougou {}
  105. productFlavors.all { flavor ->
  106. flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
  107. }
  108. }
  109. }
  110. MobSDK {
  111. appKey "6f4323b7b4cc"
  112. appSecret "05e19cfda18d5fcbf779080b063f3707"
  113. ShareSDK {
  114. devInfo {
  115. /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
  116. 注意:开发者不能用我们这两个平台的appid,否则分享不了微信测试的时候,微信测试需要先签名打包出apk,
  117. sample测试微信,要先签名打包,keystore在sample项目中,密码123456
  118. BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
  119. 审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型,
  120. 默认值为false。此外,微信收藏不支持此字段。wx4868b35061f87885
  121. <!--要分享微信小应用程序时用userName,path-->*/
  122. Wechat {
  123. id 1
  124. sortId 1
  125. appId "wx9ea0244164ac9fcf"
  126. appSecret "372a449f6371bd8f6dad1ed8ad70fa6b"
  127. bypassApproval false
  128. enable true
  129. }
  130. WechatMoments {
  131. id 2
  132. sortId 2
  133. appId "wx9ea0244164ac9fcf"
  134. appSecret "372a449f6371bd8f6dad1ed8ad70fa6b"
  135. bypassApproval false
  136. enable true
  137. }
  138. QQ {
  139. id 3
  140. sortId 3
  141. appId "101671003"
  142. appKey "f5f9c7dd29509ddaebf1a8937fd6b56e"
  143. shareByAppClient true
  144. bypassApproval false
  145. enable true
  146. }
  147. }
  148. }
  149. }
  150. dependencies {
  151. implementation fileTree(include: ['*.jar'], dir: 'libs')
  152. implementation(name: 'alipaySdk-15.6.8-20191021122514', ext: 'aar')
  153. implementation project(':autolayout')
  154. implementation project(':library')
  155. implementation project(':zxing')
  156. implementation project(':XRefreshView')
  157. // implementation project(':videolibrary:picture_library')
  158. // compile 'com.google.zxing:core:+'
  159. // compile 'com.google.zxing:android-core:+'
  160. implementation 'com.blankj:utilcode:1.9.8'
  161. implementation 'androidx.multidex:multidex:2.0.0'
  162. implementation 'com.umeng.analytics:analytics:latest.integration'
  163. implementation 'com.google.code.gson:gson:2.2.4'
  164. // compile 'com.squareup.okhttp:okhttp:3.14.0'
  165. implementation 'com.squareup.okhttp:okhttp:2.0.0'
  166. implementation 'com.zhy:okhttputils:2.4.1'
  167. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  168. implementation 'com.google.firebase:firebase-appindexing:10.0.0'
  169. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  170. implementation 'com.zhy:flowlayout-lib:1.0.3'
  171. implementation 'com.squareup:otto:+'
  172. implementation 'org.greenrobot:greendao:3.2.0'
  173. implementation 'org.greenrobot:greendao-generator:3.2.0'
  174. implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0'
  175. implementation 'com.github.ksoichiro:android-observablescrollview:+'
  176. implementation 'me.codeboy.android:align-text-view:2.3.0'
  177. implementation 'me.itangqi.waveloadingview:library:0.3.5'
  178. implementation 'com.yinglan.scrolllayout:scrolllayout:1.0.0'
  179. implementation 'androidx.appcompat:appcompat:1.0.0'
  180. implementation 'com.google.android.material:material:1.0.0'
  181. // compile 'com.nineoldandroids:library:2.4.0'
  182. // compile 'com.github.bumptech.glide:glide:4.1.1'
  183. implementation 'com.github.bumptech.glide:glide:4.11.0'
  184. // 停更过期库,用zhihu/Matisse
  185. // implementation 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'
  186. // 为了兼容Android10 使用beta版本
  187. implementation 'com.zhihu.android:matisse:0.5.3-beta3'
  188. implementation 'top.zibin:Luban:1.1.2'
  189. implementation 'com.ms-square:expandableTextView:0.1.4'
  190. implementation 'io.reactivex.rxjava2:rxjava:2.0.5'
  191. implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
  192. implementation 'com.cjj.materialrefeshlayout:library:1.3.0'
  193. implementation 'com.alibaba:fastjson:1.1.64.android'
  194. implementation 'pub.devrel:easypermissions:3.0.0'
  195. implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
  196. implementation 'com.github.promeg:tinypinyin:1.0.0'
  197. implementation 'org.greenrobot:eventbus:3.0.0'
  198. implementation 'com.qmuiteam:qmui:1.2.0'
  199. implementation 'org.zackratos:ultimatebar:1.1.1'
  200. implementation 'com.upyun:upyun-android-sdk:2.1.0'
  201. // 上下翻页 库过期,下载源码修改
  202. // implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
  203. // sqlite异常结局
  204. implementation 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
  205. implementation 'com.shuyu:GSYVideoPlayer:5.0.2'
  206. implementation 'com.wang.avi:library:2.1.3'
  207. implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
  208. implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
  209. // 库过期,下载源码修改
  210. // implementation 'com.github.Aspsine:IRecyclerView:0.0.7'
  211. implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.6'
  212. // implementation files('libs/bugly_crash_release_3.2.2.jar')
  213. implementation "androidx.camera:camera-camera2:1.0.0-beta03"
  214. implementation "androidx.camera:camera-core:1.0.0-beta03"
  215. // implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  216. // 使用微信分享、登录、收藏、支付等功能需要的库以及文件
  217. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.4'
  218. }