build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. }
  5. android {
  6. namespace = "com.example.myapplication"
  7. compileSdk = 34
  8. defaultConfig {
  9. applicationId = "com.example.myapplication"
  10. minSdk = 30
  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("androidx.core:core-ktx:1.12.0")
  35. implementation("androidx.appcompat:appcompat:1.6.1")
  36. implementation("com.google.android.material:material:1.11.0")
  37. implementation("androidx.constraintlayout:constraintlayout:2.1.4")
  38. testImplementation("junit:junit:4.13.2")
  39. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  40. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  41. }