File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ dependencies {
6868 implementation(" androidx.compose.ui:ui" )
6969 implementation(" androidx.compose.material3:material3" )
7070 implementation(" androidx.activity:activity-compose" )
71+ implementation(" androidx.lifecycle:lifecycle-runtime-compose:2.9.2" )
7172 implementation(" androidx.lifecycle:lifecycle-viewmodel-compose:2.9.2" )
7273 implementation(" androidx.constraintlayout:constraintlayout-compose:1.1.1" )
7374 implementation(" androidx.navigation:navigation-compose:2.9.3" )
@@ -86,6 +87,17 @@ dependencies {
8687 // QR codes
8788 implementation(" com.google.zxing:core:3.5.3" )
8889
90+ // CameraX (needed by QrCodeScanner)
91+ implementation(" androidx.camera:camera-camera2:1.3.4" )
92+ implementation(" androidx.camera:camera-lifecycle:1.3.4" )
93+ implementation(" androidx.camera:camera-view:1.3.4" )
94+
95+ // ML Kit barcode scanning (needed by QrCodeScanner)
96+ implementation(" com.google.mlkit:barcode-scanning:17.3.0" )
97+
98+ // Accompanist permissions (runtime permission handling in Compose)
99+ implementation(" com.google.accompanist:accompanist-permissions:0.36.0" )
100+
89101 // Tests
90102 testImplementation(" junit:junit:4.13.2" )
91103 androidTestImplementation(" androidx.test.ext:junit:1.3.0" )
Original file line number Diff line number Diff line change 33 xmlns : android =" http://schemas.android.com/apk/res/android" >
44
55 <uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
6+ <uses-permission android : name =" android.permission.CAMERA" />
7+ <uses-feature android : name =" android.hardware.camera" android : required =" false" />
68 <application
79 android : allowBackup =" true"
810 android : icon =" @mipmap/ic_launcher"
You can’t perform that action at this time.
0 commit comments