充电桩app代码

build.gradle 9.6KB

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