Android端钱多多随手记项目

build.gradle 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. debug {
  54. signingConfig signingConfigs.myConfig
  55. minifyEnabled false
  56. proguardFiles 'proguard-rules.pro'
  57. }
  58. }
  59. productFlavors {
  60. yingyongbao {
  61. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1001"]
  62. buildConfigField 'String', 'CHANNLE', '"1001"'
  63. buildConfigField 'String', 'LUNCH_AD_ID', '"33"'
  64. buildConfigField 'String', 'MAIN_AD_ID', '"33"'
  65. }
  66. vivo {
  67. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1002"]
  68. buildConfigField 'String', 'CHANNLE', '"1002"'
  69. buildConfigField 'String', 'LUNCH_AD_ID', '"31"'
  70. buildConfigField 'String', 'MAIN_AD_ID', '"31"'
  71. }
  72. oppo {
  73. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1003"]
  74. buildConfigField 'String', 'CHANNLE', '"1003"'
  75. buildConfigField 'String', 'LUNCH_AD_ID', '"34"'
  76. buildConfigField 'String', 'MAIN_AD_ID', '"34"'
  77. }
  78. xiaomi {
  79. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1005"]
  80. buildConfigField 'String', 'CHANNLE', '"1005"'
  81. buildConfigField 'String', 'LUNCH_AD_ID', '"36"'
  82. buildConfigField 'String', 'MAIN_AD_ID', '"36"'
  83. }
  84. huawei {
  85. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1004"]
  86. buildConfigField 'String', 'CHANNLE', '"1004"'
  87. buildConfigField 'String', 'LUNCH_AD_ID', '"35"'
  88. buildConfigField 'String', 'MAIN_AD_ID', '"35"'
  89. }
  90. baidu {
  91. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1006"]
  92. buildConfigField 'String', 'CHANNLE', '"1006"'
  93. buildConfigField 'String', 'LUNCH_AD_ID', '"37"'
  94. buildConfigField 'String', 'MAIN_AD_ID', '"37"'
  95. }
  96. c360 {
  97. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1000"]
  98. buildConfigField 'String', 'CHANNLE', '"1000"'
  99. buildConfigField 'String', 'LUNCH_AD_ID', '"32"'
  100. buildConfigField 'String', 'MAIN_AD_ID', '"32 "'
  101. }
  102. }
  103. }
  104. def releaseTime() {
  105. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  106. }
  107. repositories {
  108. flatDir {
  109. dirs 'libs'
  110. }
  111. }
  112. dependencies {
  113. compile fileTree(include: ['*.jar'], dir: 'libs')
  114. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  115. exclude group: 'com.android.support', module: 'support-annotations'
  116. })
  117. compile "com.android.support:support-v4:$rootProject.androidSupportVersion"
  118. compile "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  119. compile "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
  120. compile "net.qiujuer.genius:ui:$rootProject.geniusVersion"
  121. compile "net.qiujuer.genius:res:$rootProject.geniusVersion"
  122. compile "com.squareup.okhttp3:logging-interceptor:$rootProject.logging_interceptorVersion"
  123. compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
  124. compile "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
  125. compile "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
  126. compile "com.android.support:design:$rootProject.androidSupportVersion"
  127. compile "io.reactivex.rxjava2:rxjava:$rootProject.rxjavaVersion"
  128. compile "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
  129. compile "com.github.addappcn:android-pickers:$rootProject.androidpickerVersion"
  130. compile files('libs/SocialSDK_QQ_Simplify.jar')
  131. compile files('libs/umeng_social_api.jar')
  132. compile files('libs/umeng_social_net.jar')
  133. compile files('libs/umeng_social_tool.jar')
  134. compile files('libs/umeng_shareboard_widget.jar')
  135. compile files('libs/umeng_social_shareboard.jar')
  136. // compile files('libs/umeng-analytics-7.4.0.jar')
  137. // compile files('libs/umeng-common-1.4.0.jar')
  138. compile 'com.umeng.umsdk:analytics:8.0.0'
  139. compile 'com.umeng.umsdk:common:2.0.0'
  140. compile 'com.umeng.umsdk:utdid:1.1.5.3'
  141. compile 'com.classic.common:multiple-status-view:1.3'
  142. compile 'com.google.code.gson:gson:2.8.0'
  143. compile 'org.greenrobot:eventbus:3.0.0'
  144. compile 'com.jakewharton:butterknife:7.0.1'
  145. compile 'com.zhy:autolayout:1.4.5'
  146. compile 'com.lcodecorex:tkrefreshlayout:1.0.7'
  147. compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
  148. compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
  149. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  150. compile 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
  151. compile 'com.github.anzaizai:EasySwipeMenuLayout:1.1.4'
  152. testCompile 'junit:junit:4.12'
  153. compile files('libs/SocialSDK_WeChat_Simplify.jar')
  154. compile 'com.github.yalantis:ucrop:2.2.1'
  155. compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
  156. // compile 'me.panpf:sketch-gif:2.6.1'
  157. compile "de.hdodenhof:circleimageview:$rootProject.circleimageviewVersion"
  158. compile project(':MoneyNote_Sqlite')
  159. compile project(':kuxuanactivitymd')
  160. compile 'com.github.tbruyelle:rxpermissions:0.10.2'
  161. compile project(':AdKuxuanMod')
  162. compile project(':guide')
  163. compile files('libs/MiPush_SDK_Client_3_6_2.jar')
  164. compile 'org.jaaksi:pickerview:1.0.1'
  165. //蒙版库
  166. //动画效果
  167. compile 'com.facebook.rebound:rebound:0.3.8'
  168. compile files('libs/alipaySdk-20180601.jar')
  169. //穿山甲广告
  170. compile(name: 'open_ad_sdk', ext: 'aar')
  171. compile(name: 'captcha-release_v3.1.1', ext: 'aar')
  172. compile files('libs/android-query-full.0.26.7.jar')
  173. compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
  174. }