Skip to content

Commit

Permalink
Add IntentsUI framework
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 28, 2025
1 parent b42306b commit 53bc291
Show file tree
Hide file tree
Showing 11 changed files with 174 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/objc2/src/topics/about_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Marked a bunch of functions safe in:
- `CoreFoundation` / `objc2-core-foundation`.
- `SystemConfiguration` / `objc2-system-configuration`.
* Added new framework crates:
- `Intents` / `objc2-intents`.
- `IntentsUI` / `objc2-intents-ui`.


## 0.3.0 - 2025-01-22
Expand Down
1 change: 1 addition & 0 deletions crates/objc2/src/topics/about_generated/list_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
| `IdentityLookup` | [![`objc2-identity-lookup`](https://badgen.net/crates/v/objc2-identity-lookup)](https://crates.io/crates/objc2-identity-lookup) | [![docs.rs](https://docs.rs/objc2-identity-lookup/badge.svg)](https://docs.rs/objc2-identity-lookup/) |
| `InputMethodKit` | [![`objc2-input-method-kit`](https://badgen.net/crates/v/objc2-input-method-kit)](https://crates.io/crates/objc2-input-method-kit) | [![docs.rs](https://docs.rs/objc2-input-method-kit/badge.svg)](https://docs.rs/objc2-input-method-kit/) |
| `Intents` | [![`objc2-intents`](https://badgen.net/crates/v/objc2-intents)](https://crates.io/crates/objc2-intents) | [![docs.rs](https://docs.rs/objc2-intents/badge.svg)](https://docs.rs/objc2-intents/) |
| `IntentsUI` | [![`objc2-intents-ui`](https://badgen.net/crates/v/objc2-intents-ui)](https://crates.io/crates/objc2-intents-ui) | [![docs.rs](https://docs.rs/objc2-intents-ui/badge.svg)](https://docs.rs/objc2-intents-ui/) |
| `LinkPresentation` | [![`objc2-link-presentation`](https://badgen.net/crates/v/objc2-link-presentation)](https://crates.io/crates/objc2-link-presentation) | [![docs.rs](https://docs.rs/objc2-link-presentation/badge.svg)](https://docs.rs/objc2-link-presentation/) |
| `LocalAuthentication` | [![`objc2-local-authentication`](https://badgen.net/crates/v/objc2-local-authentication)](https://crates.io/crates/objc2-local-authentication) | [![docs.rs](https://docs.rs/objc2-local-authentication/badge.svg)](https://docs.rs/objc2-local-authentication/) |
| `LocalAuthenticationEmbeddedUI` | [![`objc2-local-authentication-embedded-ui`](https://badgen.net/crates/v/objc2-local-authentication-embedded-ui)](https://crates.io/crates/objc2-local-authentication-embedded-ui) | [![docs.rs](https://docs.rs/objc2-local-authentication-embedded-ui/badge.svg)](https://docs.rs/objc2-local-authentication-embedded-ui/) |
Expand Down
3 changes: 3 additions & 0 deletions crates/test-frameworks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ test-frameworks = [
"objc2-identity-lookup",
"objc2-input-method-kit",
"objc2-intents",
"objc2-intents-ui",
"objc2-link-presentation",
"objc2-local-authentication",
"objc2-local-authentication-embedded-ui",
Expand Down Expand Up @@ -231,6 +232,7 @@ objc2-watch-connectivity = ["dep:objc2-watch-connectivity"]
objc2-watch-kit = ["dep:objc2-watch-kit"]
objc2-web-kit = ["dep:objc2-web-kit"]
objc2-intents = ["dep:objc2-intents"]
objc2-intents-ui = ["dep:objc2-intents-ui"]

[dependencies]
block2 = { path = "../block2" }
Expand Down Expand Up @@ -262,6 +264,7 @@ objc2-extension-kit = { path = "../../framework-crates/objc2-extension-kit", opt
objc2-foundation = { path = "../../framework-crates/objc2-foundation", optional = true }
objc2-game-kit = { path = "../../framework-crates/objc2-game-kit", optional = true }
objc2-intents = { path = "../../framework-crates/objc2-intents", optional = true }
objc2-intents-ui = { path = "../../framework-crates/objc2-intents-ui", optional = true }
objc2-map-kit = { path = "../../framework-crates/objc2-map-kit", optional = true }
objc2-media-player = { path = "../../framework-crates/objc2-media-player", optional = true }
objc2-natural-language = { path = "../../framework-crates/objc2-natural-language", optional = true }
Expand Down
100 changes: 100 additions & 0 deletions framework-crates/objc2-intents-ui/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions framework-crates/objc2-intents-ui/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions framework-crates/objc2-intents-ui/src/generated

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions framework-crates/objc2-intents-ui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! # Bindings to the `IntentsUI` framework
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
//! [apple-doc]: https://developer.apple.com/documentation/intentsui/
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-intents-ui/0.3.0")]

#[cfg(feature = "alloc")]
extern crate alloc;

#[cfg(feature = "std")]
extern crate std;

mod generated;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;
9 changes: 9 additions & 0 deletions framework-crates/objc2-intents-ui/translation-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
framework = "IntentsUI"
crate = "objc2-intents-ui"
required-crates = ["objc2", "objc2-foundation"]
macos = "12.0"
maccatalyst = "13.0"
ios = "10.0"
tvos = "14.0"
watchos = "3.2"
visionos = "1.0"

0 comments on commit 53bc291

Please sign in to comment.