build.gradle.kts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. }
  5. android {
  6. namespace = "com.example.examsimplecrud"
  7. compileSdk = 34
  8. defaultConfig {
  9. applicationId = "com.example.examsimplecrud"
  10. minSdk = 24
  11. targetSdk = 34
  12. versionCode = 1
  13. versionName = "1.0"
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. isMinifyEnabled = false
  19. proguardFiles(
  20. getDefaultProguardFile("proguard-android-optimize.txt"),
  21. "proguard-rules.pro"
  22. )
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility = JavaVersion.VERSION_1_8
  27. targetCompatibility = JavaVersion.VERSION_1_8
  28. }
  29. kotlinOptions {
  30. jvmTarget = "1.8"
  31. }
  32. }
  33. dependencies {
  34. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9")
  35. implementation("androidx.core:core-ktx:1.12.0")
  36. implementation("androidx.appcompat:appcompat:1.6.1")
  37. implementation("com.google.android.material:material:1.10.0")
  38. implementation("androidx.constraintlayout:constraintlayout:2.1.4")
  39. implementation("com.squareup.retrofit2:retrofit:2.9.0")
  40. implementation("com.squareup.moshi:moshi-kotlin:1.13.0")
  41. implementation("com.squareup.retrofit2:converter-moshi:2.9.0")
  42. implementation("com.squareup.retrofit2:converter-gson:2.1.0")
  43. testImplementation("junit:junit:4.13.2")
  44. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  45. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  46. }