build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. buildscript {
  4. repositories {
  5. mavenCentral()
  6. }
  7. dependencies {
  8. classpath 'me.tatarka:gradle-retrolambda:3.3.1'
  9. }
  10. }
  11. repositories {
  12. mavenCentral()
  13. maven { url 'https://maven.google.com' }
  14. }
  15. apply plugin: 'com.android.library'
  16. apply plugin: 'me.tatarka.retrolambda'
  17. android {
  18. compileSdkVersion 25
  19. buildToolsVersion '25.0.0'
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. defaultConfig {
  25. minSdkVersion 15
  26. targetSdkVersion 25
  27. versionCode 1
  28. versionName "1.0"
  29. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  30. }
  31. buildTypes {
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. }
  38. dependencies {
  39. compile fileTree(dir: 'libs', include: ['*.jar'])
  40. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  41. exclude group: 'com.android.support', module: 'support-annotations'
  42. })
  43. compile 'com.android.support:appcompat-v7:25.0.0'
  44. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  45. compile 'com.afollestad.material-dialogs:core:0.9.1.0'
  46. testCompile 'junit:junit:4.12'
  47. //glide
  48. compile 'com.github.bumptech.glide:glide:3.7.0'
  49. annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
  50. compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  51. compile 'com.google.code.gson:gson:2.8.5'
  52. }