Skip to content

Commit

Permalink
Add the Messages framework
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 12, 2025
1 parent f3d7ef5 commit b193a80
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/objc2/src/topics/about_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `DiskArbitration` / `objc2-disk-arbitration`.
- `EventKitUI` / `objc2-event-kit-ui`.
- `IOSurface` / `objc2-io-surface`.
- `Messages` / `objc2-messages`.
- `MetalPerformanceShaders` / `objc2-metal-performance-shaders`.
- `MetalPerformanceShadersGraph` / `objc2-metal-performance-shaders-graph`.
- `OpenDirectory` / `objc2-open-directory`.
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 @@ -62,6 +62,7 @@
| `MailKit` | [![`objc2-mail-kit`](https://badgen.net/crates/v/objc2-mail-kit)](https://crates.io/crates/objc2-mail-kit) | [![docs.rs](https://docs.rs/objc2-mail-kit/badge.svg)](https://docs.rs/objc2-mail-kit/) |
| `MapKit` | [![`objc2-map-kit`](https://badgen.net/crates/v/objc2-map-kit)](https://crates.io/crates/objc2-map-kit) | [![docs.rs](https://docs.rs/objc2-map-kit/badge.svg)](https://docs.rs/objc2-map-kit/) |
| `MediaPlayer` | [![`objc2-media-player`](https://badgen.net/crates/v/objc2-media-player)](https://crates.io/crates/objc2-media-player) | [![docs.rs](https://docs.rs/objc2-media-player/badge.svg)](https://docs.rs/objc2-media-player/) |
| `Messages` | [![`objc2-messages`](https://badgen.net/crates/v/objc2-messages)](https://crates.io/crates/objc2-messages) | [![docs.rs](https://docs.rs/objc2-messages/badge.svg)](https://docs.rs/objc2-messages/) |
| `Metal` | [![`objc2-metal`](https://badgen.net/crates/v/objc2-metal)](https://crates.io/crates/objc2-metal) | [![docs.rs](https://docs.rs/objc2-metal/badge.svg)](https://docs.rs/objc2-metal/) |
| `MetalFX` | [![`objc2-metal-fx`](https://badgen.net/crates/v/objc2-metal-fx)](https://crates.io/crates/objc2-metal-fx) | [![docs.rs](https://docs.rs/objc2-metal-fx/badge.svg)](https://docs.rs/objc2-metal-fx/) |
| `MetalKit` | [![`objc2-metal-kit`](https://badgen.net/crates/v/objc2-metal-kit)](https://crates.io/crates/objc2-metal-kit) | [![docs.rs](https://docs.rs/objc2-metal-kit/badge.svg)](https://docs.rs/objc2-metal-kit/) |
Expand Down
5 changes: 5 additions & 0 deletions crates/test-frameworks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ test-frameworks = [
"objc2-map-kit/all",
"dep:objc2-media-player",
"objc2-media-player/all",
"dep:objc2-messages",
"objc2-messages/all",
"dep:objc2-metal",
"objc2-metal/all",
"dep:objc2-metal-fx",
Expand Down Expand Up @@ -323,6 +325,9 @@ objc2-local-authentication = { path = "../../framework-crates/objc2-local-authen
[target.'cfg(any(target_os = "ios", target_os = "visionos"))'.dependencies]
objc2-event-kit-ui = { path = "../../framework-crates/objc2-event-kit-ui", optional = true }

[target.'cfg(target_os = "ios")'.dependencies]
objc2-messages = { path = "../../framework-crates/objc2-messages", optional = true }

[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))'.dependencies]
objc2-nearby-interaction = { path = "../../framework-crates/objc2-nearby-interaction", optional = true }

Expand Down
148 changes: 148 additions & 0 deletions framework-crates/objc2-messages/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-messages/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-messages/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-messages/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! # Bindings to the `Messages` 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/messages/
//! [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-messages/0.2.2")]

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

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

mod generated;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;
5 changes: 5 additions & 0 deletions framework-crates/objc2-messages/translation-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
framework = "Messages"
crate = "objc2-messages"
required-crates = ["objc2", "objc2-foundation"]
maccatalyst = "14.0"
ios = "10.0"

0 comments on commit b193a80

Please sign in to comment.