From 3620f601032433c946e9b39cdccc7edf527573e5 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 9 Mar 2025 20:11:13 +0100 Subject: [PATCH] ios: Update to objc2 v0.6 --- Cargo.toml | 6 +++--- src/ios.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9912e44..d1f4e00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,9 +36,9 @@ jni = "0.21" ndk-context = "0.1" [target.'cfg(any(target_os = "ios", target_os = "tvos", target_os = "visionos"))'.dependencies] -block2 = "0.5.0" -objc2 = "0.5.1" -objc2-foundation = { version = "0.2.0", default-features = false, features = [ +block2 = "0.6.0" +objc2 = "0.6.0" +objc2-foundation = { version = "0.3.0", default-features = false, features = [ "std", "NSDictionary", "NSString", diff --git a/src/ios.rs b/src/ios.rs index ea926d4..4bd88ee 100644 --- a/src/ios.rs +++ b/src/ios.rs @@ -1,12 +1,12 @@ use crate::{Browser, BrowserOptions, Error, ErrorKind, Result, TargetType}; use block2::Block; -use objc2::rc::Id; +use objc2::rc::Retained; use objc2::runtime::Bool; -use objc2::{class, msg_send, msg_send_id}; +use objc2::{class, msg_send}; use objc2_foundation::{NSDictionary, NSObject, NSString, NSURL}; -fn app() -> Option> { - unsafe { msg_send_id![class!(UIApplication), sharedApplication] } +fn app() -> Option> { + unsafe { msg_send![class!(UIApplication), sharedApplication] } } fn open_url(