build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 21
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(dir: 'libs', include: ['*.jar'])
  21. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  22. implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
  23. testImplementation 'junit:junit:4.12'
  24. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  25. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  26. //retrofit 2
  27. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  28. implementation "com.squareup.retrofit2:adapter-rxjava2:2.4.0"
  29. api 'com.squareup.retrofit2:retrofit:2.4.0'
  30. api 'io.reactivex.rxjava2:rxandroid:2.1.0'
  31. api 'io.reactivex.rxjava2:rxjava:2.2.1'
  32. api 'com.squareup.okhttp3:okhttp:3.11.0'
  33. }
  34. repositories {
  35. mavenCentral()
  36. }