os-gate ios stuff

This commit is contained in:
Brendan Allan 2023-01-22 10:26:46 +08:00
parent 22b5914f5b
commit 3c81591090
2 changed files with 5 additions and 1 deletions

View file

@ -11,11 +11,13 @@ rust-version = "1.64.0"
# which are only available when linking against the app's ObjC
crate-type = ["staticlib"]
[dependencies]
[target.'cfg(target_os = "ios")'.dependencies]
# FFI
objc = "0.2.7"
objc_id = "0.1.1"
objc-foundation = "0.1.1"
[dependencies]
# Core mobile handling stuff
sd-core-mobile = { path = "../mobile" }

View file

@ -1,3 +1,5 @@
#![cfg(target_os = "ios")]
use std::{
ffi::{CStr, CString},
os::raw::{c_char, c_void},