build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion "30.0.3"
  8. defaultConfig {
  9. applicationId "com.example.ljgscancode"
  10. minSdkVersion 21
  11. targetSdkVersion 30
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildFeatures {
  17. viewBinding true
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. }
  30. dependencies {
  31. implementation 'com.google.mlkit:barcode-scanning:16.1.1'
  32. implementation 'com.squareup.okhttp3:okhttp:4.9.1'
  33. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
  34. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  35. implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
  36. implementation 'androidx.camera:camera-camera2:1.1.0-alpha04'
  37. implementation 'androidx.camera:camera-lifecycle:1.1.0-alpha04'
  38. implementation 'androidx.camera:camera-view:1.0.0-alpha24'
  39. implementation 'com.github.bumptech.glide:glide:4.12.0'
  40. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  41. implementation 'androidx.core:core-ktx:1.5.0'
  42. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
  43. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"
  44. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
  45. implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
  46. implementation 'androidx.appcompat:appcompat:1.3.0'
  47. implementation 'com.google.android.material:material:1.3.0'
  48. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  49. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  50. testImplementation 'junit:junit:4.13.2'
  51. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  52. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  53. }