充电桩app代码

build.gradle 7.6KB

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