build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk 31
  7. defaultConfig {
  8. minSdk 21
  9. targetSdk 30
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles "consumer-rules.pro"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. viewBinding {
  24. enabled = true
  25. }
  26. }
  27. dependencies {
  28. // Networking libraries (Retrofit)
  29. implementation "com.squareup.retrofit2:retrofit:2.9.0"
  30. implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
  31. implementation "com.squareup.moshi:moshi-kotlin:1.13.0"
  32. // Koin for dependencies
  33. implementation "io.insert-koin:koin-android:3.1.5"
  34. // Android
  35. implementation 'androidx.appcompat:appcompat:1.4.1'
  36. implementation 'com.google.android.material:material:1.5.0'
  37. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  38. // View model lifecycle
  39. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0"
  40. implementation "androidx.fragment:fragment-ktx:1.4.1"
  41. // Glide Image loading library
  42. implementation "com.github.bumptech.glide:glide:4.12.0"
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  45. }