build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.example.demo'
  7. compileSdk 33
  8. defaultConfig {
  9. applicationId "com.example.demo"
  10. minSdk 29
  11. targetSdk 33
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. debug {
  22. minifyEnabled false
  23. shrinkResources false
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = '1.8'
  32. }
  33. }
  34. dependencies {
  35. implementation 'androidx.core:core-ktx:1.9.0'
  36. implementation 'androidx.appcompat:appcompat:1.6.1'
  37. implementation 'com.google.android.material:material:1.8.0'
  38. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  39. testImplementation 'junit:junit:4.13.2'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  42. }