build.gradle 1.5 KB

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