build.gradle 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.neenbedankt.android-apt'
  3. apply plugin: 'me.tatarka.retrolambda'
  4. android {
  5. compileSdkVersion 23
  6. buildToolsVersion "23.0.1"
  7. publishNonDefault true
  8. defaultConfig {
  9. applicationId "eu.kanade.mangafeed"
  10. minSdkVersion 16
  11. targetSdkVersion 23
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. versionCode 1
  14. versionName "1.0"
  15. }
  16. compileOptions {
  17. sourceCompatibility JavaVersion.VERSION_1_8
  18. targetCompatibility JavaVersion.VERSION_1_8
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. packagingOptions {
  27. exclude 'META-INF/DEPENDENCIES'
  28. exclude 'LICENSE.txt'
  29. exclude 'META-INF/LICENSE'
  30. exclude 'META-INF/LICENSE.txt'
  31. exclude 'META-INF/NOTICE'
  32. }
  33. lintOptions {
  34. abortOnError false
  35. }
  36. }
  37. dependencies {
  38. final SUPPORT_LIBRARY_VERSION = '23.0.1'
  39. final DAGGER_VERSION = '2.0.1'
  40. final HAMCREST_VERSION = '1.3'
  41. final MOCKITO_VERSION = '1.10.19'
  42. final STORIO_VERSION = '1.4.0'
  43. compile fileTree(dir: 'libs', include: ['*.jar'])
  44. compile "com.android.support:support-v4:$SUPPORT_LIBRARY_VERSION"
  45. compile "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
  46. compile "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
  47. compile "com.android.support:design:$SUPPORT_LIBRARY_VERSION"
  48. compile "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
  49. compile "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"
  50. compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
  51. compile 'com.squareup.okhttp:okhttp:2.4.0'
  52. compile 'io.reactivex:rxandroid:1.0.1'
  53. compile "com.pushtorefresh.storio:sqlite:$STORIO_VERSION"
  54. compile "com.pushtorefresh.storio:sqlite-annotations:$STORIO_VERSION"
  55. compile 'de.greenrobot:eventbus:2.4.0'
  56. compile 'com.github.bumptech.glide:glide:3.6.1'
  57. compile 'com.jakewharton:butterknife:7.0.1'
  58. compile 'com.jakewharton.timber:timber:3.1.0'
  59. compile 'uk.co.ribot:easyadapter:1.5.0@aar'
  60. compile "com.google.dagger:dagger:$DAGGER_VERSION"
  61. apt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
  62. apt "com.pushtorefresh.storio:sqlite-annotations-processor:$STORIO_VERSION"
  63. provided 'org.glassfish:javax.annotation:10.0-b28'
  64. compile('com.mikepenz:materialdrawer:4.3.0@aar') {
  65. transitive = true
  66. }
  67. testCompile 'junit:junit:4.12'
  68. testCompile "org.hamcrest:hamcrest-core:$HAMCREST_VERSION"
  69. testCompile "org.hamcrest:hamcrest-library:$HAMCREST_VERSION"
  70. testCompile "org.hamcrest:hamcrest-integration:$HAMCREST_VERSION"
  71. testCompile "org.mockito:mockito-core:$MOCKITO_VERSION"
  72. testCompile('org.robolectric:robolectric:3.0') {
  73. exclude group: 'commons-logging', module: 'commons-logging'
  74. exclude group: 'org.apache.httpcomponents', module: 'httpclient'
  75. }
  76. androidTestApt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
  77. }