build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 'com.android.support:appcompat-v7:28.0.0'
  22. testImplementation 'junit:junit:4.12'
  23. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  24. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  25. //retrofit 2
  26. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  27. implementation "com.squareup.retrofit2:adapter-rxjava2:2.4.0"
  28. api 'com.squareup.retrofit2:retrofit:2.4.0'
  29. api 'io.reactivex.rxjava2:rxandroid:2.1.0'
  30. api 'io.reactivex.rxjava2:rxjava:2.2.1'
  31. api 'com.squareup.okhttp3:okhttp:3.11.0'
  32. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  33. }
  34. repositories {
  35. mavenCentral()
  36. }