mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
feat: update to tauri beta, add permissions (#862)
Co-authored-by: Lucas Nogueira <lucas@tauri.app> Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
This commit is contained in:
co-authored by
Lucas Nogueira
Lucas Nogueira
parent
506ce4835b
commit
d198c01486
@@ -6,6 +6,8 @@
|
||||
mod config;
|
||||
use config::{AssociatedDomain, Config};
|
||||
|
||||
const COMMANDS: &[&str] = &["get_current"];
|
||||
|
||||
// TODO: Consider using activity-alias in case users may have multiple activities in their app.
|
||||
// TODO: Do we want to support the other path* configs too?
|
||||
fn intent_filter(domain: &AssociatedDomain) -> String {
|
||||
@@ -30,9 +32,9 @@ fn intent_filter(domain: &AssociatedDomain) -> String {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
if let Err(error) = tauri_build::mobile::PluginBuilder::new()
|
||||
if let Err(error) = tauri_plugin::Builder::new(COMMANDS)
|
||||
.android_path("android")
|
||||
.run()
|
||||
.try_build()
|
||||
{
|
||||
println!("{error:#}");
|
||||
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
|
||||
@@ -40,8 +42,8 @@ fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(config) = tauri_build::config::plugin_config::<Config>("deep-link") {
|
||||
tauri_build::mobile::update_android_manifest(
|
||||
if let Some(config) = tauri_plugin::plugin_config::<Config>("deep-link") {
|
||||
tauri_plugin::mobile::update_android_manifest(
|
||||
"DEEP LINK PLUGIN",
|
||||
"activity",
|
||||
config
|
||||
@@ -55,7 +57,7 @@ fn main() {
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
tauri_build::mobile::update_entitlements(|entitlements| {
|
||||
tauri_plugin::mobile::update_entitlements(|entitlements| {
|
||||
entitlements.insert(
|
||||
"com.apple.developer.associated-domains".into(),
|
||||
config
|
||||
|
||||
Reference in New Issue
Block a user