feat(ci): test mobile targets (#378)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-19 09:46:06 -07:00
committed by GitHub
parent 8bd80eb651
commit d677f73495
13 changed files with 84 additions and 16 deletions
+2
View File
@@ -15,6 +15,8 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
authenticator = "0.3.1"
once_cell = "1"
sha2 = "0.10"
+2
View File
@@ -2,6 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(not(any(target_os = "android", target_os = "ios")))]
mod auth;
mod error;
mod u2f;
+2
View File
@@ -2,6 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(not(any(target_os = "android", target_os = "ios")))]
use auto_launch::{AutoLaunch, AutoLaunchBuilder};
#[cfg(target_os = "macos")]
use log::info;
@@ -37,6 +37,6 @@ class ClipboardPlugin: Plugin {
}
@_cdecl("init_plugin_clipboard")
func initPlugin(name: SRString, webview: WKWebView?) {
Tauri.registerPlugin(webview: webview, name: name.toString(), plugin: ClipboardPlugin())
func initPlugin() -> Plugin {
return ClipboardPlugin()
}
@@ -202,6 +202,6 @@ class DialogPlugin: Plugin {
}
@_cdecl("init_plugin_dialog")
func initPlugin(name: SRString, webview: WKWebView?) {
Tauri.registerPlugin(webview: webview, name: name.toString(), plugin: DialogPlugin())
}
func initPlugin() -> Plugin {
return DialogPlugin()
}
+2
View File
@@ -11,4 +11,6 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
global-hotkey = "0.2.1"
+2
View File
@@ -1,3 +1,5 @@
#![cfg(not(any(target_os = "android", target_os = "ios")))]
use std::{
collections::HashMap,
str::FromStr,
+2
View File
@@ -9,6 +9,8 @@
//!
//! Note: This requires attaching the Tauri plugin, *even* when using the trait extension only.
#![cfg(not(any(target_os = "android", target_os = "ios")))]
mod ext;
pub use ext::*;
+2
View File
@@ -1,3 +1,5 @@
#![cfg(not(any(target_os = "android", target_os = "ios")))]
use tauri::{plugin::TauriPlugin, AppHandle, Manager, Runtime};
#[cfg(target_os = "windows")]
+3 -1
View File
@@ -7,7 +7,9 @@
all(feature = "sqlite", feature = "postgres"),
all(feature = "mysql", feature = "postgres")
))]
compile_error!("Only one database driver can be enabled. Use `default-features = false` and set the feature flag for the driver of your choice.");
compile_error!(
"Only one database driver can be enabled. Set the feature flag for the driver of your choice."
);
#[cfg(not(any(feature = "sqlite", feature = "mysql", feature = "postgres")))]
compile_error!(
+2
View File
@@ -2,6 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(not(any(target_os = "android", target_os = "ios")))]
use bitflags::bitflags;
use serde::{Deserialize, Serialize};
use tauri::{