File tree 5 files changed +8
-16
lines changed
5 files changed +8
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " barcode-scanner " : patch
3
+ ---
4
+
5
+ Remove unused Android dependencies.
Original file line number Diff line number Diff line change @@ -47,9 +47,5 @@ dependencies {
47
47
testImplementation(" junit:junit:4.13.2" )
48
48
androidTestImplementation(" androidx.test.ext:junit:1.1.5" )
49
49
androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
50
- implementation(" com.journeyapps:zxing-android-embedded:4.3.0" ) {
51
- isTransitive = false
52
- }
53
- implementation(" com.google.zxing:core:3.3.0" )
54
50
implementation(project(" :tauri-android" ))
55
51
}
Original file line number Diff line number Diff line change 2
2
xmlns : tools =" http://schemas.android.com/tools"
3
3
android : hardwareAccelerated =" true" >
4
4
5
- <!-- Paste the following line into the AndroidManifest.xml of your project -->
6
- <!-- See also: https://capacitorjs.com/docs/plugins/android#manifest -->
7
- <!-- <uses-feature android:name="android.hardware.camera" android:required="false" /> -->
8
-
9
- <uses-sdk tools : overrideLibrary =" com.google.zxing.client.android" />
5
+ <uses-permission android : name =" android.permission.CAMERA" />
10
6
<uses-permission android : name =" android.permission.VIBRATE" />
7
+
8
+ <uses-feature android : name =" android.hardware.camera.any" />
11
9
</manifest >
Original file line number Diff line number Diff line change @@ -42,15 +42,13 @@ import app.tauri.annotation.Permission
42
42
import app.tauri.annotation.PermissionCallback
43
43
import app.tauri.annotation.TauriPlugin
44
44
import app.tauri.plugin.Invoke
45
- import app.tauri.plugin.JSArray
46
45
import app.tauri.plugin.JSObject
47
46
import app.tauri.plugin.Plugin
48
47
import com.google.common.util.concurrent.ListenableFuture
49
48
import com.google.mlkit.vision.barcode.BarcodeScannerOptions
50
49
import com.google.mlkit.vision.barcode.BarcodeScanning
51
50
import com.google.mlkit.vision.barcode.common.Barcode
52
51
import com.google.mlkit.vision.common.InputImage
53
- import org.json.JSONException
54
52
import java.util.Collections
55
53
import java.util.concurrent.ExecutionException
56
54
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3
3
<uses-permission android : name =" android.permission.NFC" />
4
- <!-- TODO: if the app doesn't rely on nfc the uses-feature line could be removed. The app store uses this prop to decide whether or not to show the app. -->
5
- <!-- TODO: Move that info somewhere else since users usually can't see this file. -->
6
- <!-- Paste the following line into the AndroidManifest.xml of your project -->
7
- <!-- See also: https://capacitorjs.com/docs/plugins/android#manifest -->
8
- <!-- <uses-feature android:name="android.hardware.nfc" android:required="true" /> -->
9
4
</manifest >
You can’t perform that action at this time.
0 commit comments