Memperbaiki tipe data respon cek izin
Penerbitan Plugin / persiapan (pull_request) Successful in 14s
Penerbitan Plugin / penerbitan (pull_request) Successful in 34s

This commit is contained in:
rizky_denianto committed 2026-07-16 21:39:04 +07:00
1 parent 16e8128f5a
commit 2185c6e6fb
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ use crate::Result;
use crate::models::*;
#[command]
pub(crate) async fn cek_izin<R: Runtime>(app: AppHandle<R>) -> Result<bool> {
pub(crate) async fn cek_izin<R: Runtime>(app: AppHandle<R>) -> Result<String> {
return app.bluclas().cek_izin();
}
+2 -2
View File
@@ -14,8 +14,8 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
pub struct Bluclas<R: Runtime>(AppHandle<R>);
impl<R: Runtime> Bluclas<R> {
pub fn cek_izin(&self) -> crate::Result<bool> {
return Ok(false);
pub fn cek_izin(&self) -> crate::Result<String> {
return Ok(String::new());
}
pub fn minta_izin(&self) -> crate::Result<()> {
+1 -1
View File
@@ -25,7 +25,7 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
pub struct Bluclas<R: Runtime>(PluginHandle<R>);
impl<R: Runtime> Bluclas<R> {
pub fn cek_izin(&self) -> crate::Result<bool> {
pub fn cek_izin(&self) -> crate::Result<String> {
return self
.0
.run_mobile_plugin("checkPermissions", ())