Android端钱多多随手记项目

build.gradle 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 true
  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. }
  50. def releaseTime() {
  51. return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  52. }
  53. dependencies {
  54. compile fileTree(include: ['*.jar'], dir: 'libs')
  55. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  56. exclude group: 'com.android.support', module: 'support-annotations'
  57. })
  58. compile "com.android.support:support-v4:$rootProject.androidSupportVersion"
  59. compile "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  60. compile "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
  61. compile "net.qiujuer.genius:ui:$rootProject.geniusVersion"
  62. compile "net.qiujuer.genius:res:$rootProject.geniusVersion"
  63. compile "com.squareup.okhttp3:logging-interceptor:$rootProject.logging_interceptorVersion"
  64. compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
  65. compile "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
  66. compile "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
  67. compile "com.android.support:design:$rootProject.androidSupportVersion"
  68. compile "io.reactivex.rxjava2:rxjava:$rootProject.rxjavaVersion"
  69. compile "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
  70. compile "com.github.addappcn:android-pickers:$rootProject.androidpickerVersion"
  71. compile files('libs/SocialSDK_QQ_Simplify.jar')
  72. compile files('libs/umeng_social_api.jar')
  73. compile files('libs/umeng_social_net.jar')
  74. compile files('libs/umeng_social_tool.jar')
  75. compile files('libs/umeng_shareboard_widget.jar')
  76. compile files('libs/umeng_social_shareboard.jar')
  77. compile 'com.classic.common:multiple-status-view:1.3'
  78. compile 'com.google.code.gson:gson:2.8.0'
  79. compile 'org.greenrobot:eventbus:3.0.0'
  80. compile 'com.jakewharton:butterknife:7.0.1'
  81. compile 'com.zhy:autolayout:1.4.5'
  82. compile 'com.lcodecorex:tkrefreshlayout:1.0.7'
  83. compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
  84. compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
  85. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  86. compile 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
  87. compile 'com.github.anzaizai:EasySwipeMenuLayout:1.1.2'
  88. testCompile 'junit:junit:4.12'
  89. compile files('libs/SocialSDK_WeChat_Simplify.jar')
  90. compile 'com.github.yalantis:ucrop:2.2.1'
  91. compile "de.hdodenhof:circleimageview:$rootProject.circleimageviewVersion"
  92. }