Android端钱多多随手记项目

build.gradle 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. applicationId "com.kuxuan.moneynote"
  7. minSdkVersion rootProject.ext.minSdkVersion
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionCode rootProject.ext.versionCode
  10. versionName rootProject.ext.versionName
  11. multiDexEnabled true
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. }
  14. aaptOptions {
  15. cruncherEnabled = false
  16. }
  17. //签名
  18. signingConfigs {
  19. myConfig {
  20. storeFile file("bangnidai.jks") //签名文件
  21. storePassword "bangnidai123"
  22. keyAlias "bangnidai"
  23. keyPassword "bangnidai123" //签名密码
  24. }
  25. }
  26. buildTypes {
  27. release {
  28. signingConfig signingConfigs.myConfig
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
  31. applicationVariants.all { variant ->
  32. variant.outputs.each { output ->
  33. if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
  34. && 'release'.equals(variant.buildType.name)) {
  35. def apkFile = new File(
  36. output.outputFile.getParent(),
  37. "qianduoduo${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
  38. output.outputFile = apkFile
  39. }
  40. }
  41. }
  42. }
  43. debug {
  44. signingConfig signingConfigs.myConfig
  45. minifyEnabled false
  46. proguardFiles 'proguard-rules.pro'
  47. }
  48. }
  49. flavorDimensions("type_line", "organization")
  50. productFlavors {
  51. yingyongbao {
  52. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1001"]
  53. buildConfigField 'String','CHANNLE','"1001"'
  54. dimension = "type_line"
  55. }
  56. vivo {
  57. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1002"]
  58. buildConfigField 'String','CHANNLE','"1002"'
  59. dimension = "type_line"
  60. }
  61. oppo {
  62. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1003"]
  63. buildConfigField 'String','CHANNLE','"1003"'
  64. dimension = "type_line"
  65. }
  66. xiaomi {
  67. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1005"]
  68. buildConfigField 'String','CHANNLE','"1005"'
  69. dimension = "type_line"
  70. }
  71. huawei {
  72. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1004"]
  73. buildConfigField 'String','CHANNLE','"1004"'
  74. dimension = "type_line"
  75. }
  76. baidu {
  77. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1006"]
  78. buildConfigField 'String','CHANNLE','"1006"'
  79. dimension = "organization"
  80. }
  81. c360 {
  82. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1000"]
  83. buildConfigField 'String','CHANNLE','"1000"'
  84. dimension = "organization"
  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.4'
  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. }