Compare commits
3
Commits
a8ff604873
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
743fc021f6 | ||
|
|
24c5d3e1f2 | ||
|
|
de72fa5e3e |
No files matched your search
@@ -41,6 +41,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Unduh Rust
|
||||||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
rustflags: "-A warnings"
|
||||||
|
|
||||||
|
- name: Penerbitan peti Cargo
|
||||||
|
run: |
|
||||||
|
cargo publish
|
||||||
|
env:
|
||||||
|
CARGO_REGISTRIES_GITEA_TOKEN: Bearer ${{ secrets.KUNCI_PENERBITAN }}
|
||||||
|
|
||||||
- name: Unduh pnpm
|
- name: Unduh pnpm
|
||||||
uses: pnpm/setup@v2
|
uses: pnpm/setup@v2
|
||||||
with:
|
with:
|
||||||
@@ -53,15 +65,3 @@ jobs:
|
|||||||
npm config set -- '//${{ vars.ALAMAT_GITEA }}/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/:_authToken' "${{ secrets.KUNCI_PENERBITAN }}"
|
npm config set -- '//${{ vars.ALAMAT_GITEA }}/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/:_authToken' "${{ secrets.KUNCI_PENERBITAN }}"
|
||||||
npm publish
|
npm publish
|
||||||
rm -rf pnpm-lock.yaml .pnpm-store/
|
rm -rf pnpm-lock.yaml .pnpm-store/
|
||||||
|
|
||||||
- name: Unduh Rust
|
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
rustflags: "-A warnings"
|
|
||||||
|
|
||||||
- name: Penerbitan peti Cargo
|
|
||||||
run: |
|
|
||||||
cargo publish
|
|
||||||
env:
|
|
||||||
CARGO_REGISTRIES_GITEA_TOKEN: Bearer ${{ secrets.KUNCI_PENERBITAN }}
|
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-bluclas"
|
name = "tauri-plugin-bluclas"
|
||||||
version = "0.1.21"
|
version = "0.1.23"
|
||||||
authors = [ "Rizky Denianto" ]
|
authors = [ "Rizky Denianto" ]
|
||||||
description = "Program sederhana untuk interaksi dengan bluetooth classic"
|
description = "Program sederhana untuk interaksi dengan bluetooth classic"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
@@ -28,7 +28,7 @@ ios = { level = "none" }
|
|||||||
tauri = { version = "2.11.5" }
|
tauri = { version = "2.11.5" }
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
serialport = "4.10.0"
|
serialport = "4.10.1"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-plugin = { version = "2.6.3", features = ["build"] }
|
tauri-plugin = { version = "2.6.3", features = ["build"] }
|
||||||
+18
-1
@@ -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 = {
|
export type SDaftarPerangkatBlueclasResponDaftarPerangkat = {
|
||||||
nama: string;
|
nama: string;
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@segubi/tauri-plugin-bluclas-api",
|
"name": "@segubi/tauri-plugin-bluclas-api",
|
||||||
"version": "0.1.21",
|
"version": "0.1.23",
|
||||||
"author": "Rizky Denianto",
|
"author": "Rizky Denianto",
|
||||||
"description": "Program sederhana untuk interaksi dengan bluetooth classic",
|
"description": "Program sederhana untuk interaksi dengan bluetooth classic",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-typescript": "^12.3.0",
|
"@rollup/plugin-typescript": "^12.3.0",
|
||||||
"rollup": "^4.63.1",
|
"rollup": "^4.63.2",
|
||||||
"typescript": "^6.0.3",
|
"typescript": "^6.0.3",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user