build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. }
  4. android {
  5. namespace 'com.example.cameraxtestappjava'
  6. compileSdk 34
  7. defaultConfig {
  8. applicationId "com.example.cameraxtestappjava"
  9. minSdk 23
  10. targetSdk 34
  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. }
  29. dependencies {
  30. implementation libs.appcompat
  31. implementation libs.material
  32. implementation libs.activity
  33. implementation libs.constraintlayout
  34. implementation libs.camera.core
  35. implementation libs.camera.camera2
  36. implementation libs.camera.lifecycle
  37. implementation libs.camera.view
  38. implementation libs.camera.extensions
  39. testImplementation libs.junit
  40. androidTestImplementation libs.ext.junit
  41. androidTestImplementation libs.espresso.core
  42. testImplementation libs.robolectric
  43. }