充电桩app代码

build.gradle 9.5KB

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