build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode rootProject.ext.versionCode
  9. versionName rootProject.ext.versionName
  10. }
  11. buildTypes {
  12. release {
  13. // 不显示Log
  14. buildConfigField "boolean", "LEO_DEBUG", "false"
  15. //是否zip对齐
  16. zipAlignEnabled true
  17. // 缩减resource文件
  18. shrinkResources true
  19. //Proguard
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. buildConfigField "boolean", "LOG_DEBUG", "true"
  25. zipAlignEnabled false
  26. shrinkResources false
  27. minifyEnabled false
  28. debuggable true
  29. }
  30. }
  31. }
  32. dependencies {
  33. compile fileTree(dir: 'libs', include: ['*.jar'])
  34. //Android Support
  35. compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
  36. compile "com.android.support:design:$rootProject.supportLibraryVersion"
  37. compile "com.android.support:percent:$rootProject.supportLibraryVersion"
  38. //网络请求相关
  39. compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
  40. compile "com.squareup.retrofit2:retrofit-mock:$rootProject.retrofitVersion"
  41. compile "com.github.franmontiel:PersistentCookieJar:$rootProject.cookieVersion"
  42. //稳定的
  43. compile "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  44. compile "com.orhanobut:logger:$rootProject.loggerVersion"
  45. compile "org.greenrobot:eventbus:$rootProject.eventbusVersion"
  46. compile "com.google.code.gson:gson:$rootProject.gsonVersion"
  47. //不稳定的
  48. compile "com.github.mzule.activityrouter:activityrouter:$rootProject.routerVersion"
  49. compile "com.jude:easyrecyclerview:$rootProject.easyRecyclerVersion"
  50. compile "com.github.GrenderG:Toasty:$rootProject.toastyVersion"
  51. }