- fix desktop target - cleanup ios
- fix desktop target - cleanup ios
Seto Elkahfi committed
Aug 18, 2025 at 17:41 UTC
7800ad27c2ce84cdb493443cf2f132a3fb0e64b2
5 files changed
+4
-9
Cargo.toml
+1
-1
@@ -1,6 +1,6 @@
1
[package]
2
name = "tauri-plugin-android-tv-check"
3
-version = "1.0.0"
3
+version = "1.1.0"
4
authors = ["setoelkahfi@gmail.com"]
5
description = "A Tauri plugin for checking Android TV devices."
6
edition = "2021"
build.rs
-1
@@ -3,6 +3,5 @@ const COMMANDS: &[&str] = &["check"];
3
fn main() {
4
tauri_plugin::Builder::new(COMMANDS)
5
.android_path("android")
6
- .ios_path("ios")
6
.build();
7
}
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "tauri-plugin-android-tv-check-api",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
"author": "setoelkahfi@gmail.com",
5
"description": "",
6
"type": "module",
src/desktop.rs
+1
-1
@@ -16,7 +16,7 @@ pub struct AndroidTvCheck<R: Runtime>(AppHandle<R>);
16
impl<R: Runtime> AndroidTvCheck<R> {
17
pub fn check(&self) -> crate::Result<CheckResponse> {
18
Ok(CheckResponse {
19
- is_android_tv: true,
19
+ is_android_tv: false,
20
})
21
}
22
}
src/mobile.rs
+1
-5
@@ -6,8 +6,6 @@ use tauri::{
6
7
use crate::models::*;
8
9
-#[cfg(target_os = "ios")]
10
-tauri::ios_plugin_binding!(init_plugin_android_tv_check);
9
#[cfg(target_os = "android")]
10
const PLUGIN_IDENTIFIER: &str = "com.plugin.androidTvCheck";
11
@@ -18,8 +16,6 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
16
) -> crate::Result<AndroidTvCheck<R>> {
17
#[cfg(target_os = "android")]
18
let handle = api.register_android_plugin(PLUGIN_IDENTIFIER, "AndroidTvCheckPlugin")?;
21
- #[cfg(target_os = "ios")]
22
- let handle = api.register_ios_plugin(init_plugin_android_tv_check)?;
19
Ok(AndroidTvCheck(handle))
20
}
21
@@ -30,7 +26,7 @@ impl<R: Runtime> AndroidTvCheck<R> {
26
pub fn check(&self) -> crate::Result<CheckResponse> {
27
match self.0.run_mobile_plugin("check", ()) {
28
Ok(res) => {
33
- println!("Check response: {:?}", res);
29
+ println!("tauri-plugin-android-tv-check: {:?}", res);
30
Ok(res)
31
}
32
Err(err) => Err(err.into()),