build.gradle 3.9 KB

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