Android端钱多多随手记项目

build.gradle 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. dexOptions {
  6. incremental true
  7. javaMaxHeapSize "4g"
  8. }
  9. aaptOptions {
  10. cruncherEnabled = false
  11. useNewCruncher = false
  12. }
  13. defaultConfig {
  14. applicationId "com.kuxuan.moneynote"
  15. minSdkVersion rootProject.ext.minSdkVersion
  16. targetSdkVersion rootProject.ext.targetSdkVersion
  17. versionCode rootProject.ext.versionCode
  18. versionName rootProject.ext.versionName
  19. multiDexEnabled true
  20. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  21. }
  22. aaptOptions {
  23. cruncherEnabled = false
  24. }
  25. //签名
  26. signingConfigs {
  27. myConfig {
  28. storeFile file("bangnidai.jks") //签名文件
  29. storePassword "bangnidai123"
  30. keyAlias "bangnidai"
  31. keyPassword "bangnidai123" //签名密码
  32. }
  33. }
  34. buildTypes {
  35. // release {
  36. // signingConfig signingConfigs.myConfig
  37. // minifyEnabled true
  38. // //开启shrinkResources去除无用资源
  39. // shrinkResources true
  40. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  41. // applicationVariants.all { variant ->
  42. // variant.outputs.each { output ->
  43. // if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
  44. // && 'release'.equals(variant.buildType.name)) {
  45. // def apkFile = new File(
  46. // output.outputFile.getParent(),
  47. // "qianduoduo${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
  48. // output.outputFile = apkFile
  49. // }
  50. // }
  51. // }
  52. // }
  53. release {
  54. signingConfig signingConfigs.myConfig
  55. multiDexEnabled true
  56. minifyEnabled false
  57. proguardFiles 'proguard-rules.pro'
  58. applicationVariants.all { variant ->
  59. // 更新至Android Studio 3.3 gradle 4.10.1
  60. variant.outputs.all {
  61. outputFileName = "qianduoduo_${variant.flavorName}_${variant.versionCode}-${variant.versionName}-${releaseTime()}.apk"
  62. }
  63. // variant.outputs.each { output ->
  64. // if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
  65. // && 'release'.equals(variant.buildType.name)) {
  66. // def apkFile = new File(
  67. // output.outputFile.getParent(),
  68. // "xiaohuazhu${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
  69. // output.outputFile = apkFile
  70. // }
  71. // }
  72. // }
  73. }
  74. }
  75. debug {
  76. signingConfig signingConfigs.myConfig
  77. minifyEnabled false
  78. proguardFiles 'proguard-rules.pro'
  79. }
  80. }
  81. flavorDimensions "default"
  82. productFlavors {
  83. yingyongbao {
  84. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1001"]
  85. buildConfigField 'String', 'CHANNLE', '"1001"'
  86. buildConfigField 'String', 'LUNCH_AD_ID', '"33"'
  87. buildConfigField 'String', 'MAIN_AD_ID', '"33"'
  88. }
  89. vivo {
  90. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1002"]
  91. buildConfigField 'String', 'CHANNLE', '"1002"'
  92. buildConfigField 'String', 'LUNCH_AD_ID', '"31"'
  93. buildConfigField 'String', 'MAIN_AD_ID', '"31"'
  94. }
  95. oppo {
  96. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1003"]
  97. buildConfigField 'String', 'CHANNLE', '"1003"'
  98. buildConfigField 'String', 'LUNCH_AD_ID', '"34"'
  99. buildConfigField 'String', 'MAIN_AD_ID', '"34"'
  100. }
  101. xiaomi {
  102. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1005"]
  103. buildConfigField 'String', 'CHANNLE', '"1005"'
  104. buildConfigField 'String', 'LUNCH_AD_ID', '"36"'
  105. buildConfigField 'String', 'MAIN_AD_ID', '"36"'
  106. }
  107. huawei {
  108. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1004"]
  109. buildConfigField 'String', 'CHANNLE', '"1004"'
  110. buildConfigField 'String', 'LUNCH_AD_ID', '"35"'
  111. buildConfigField 'String', 'MAIN_AD_ID', '"35"'
  112. }
  113. baidu {
  114. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1006"]
  115. buildConfigField 'String', 'CHANNLE', '"1006"'
  116. buildConfigField 'String', 'LUNCH_AD_ID', '"37"'
  117. buildConfigField 'String', 'MAIN_AD_ID', '"37"'
  118. }
  119. c360 {
  120. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1000"]
  121. buildConfigField 'String', 'CHANNLE', '"1000"'
  122. buildConfigField 'String', 'LUNCH_AD_ID', '"32"'
  123. buildConfigField 'String', 'MAIN_AD_ID', '"32 "'
  124. }
  125. }
  126. }
  127. def releaseTime() {
  128. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  129. }
  130. repositories {
  131. flatDir {
  132. dirs 'libs'
  133. }
  134. }
  135. dependencies {
  136. implementation fileTree(include: ['*.jar'], dir: 'libs')
  137. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  138. exclude group: 'com.android.support', module: 'support-annotations'
  139. })
  140. implementation "com.android.support:support-v4:$rootProject.androidSupportVersion"
  141. implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  142. implementation "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
  143. implementation "net.qiujuer.genius:ui:$rootProject.geniusVersion"
  144. implementation "net.qiujuer.genius:res:$rootProject.geniusVersion"
  145. implementation "com.squareup.okhttp3:logging-interceptor:$rootProject.logging_interceptorVersion"
  146. implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
  147. implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
  148. implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
  149. implementation "com.android.support:design:$rootProject.androidSupportVersion"
  150. implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjavaVersion"
  151. implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
  152. implementation "com.github.addappcn:android-pickers:$rootProject.androidpickerVersion"
  153. implementation files('libs/SocialSDK_QQ_Simplify.jar')
  154. implementation files('libs/umeng_social_api.jar')
  155. implementation files('libs/umeng_social_net.jar')
  156. implementation files('libs/umeng_social_tool.jar')
  157. implementation files('libs/umeng_shareboard_widget.jar')
  158. implementation files('libs/umeng_social_shareboard.jar')
  159. // compile files('libs/umeng-analytics-7.4.0.jar')
  160. // compile files('libs/umeng-common-1.4.0.jar')
  161. implementation 'com.umeng.umsdk:analytics:8.0.0'
  162. implementation 'com.umeng.umsdk:common:2.0.0'
  163. implementation 'com.umeng.umsdk:utdid:1.1.5.3'
  164. implementation 'com.classic.common:multiple-status-view:1.3'
  165. implementation 'com.google.code.gson:gson:2.8.0'
  166. implementation 'org.greenrobot:eventbus:3.1.1'
  167. implementation 'com.jakewharton:butterknife:7.0.1'
  168. annotationProcessor 'com.jakewharton:butterknife:7.0.1'
  169. implementation 'com.zhy:autolayout:1.4.5'
  170. implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
  171. implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
  172. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
  173. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  174. implementation 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
  175. implementation 'com.github.anzaizai:EasySwipeMenuLayout:1.1.4'
  176. testImplementation 'junit:junit:4.12'
  177. implementation files('libs/SocialSDK_WeChat_Simplify.jar')
  178. implementation 'com.github.yalantis:ucrop:2.2.1'
  179. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
  180. // implementation 'me.panpf:sketch-gif:2.6.1'
  181. implementation "de.hdodenhof:circleimageview:$rootProject.circleimageviewVersion"
  182. implementation project(':MoneyNote_Sqlite')
  183. implementation project(':kuxuanactivitymd')
  184. implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  185. implementation project(':AdKuxuanMod')
  186. implementation project(':guide')
  187. implementation 'org.jaaksi:pickerview:1.0.1'
  188. //蒙版库
  189. //动画效果
  190. implementation 'com.facebook.rebound:rebound:0.3.8'
  191. implementation files('libs/alipaySdk-20180601.jar')
  192. //穿山甲广告
  193. implementation(name: 'captcha-release_v3.1.1', ext: 'aar')
  194. implementation files('libs/android-query-full.0.26.7.jar')
  195. implementation files('libs/hmssdk-2.6.3.306.jar')
  196. implementation files('libs/com.coloros.mcssdk.jar')
  197. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
  198. implementation(name: 'open_ad_sdk', ext: 'aar')
  199. implementation 'com.alibaba:fastjson:1.2.54'
  200. implementation 'com.alibaba:fastjson:1.1.70.android'
  201. implementation 'com.android.support:multidex:1.0.0'
  202. //数据库依赖
  203. implementation 'org.greenrobot:greendao-generator:3.2.2'
  204. implementation 'org.greenrobot:greendao:3.2.2'
  205. implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
  206. //下载工具类
  207. implementation 'com.allenliu.versionchecklib:library:2.2.0'
  208. implementation 'com.liulishuo.filedownloader:library:1.7.6'
  209. implementation files('libs/pushsdk_v2.3.4.jar')
  210. implementation files('libs/MiPush_SDK_Client_3_6_19.jar')
  211. implementation files('libs/commons-lang-2.6.jar')
  212. }