Menambah fungsi cek dan minta izin #7

Merged
rizky_denianto merged 2 commits from pengembangan into main 2026-07-15 23:46:50 +07:00
2 changed files with 18 additions and 4 deletions

No files matched your search

+2 -2
View File
@@ -18,9 +18,9 @@ strip = "symbols"
debug = false
[dependencies]
tauri = { version = "2.10.3" }
tauri = { version = "2.11.5" }
serde = "1.0"
thiserror = "2"
[build-dependencies]
tauri-plugin = { version = "2.5.4", features = ["build"] }
tauri-plugin = { version = "2.6.3", features = ["build"] }
+16 -2
View File
@@ -27,8 +27,12 @@ class KirimArgs {
@TauriPlugin(
permissions = [
Permission(
strings = [Manifest.permission.BLUETOOTH_CONNECT],
alias = "bluetoothConnect"
strings = [
Manifest.permission.BLUETOOTH_SCAN,
Manifest.permission.BLUETOOTH_CONNECT,
Manifest.permission.BLUETOOTH_ADVERTISE
],
alias = "bluetooth"
)
]
)
@@ -39,6 +43,16 @@ class BluclasPlugin(private val activity: Activity) : Plugin(activity) {
private var soket: BluetoothSocket? = null
private var keluaran: OutputStream? = null
@Command
override fun checkPermissions(invoke: Invoke) {
super.checkPermissions(invoke)
}
@Command
override fun requestPermissions(invoke: Invoke) {
super.requestPermissions(invoke)
}
@Command
fun daftarPerangkat(invoke: Invoke) {
if (adapter == null) {