充电桩app代码

build.gradle 10KB

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