build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. id 'dagger.hilt.android.plugin'
  6. }
  7. android {
  8. compileSdkVersion 30
  9. defaultConfig {
  10. applicationId "com.mrozon.currencyconverter"
  11. minSdkVersion 21
  12. targetSdkVersion 30
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = '1.8'
  29. }
  30. testOptions {
  31. unitTests {
  32. includeAndroidResources = true
  33. }
  34. }
  35. }
  36. dependencies {
  37. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  38. implementation 'androidx.core:core-ktx:1.5.0'
  39. implementation 'androidx.appcompat:appcompat:1.3.0'
  40. implementation 'com.google.android.material:material:1.3.0'
  41. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  42. //Timber
  43. implementation 'com.jakewharton.timber:timber:4.7.1'
  44. //Dagger Hilt
  45. implementation "com.google.dagger:hilt-android:$hilt_version"
  46. kapt "com.google.dagger:hilt-compiler:$hilt_version"
  47. //Network
  48. implementation "com.squareup.okhttp3:logging-interceptor:$okHttpLogging_version"
  49. implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
  50. implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
  51. implementation "com.google.code.gson:gson:$gson_version"
  52. //Coroutines
  53. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
  54. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  55. //Room
  56. kapt "androidx.room:room-compiler:$kapt_room_version"
  57. implementation "androidx.room:room-runtime:$room_version"
  58. implementation "androidx.room:room-ktx:$room_version"
  59. testImplementation 'junit:junit:4.13.2'
  60. testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
  61. testImplementation "androidx.arch.core:core-testing:2.1.0"
  62. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  63. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  64. testImplementation 'org.robolectric:robolectric:4.4'
  65. testImplementation 'org.mockito:mockito-core:2.19.0'
  66. testImplementation "com.squareup.retrofit2:retrofit-mock:$retrofit_version"
  67. }