Android端钱多多随手记项目

build.gradle 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. aaptOptions{
  6. cruncherEnabled = false
  7. useNewCruncher = false
  8. }
  9. defaultConfig {
  10. applicationId "com.kuxuan.moneynote"
  11. minSdkVersion rootProject.ext.minSdkVersion
  12. targetSdkVersion rootProject.ext.targetSdkVersion
  13. versionCode rootProject.ext.versionCode
  14. versionName rootProject.ext.versionName
  15. multiDexEnabled true
  16. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  17. }
  18. aaptOptions {
  19. cruncherEnabled = false
  20. }
  21. //签名
  22. signingConfigs {
  23. myConfig {
  24. storeFile file("bangnidai.jks") //签名文件
  25. storePassword "bangnidai123"
  26. keyAlias "bangnidai"
  27. keyPassword "bangnidai123" //签名密码
  28. }
  29. }
  30. buildTypes {
  31. release {
  32. signingConfig signingConfigs.myConfig
  33. minifyEnabled true
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. applicationVariants.all { variant ->
  36. variant.outputs.each { output ->
  37. if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
  38. && 'release'.equals(variant.buildType.name)) {
  39. def apkFile = new File(
  40. output.outputFile.getParent(),
  41. "qianduoduo${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
  42. output.outputFile = apkFile
  43. }
  44. }
  45. }
  46. }
  47. debug {
  48. signingConfig signingConfigs.myConfig
  49. minifyEnabled false
  50. proguardFiles 'proguard-rules.pro'
  51. }
  52. }
  53. productFlavors {
  54. yingyongbao {
  55. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1001"]
  56. buildConfigField 'String', 'CHANNLE', '"1001"'
  57. }
  58. vivo {
  59. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1002"]
  60. buildConfigField 'String', 'CHANNLE', '"1002"'
  61. }
  62. oppo {
  63. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1003"]
  64. buildConfigField 'String', 'CHANNLE', '"1003"'
  65. }
  66. xiaomi {
  67. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1005"]
  68. buildConfigField 'String', 'CHANNLE', '"1005"'
  69. }
  70. huawei {
  71. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1004"]
  72. buildConfigField 'String', 'CHANNLE', '"1004"'
  73. }
  74. baidu {
  75. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1006"]
  76. buildConfigField 'String', 'CHANNLE', '"1006"'
  77. }
  78. c360 {
  79. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1000"]
  80. buildConfigField 'String', 'CHANNLE', '"1000"'
  81. }
  82. atext{
  83. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "2000"]
  84. buildConfigField 'String', 'CHANNLE', '"2000"'
  85. }
  86. }
  87. }
  88. def releaseTime() {
  89. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  90. }
  91. dependencies {
  92. compile fileTree(include: ['*.jar'], dir: 'libs')
  93. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  94. exclude group: 'com.android.support', module: 'support-annotations'
  95. })
  96. compile "com.android.support:support-v4:$rootProject.androidSupportVersion"
  97. compile "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  98. compile "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
  99. compile "net.qiujuer.genius:ui:$rootProject.geniusVersion"
  100. compile "net.qiujuer.genius:res:$rootProject.geniusVersion"
  101. compile "com.squareup.okhttp3:logging-interceptor:$rootProject.logging_interceptorVersion"
  102. compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
  103. compile "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
  104. compile "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
  105. compile "com.android.support:design:$rootProject.androidSupportVersion"
  106. compile "io.reactivex.rxjava2:rxjava:$rootProject.rxjavaVersion"
  107. compile "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
  108. compile "com.github.addappcn:android-pickers:$rootProject.androidpickerVersion"
  109. compile files('libs/SocialSDK_QQ_Simplify.jar')
  110. compile files('libs/umeng_social_api.jar')
  111. compile files('libs/umeng_social_net.jar')
  112. compile files('libs/umeng_social_tool.jar')
  113. compile files('libs/umeng_shareboard_widget.jar')
  114. compile files('libs/umeng_social_shareboard.jar')
  115. compile files('libs/umeng-analytics-7.4.0.jar')
  116. compile files('libs/umeng-common-1.4.0.jar')
  117. compile 'com.classic.common:multiple-status-view:1.3'
  118. compile 'com.google.code.gson:gson:2.8.0'
  119. compile 'org.greenrobot:eventbus:3.0.0'
  120. compile 'com.jakewharton:butterknife:7.0.1'
  121. compile 'com.zhy:autolayout:1.4.5'
  122. compile 'com.lcodecorex:tkrefreshlayout:1.0.7'
  123. compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
  124. compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
  125. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  126. compile 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
  127. compile 'com.github.anzaizai:EasySwipeMenuLayout:1.1.2'
  128. testCompile 'junit:junit:4.12'
  129. compile files('libs/SocialSDK_WeChat_Simplify.jar')
  130. compile 'com.github.yalantis:ucrop:2.2.1'
  131. compile "de.hdodenhof:circleimageview:$rootProject.circleimageviewVersion"
  132. compile project(':MoneyNote_Sqlite')
  133. }