Menyederhanakan cara meminta izin untuk menggunakan plugin
Penerbitan Plugin / persiapan (pull_request) Successful in 6s
Penerbitan Plugin / penerbitan (pull_request) Failing after 4m17s

This commit is contained in:
rizky_denianto committed 2026-09-12 21:44:37 +07:00
1 parent 00aa5a8526
commit de72fa5e3e
3 files changed
+22 -5

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-bluclas"
version = "0.1.21"
version = "0.1.22"
authors = [ "Rizky Denianto" ]
description = "Program sederhana untuk interaksi dengan bluetooth classic"
edition = "2024"
@@ -28,7 +28,7 @@ ios = { level = "none" }
tauri = { version = "2.11.5" }
serde = "1.0"
thiserror = "2"
serialport = "4.10.0"
serialport = "4.10.1"
[build-dependencies]
tauri-plugin = { version = "2.6.3", features = ["build"] }
+18 -1
View File
@@ -1,4 +1,21 @@
import { invoke } from "@tauri-apps/api/core";
import {
checkPermissions as checkPermissions_,
invoke,
PermissionState,
requestPermissions as requestPermissions_,
} from "@tauri-apps/api/core";
export async function checkPermissions(): Promise<PermissionState> {
return await checkPermissions_<{ bluetooth: PermissionState }>(
"bluclas",
).then((e) => e.bluetooth);
}
export async function requestPermissions(): Promise<PermissionState> {
return await requestPermissions_<{ bluetooth: PermissionState }>(
"bluclas",
).then((e) => e.bluetooth);
}
export type SDaftarPerangkatBlueclasResponDaftarPerangkat = {
nama: string;
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@segubi/tauri-plugin-bluclas-api",
"version": "0.1.21",
"version": "0.1.22",
"author": "Rizky Denianto",
"description": "Program sederhana untuk interaksi dengan bluetooth classic",
"type": "module",
@@ -26,7 +26,7 @@
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.3.0",
"rollup": "^4.63.1",
"rollup": "^4.63.2",
"typescript": "^6.0.3",
"tslib": "^2.8.1"
}