diff --git a/crates/header-translator/framework-includes.h b/crates/header-translator/framework-includes.h index 60fd78ad0..c9fe9321e 100644 --- a/crates/header-translator/framework-includes.h +++ b/crates/header-translator/framework-includes.h @@ -20,4 +20,6 @@ #import +#import + #import diff --git a/crates/header-translator/src/data/BackgroundAssets.rs b/crates/header-translator/src/data/BackgroundAssets.rs new file mode 100644 index 000000000..89a871f29 --- /dev/null +++ b/crates/header-translator/src/data/BackgroundAssets.rs @@ -0,0 +1,2 @@ +data! { +} diff --git a/crates/header-translator/src/data/mod.rs b/crates/header-translator/src/data/mod.rs index 449d3cfe5..470407b9e 100644 --- a/crates/header-translator/src/data/mod.rs +++ b/crates/header-translator/src/data/mod.rs @@ -6,6 +6,7 @@ mod macros; data! { mod AppKit; mod AuthenticationServices; + mod BackgroundAssets; mod CoreAnimation; mod CoreData; mod Foundation; diff --git a/crates/header-translator/translation-config.toml b/crates/header-translator/translation-config.toml index 48f57b5d5..f9154eb9a 100644 --- a/crates/header-translator/translation-config.toml +++ b/crates/header-translator/translation-config.toml @@ -23,6 +23,9 @@ imports = ["AppKit", "CoreData", "Foundation"] [library.AuthenticationServices] imports = ["AuthenticationServices", "Foundation"] +[library.BackgroundAssets] +imports = ["BackgroundAssets", "Foundation"] + [library.WebKit] imports = ["WebKit", "AppKit", "Foundation"] diff --git a/crates/icrate/Cargo.toml b/crates/icrate/Cargo.toml index 864dd6413..7ad312303 100644 --- a/crates/icrate/Cargo.toml +++ b/crates/icrate/Cargo.toml @@ -140,6 +140,7 @@ AuthenticationServices = [ # Temporary, since some structs and statics use these "Foundation_NSURL", ] +BackgroundAssets = ["Foundation"] CoreAnimation = ["Foundation"] CoreData = [ "Foundation", @@ -175,14 +176,15 @@ WebKit = [ ] # Helps with CI -unstable-frameworks-all = ["unstable-frameworks-ios", "unstable-frameworks-macos-12"] +unstable-frameworks-all = ["unstable-frameworks-ios", "unstable-frameworks-macos-13"] unstable-frameworks-gnustep = ["AppKit_all", "Foundation_all"] unstable-frameworks-gnustep-32bit = ["Foundation_all"] -unstable-frameworks-ios = ["AuthenticationServices_all", "CoreData_all", "CoreAnimation_all", "Foundation_all", "Metal_all", "WebKit_all"] +unstable-frameworks-ios = ["AuthenticationServices_all", "BackgroundAssets_all", "CoreData_all", "CoreAnimation_all", "Foundation_all", "Metal_all", "WebKit_all"] unstable-frameworks-macos-10-7 = ["AppKit_all", "CoreAnimation_all", "CoreData_all", "Foundation_all", "WebKit_all"] unstable-frameworks-macos-10-13 = ["unstable-frameworks-macos-10-7"] unstable-frameworks-macos-11 = ["unstable-frameworks-macos-10-13", "AuthenticationServices_all", "Metal_all"] unstable-frameworks-macos-12 = ["unstable-frameworks-macos-11"] +unstable-frameworks-macos-13 = ["unstable-frameworks-macos-12", "BackgroundAssets_all"] # Temporary fixes until we can autogenerate these Foundation_NSProxy = [] @@ -1176,6 +1178,19 @@ AuthenticationServices_all = [ "AuthenticationServices_ASWebAuthenticationSessionRequest", "AuthenticationServices_ASWebAuthenticationSessionWebBrowserSessionManager", ] +BackgroundAssets_BAAppExtensionInfo = [] +BackgroundAssets_BADownload = [] +BackgroundAssets_BADownloadManager = [] +BackgroundAssets_BAURLDownload = [ + "BackgroundAssets_BADownload", +] +BackgroundAssets_all = [ + "BackgroundAssets", + "BackgroundAssets_BAAppExtensionInfo", + "BackgroundAssets_BADownload", + "BackgroundAssets_BADownloadManager", + "BackgroundAssets_BAURLDownload", +] CoreAnimation_CAAnimation = [] CoreAnimation_CAAnimationGroup = [ "CoreAnimation_CAAnimation", diff --git a/crates/icrate/src/BackgroundAssets/mod.rs b/crates/icrate/src/BackgroundAssets/mod.rs new file mode 100644 index 000000000..a986c9b6d --- /dev/null +++ b/crates/icrate/src/BackgroundAssets/mod.rs @@ -0,0 +1,7 @@ +#[path = "../generated/BackgroundAssets/mod.rs"] +mod generated; + +pub use self::generated::*; + +#[link(name = "BackgroundAssets", kind = "framework")] +extern "C" {} diff --git a/crates/icrate/src/generated b/crates/icrate/src/generated index 7831ae848..39defa55e 160000 --- a/crates/icrate/src/generated +++ b/crates/icrate/src/generated @@ -1 +1 @@ -Subproject commit 7831ae8483e4f93266e540aafc1b7712f70023d2 +Subproject commit 39defa55eea055315a16e385914f3480c4805e3c diff --git a/crates/icrate/src/lib.rs b/crates/icrate/src/lib.rs index 1cd6cf770..abc8cca89 100644 --- a/crates/icrate/src/lib.rs +++ b/crates/icrate/src/lib.rs @@ -36,6 +36,8 @@ mod macros; pub mod AppKit; #[cfg(feature = "AuthenticationServices")] pub mod AuthenticationServices; +#[cfg(feature = "BackgroundAssets")] +pub mod BackgroundAssets; #[cfg(feature = "CoreAnimation")] pub mod CoreAnimation; #[cfg(feature = "CoreData")]