充电桩app代码

build.gradle 8.0KB

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