build.gradle 1.4 KB

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