充电桩app代码

build.gradle 8.4KB

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