Skip to content

Commit 3620f60

Browse files
committed
ios: Update to objc2 v0.6
1 parent 3ea6f97 commit 3620f60

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jni = "0.21"
3636
ndk-context = "0.1"
3737

3838
[target.'cfg(any(target_os = "ios", target_os = "tvos", target_os = "visionos"))'.dependencies]
39-
block2 = "0.5.0"
40-
objc2 = "0.5.1"
41-
objc2-foundation = { version = "0.2.0", default-features = false, features = [
39+
block2 = "0.6.0"
40+
objc2 = "0.6.0"
41+
objc2-foundation = { version = "0.3.0", default-features = false, features = [
4242
"std",
4343
"NSDictionary",
4444
"NSString",

src/ios.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::{Browser, BrowserOptions, Error, ErrorKind, Result, TargetType};
22
use block2::Block;
3-
use objc2::rc::Id;
3+
use objc2::rc::Retained;
44
use objc2::runtime::Bool;
5-
use objc2::{class, msg_send, msg_send_id};
5+
use objc2::{class, msg_send};
66
use objc2_foundation::{NSDictionary, NSObject, NSString, NSURL};
77

8-
fn app() -> Option<Id<NSObject>> {
9-
unsafe { msg_send_id![class!(UIApplication), sharedApplication] }
8+
fn app() -> Option<Retained<NSObject>> {
9+
unsafe { msg_send![class!(UIApplication), sharedApplication] }
1010
}
1111

1212
fn open_url(

0 commit comments

Comments
 (0)