充电桩app代码

build.gradle 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. debug {
  93. //是否优化zip
  94. zipAlignEnabled true
  95. // 移除无用的resource文件
  96. // shrinkResources true
  97. //启用代码混淆
  98. minifyEnabled true
  99. //混淆规则配置文件
  100. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  101. signingConfig signingConfigs.release
  102. }
  103. release {
  104. //是否优化zip
  105. zipAlignEnabled true
  106. // 移除无用的resource文件
  107. // shrinkResources true
  108. //启用代码混淆
  109. minifyEnabled true
  110. //混淆规则配置文件
  111. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  112. signingConfig signingConfigs.release
  113. }
  114. }
  115. dexOptions {
  116. javaMaxHeapSize "5120M"
  117. }
  118. repositories {
  119. mavenCentral()
  120. maven { url = 'https://dl.bintray.com/yuancloud/maven/' }
  121. maven { url "https://jitpack.io" }
  122. }
  123. packagingOptions {
  124. exclude 'META-INF/DEPENDENCIES.txt'
  125. exclude 'META-INF/LICENSE.txt'
  126. exclude 'META-INF/NOTICE.txt'
  127. exclude 'META-INF/NOTICE'
  128. exclude 'META-INF/LICENSE'
  129. exclude 'META-INF/DEPENDENCIES'
  130. exclude 'META-INF/notice.txt'
  131. exclude 'META-INF/license.txt'
  132. exclude 'META-INF/dependencies.txt'
  133. exclude 'META-INF/LGPL2.1'
  134. }
  135. productFlavors {
  136. wandoujia {}
  137. // baidu {}
  138. // c360 {}
  139. // yingyongbao {}
  140. // xiaomi {}
  141. // anzhi {}
  142. // pp {}
  143. // vivo {}
  144. // huawei {}
  145. // oppo {}
  146. // meizu {}
  147. // cdz {}
  148. // sougou {}
  149. productFlavors.all { flavor ->
  150. flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
  151. }
  152. }
  153. }
  154. MobSDK {
  155. appKey "6f4323b7b4cc"
  156. appSecret "05e19cfda18d5fcbf779080b063f3707"
  157. ShareSDK {
  158. devInfo {
  159. /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
  160. 注意:开发者不能用我们这两个平台的appid,否则分享不了
  161. 微信测试的时候,微信测试需要先签名打包出apk,
  162. sample测试微信,要先签名打包,keystore在sample项目中,密码123456
  163. BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
  164. 审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型,
  165. 默认值为false。此外,微信收藏不支持此字段。wx4868b35061f87885
  166. <!--要分享微信小应用程序时用userName,path-->*/
  167. Wechat {
  168. id 1
  169. sortId 1
  170. appId "wx9ea0244164ac9fcf"
  171. appSecret "372a449f6371bd8f6dad1ed8ad70fa6b"
  172. bypassApproval false
  173. enable true
  174. }
  175. WechatMoments {
  176. id 2
  177. sortId 2
  178. appId "wx9ea0244164ac9fcf"
  179. appSecret "372a449f6371bd8f6dad1ed8ad70fa6b"
  180. bypassApproval false
  181. enable true
  182. }
  183. QQ {
  184. id 3
  185. sortId 3
  186. appId "1104205379"
  187. appKey "dX2eAJtMGUUzLYRM"
  188. shareByAppClient true
  189. bypassApproval false
  190. enable true
  191. }
  192. }
  193. }
  194. }
  195. dependencies {
  196. // compile files('libs/badgeview.jar')
  197. compile files('libs/mframework.jar')
  198. compile files('libs/picasso-2.5.2.jar')
  199. compile project(':autolayout')
  200. compile files('libs/universal-image-loader-1.9.1.jar')
  201. compile files('libs/bugly_1.2.9_release.jar')
  202. //noinspection GradleCompatible
  203. compile files('libs/jg_filter_sdk_1.1.jar')
  204. compile files('libs/wup-1.0.0.E-SNAPSHOT.jar')
  205. compile files('libs/pinyin4j-2.5.0.jar')
  206. compile files('libs/pinyin4android1.0.jar')
  207. compile files('libs/Msc.jar')
  208. compile files('libs/libammsdk.jar')
  209. compile files('libs/alipaySdk-20160427.jar')
  210. compile 'com.google.zxing:core:+'
  211. compile 'com.google.zxing:android-core:+'
  212. compile project(':library')
  213. compile files('libs/ZBarDecoder.jar')
  214. compile files('libs/jpush-android_v3.0.6.jar')
  215. compile files('libs/jcore-android_v1.1.3.jar')
  216. compile 'com.blankj:utilcode:1.9.8'
  217. compile project(':xrichtextt')
  218. compile 'com.android.support:multidex:1.0.1'
  219. compile 'com.umeng.analytics:analytics:latest.integration'
  220. compile 'com.google.code.gson:gson:2.2.4'
  221. compile 'com.squareup.okhttp:okhttp:2.0.0'
  222. compile 'com.zhy:okhttputils:2.4.1'
  223. compile 'com.android.support:support-v4:26.1.0'
  224. compile 'com.google.android.gms:play-services-appindexing:9.4.0'
  225. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  226. compile 'com.zhy:flowlayout-lib:1.0.3'
  227. compile 'com.squareup:otto:+'
  228. compile 'org.greenrobot:greendao:3.2.0'
  229. compile 'org.greenrobot:greendao-generator:3.2.0'
  230. compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0'
  231. compile 'com.github.ksoichiro:android-observablescrollview:+'
  232. compile 'me.codeboy.android:align-text-view:2.3.0'
  233. compile 'me.itangqi.waveloadingview:library:0.3.5'
  234. compile 'com.yinglan.scrolllayout:scrolllayout:1.0.0'
  235. compile 'com.android.support:appcompat-v7:26.1.0'
  236. compile 'com.android.support:design:26.1.0'
  237. // compile 'com.nineoldandroids:library:2.4.0'
  238. compile 'com.github.bumptech.glide:glide:4.1.1'
  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:rxjava:1.1.0'
  243. compile 'io.reactivex:rxandroid:1.1.0'
  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 'com.github.vilyever:AndroidSocketClient:3.0.3'
  252. compile files('libs/AMap3DMap_6.5.0_AMapNavi_6.4.0_AMapSearch_6.5.0_AMapLocation_4.2.0_20181009.jar')
  253. compile 'com.qmuiteam:qmui:1.2.0'
  254. compile 'org.zackratos:ultimatebar:1.1.1'
  255. compile project(':XRefreshView')
  256. compile 'com.github.Aspsine:IRecyclerView:0.0.7'
  257. compile project(':ijkplayer-java')
  258. }