充电桩app代码

build.gradle 7.7KB

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