build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 27
  4. defaultConfig {
  5. applicationId "com.wiipu.peopleheart"
  6. minSdkVersion 21
  7. targetSdkVersion 27
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. lintOptions {
  13. checkReleaseBuilds false
  14. // Or, if you prefer, you can continue to check for errors in release builds,
  15. // but continue the build even when errors are found:
  16. abortOnError false
  17. }
  18. //签名
  19. signingConfigs {
  20. debug {
  21. storeFile file("../keystore.jks")
  22. storePassword "abcdabcd"
  23. keyAlias "wiipu"
  24. keyPassword "abcdabcd"
  25. v1SigningEnabled true
  26. v2SigningEnabled true
  27. }
  28. release {
  29. storeFile file("../keystore.jks")
  30. storePassword "abcdabcd"
  31. keyAlias "wiipu"
  32. keyPassword "abcdabcd"
  33. v1SigningEnabled true
  34. v2SigningEnabled true
  35. }
  36. }
  37. buildTypes {
  38. debug {
  39. // 显示Log
  40. buildConfigField "boolean", "LOG_DEBUG", "true"
  41. //混淆
  42. minifyEnabled false
  43. //Zipalign优化
  44. zipAlignEnabled true
  45. //加载默认混淆配置文件
  46. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  47. //签名
  48. signingConfig signingConfigs.debug
  49. }
  50. release {
  51. // 不显示Log
  52. buildConfigField "boolean", "LOG_DEBUG", "false"
  53. //混淆
  54. minifyEnabled false
  55. //Zipalign优化
  56. zipAlignEnabled true
  57. //加载默认混淆配置文件
  58. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  59. //签名
  60. signingConfig signingConfigs.release
  61. }
  62. }
  63. }
  64. dependencies {
  65. implementation fileTree(include: ['*.jar'], dir: 'libs')
  66. implementation 'com.android.support:appcompat-v7:27.1.1'
  67. //implementation 'com.android.support.constraint:constraint-Griditem_layout:1.1.2'
  68. implementation 'com.android.support:support-v4:27.1.1'
  69. testImplementation 'junit:junit:4.12'
  70. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  71. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  72. // RecycleView
  73. implementation 'com.android.support:recyclerview-v7:27.1.1'
  74. implementation project(':commonlib')
  75. // RxJava + Retrofit
  76. implementation 'io.reactivex:rxjava:1.3.0'
  77. implementation 'io.reactivex:rxandroid:1.2.1'
  78. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  79. implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
  80. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  81. // 方法数超过65535
  82. implementation 'com.android.support:multidex:1.0.3'
  83. // pick images from system photos
  84. implementation 'com.lwkandroid:ImagePicker:1.4.0'
  85. // crash检测工具
  86. implementation 'com.tencent.bugly:crashreport:2.6.5'
  87. //leakcanary 检测内存泄漏
  88. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.1'
  89. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  90. testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  91. // butterknife , view绑定
  92. api 'com.jakewharton:butterknife:8.8.1'
  93. annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
  94. //circleImageView
  95. implementation 'de.hdodenhof:circleimageview:2.1.0'
  96. //轮播图
  97. implementation 'com.bigkoo:convenientbanner:2.0.5'
  98. implementation 'com.android.support:gridlayout-v7:27.1.1'
  99. //Glide
  100. implementation 'com.github.bumptech.glide:glide:4.0.0'
  101. implementation'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
  102. }