build.gradle.kts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import org.gradle.internal.impldep.bsh.commands.dir
  2. plugins {
  3. alias(libs.plugins.androidApplication)
  4. alias(libs.plugins.jetbrainsKotlinAndroid)
  5. id ("kotlinx-serialization")
  6. }
  7. android {
  8. namespace = "com.example.testing_app"
  9. compileSdk = 34
  10. defaultConfig {
  11. applicationId = "com.example.testing_app"
  12. minSdk = 33
  13. targetSdk = 34
  14. versionCode = 33
  15. versionName = "1.0"
  16. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. isMinifyEnabled = false
  21. proguardFiles(
  22. getDefaultProguardFile("proguard-android-optimize.txt"),
  23. "proguard-rules.pro"
  24. )
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility = JavaVersion.VERSION_1_8
  29. targetCompatibility = JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = "1.8"
  33. }
  34. buildFeatures{
  35. viewBinding = true
  36. }
  37. }
  38. dependencies {
  39. implementation(libs.androidx.core.ktx)
  40. implementation(libs.androidx.appcompat)
  41. implementation(libs.material)
  42. implementation(libs.androidx.activity)
  43. implementation(libs.androidx.constraintlayout)
  44. testImplementation(libs.junit)
  45. androidTestImplementation(libs.androidx.junit)
  46. androidTestImplementation(libs.androidx.espresso.core)
  47. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
  48. implementation("com.google.android.flexbox:flexbox:3.0.0")
  49. }