Skip to content

Commit

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

Large diffs are not rendered by default.

11 changes: 11 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 @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `AudioToolbox` / `objc2-audio-toolbox`.
- `AVFAudio` / `objc2-avf-audio`.
- `AVFoundation` / `objc2-av-foundation`.
- `AVRouting` / `objc2-av-routing`.
- `CoreAudioTypes` / `objc2-core-audio-types`.
- `ColorSync` / `objc2-color-sync`.
- `CoreGraphics` / `objc2-core-graphics`.
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 @@ -3,6 +3,7 @@
| `AVFAudio` | [![`objc2-avf-audio`](https://badgen.net/crates/v/objc2-avf-audio)](https://crates.io/crates/objc2-avf-audio) | [![docs.rs](https://docs.rs/objc2-avf-audio/badge.svg)](https://docs.rs/objc2-avf-audio/) |
| `AVFoundation` | [![`objc2-av-foundation`](https://badgen.net/crates/v/objc2-av-foundation)](https://crates.io/crates/objc2-av-foundation) | [![docs.rs](https://docs.rs/objc2-av-foundation/badge.svg)](https://docs.rs/objc2-av-foundation/) |
| `AVKit` | [![`objc2-av-kit`](https://badgen.net/crates/v/objc2-av-kit)](https://crates.io/crates/objc2-av-kit) | [![docs.rs](https://docs.rs/objc2-av-kit/badge.svg)](https://docs.rs/objc2-av-kit/) |
| `AVRouting` | [![`objc2-av-routing`](https://badgen.net/crates/v/objc2-av-routing)](https://crates.io/crates/objc2-av-routing) | [![docs.rs](https://docs.rs/objc2-av-routing/badge.svg)](https://docs.rs/objc2-av-routing/) |
| `Accessibility` | [![`objc2-accessibility`](https://badgen.net/crates/v/objc2-accessibility)](https://crates.io/crates/objc2-accessibility) | [![docs.rs](https://docs.rs/objc2-accessibility/badge.svg)](https://docs.rs/objc2-accessibility/) |
| `Accounts` | [![`objc2-accounts`](https://badgen.net/crates/v/objc2-accounts)](https://crates.io/crates/objc2-accounts) | [![docs.rs](https://docs.rs/objc2-accounts/badge.svg)](https://docs.rs/objc2-accounts/) |
| `AdServices` | [![`objc2-ad-services`](https://badgen.net/crates/v/objc2-ad-services)](https://crates.io/crates/objc2-ad-services) | [![docs.rs](https://docs.rs/objc2-ad-services/badge.svg)](https://docs.rs/objc2-ad-services/) |
Expand Down
15 changes: 9 additions & 6 deletions crates/test-frameworks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ test-frameworks = [
"objc2-av-foundation/all",
"dep:objc2-av-kit",
"objc2-av-kit/all",
"dep:objc2-av-routing",
"objc2-av-routing/all",
"dep:objc2-accessibility",
"objc2-accessibility/all",
"dep:objc2-accounts",
Expand Down Expand Up @@ -245,13 +247,8 @@ objc2-symbols = { path = "../../framework-crates/objc2-symbols", optional = true
objc2-uniform-type-identifiers = { path = "../../framework-crates/objc2-uniform-type-identifiers", optional = true }
objc2-user-notifications = { path = "../../framework-crates/objc2-user-notifications", optional = true }

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
objc2-accounts = { path = "../../framework-crates/objc2-accounts", optional = true }
objc2-business-chat = { path = "../../framework-crates/objc2-business-chat", optional = true }
objc2-sensitive-content-analysis = { path = "../../framework-crates/objc2-sensitive-content-analysis", optional = true }
objc2-social = { path = "../../framework-crates/objc2-social", optional = true }

[target.'cfg(not(any(target_os = "tvos", target_os = "watchos")))'.dependencies]
objc2-av-routing = { path = "../../framework-crates/objc2-av-routing", optional = true }
objc2-ad-services = { path = "../../framework-crates/objc2-ad-services", optional = true }
objc2-automatic-assessment-configuration = { path = "../../framework-crates/objc2-automatic-assessment-configuration", optional = true }
objc2-background-assets = { path = "../../framework-crates/objc2-background-assets", optional = true }
Expand All @@ -266,6 +263,12 @@ objc2-metric-kit = { path = "../../framework-crates/objc2-metric-kit", optional
objc2-speech = { path = "../../framework-crates/objc2-speech", optional = true }
objc2-web-kit = { path = "../../framework-crates/objc2-web-kit", optional = true }

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
objc2-accounts = { path = "../../framework-crates/objc2-accounts", optional = true }
objc2-business-chat = { path = "../../framework-crates/objc2-business-chat", optional = true }
objc2-sensitive-content-analysis = { path = "../../framework-crates/objc2-sensitive-content-analysis", optional = true }
objc2-social = { path = "../../framework-crates/objc2-social", optional = true }

[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))'.dependencies]
objc2-ad-support = { path = "../../framework-crates/objc2-ad-support", optional = true }
objc2-ml-compute = { path = "../../framework-crates/objc2-ml-compute", optional = true }
Expand Down
63 changes: 63 additions & 0 deletions framework-crates/objc2-av-routing/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-av-routing/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-av-routing/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-av-routing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! # Bindings to the `AVRouting` 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/avrouting/
//! [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-av-routing/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::*;
12 changes: 12 additions & 0 deletions framework-crates/objc2-av-routing/translation-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
framework = "AVRouting"
crate = "objc2-av-routing"
required-crates = ["objc2", "objc2-foundation"]
macos = "13.0"
maccatalyst = "16.0"
ios = "16.0"
visionos = "1.0"

external.UTType.module = "UniformTypeIdentifiers.UTType"

# Needs nw_endpoint_t from Network
class.AVCustomDeviceRoute.methods.networkEndpoint.skipped = true

0 comments on commit f3d7ef5

Please sign in to comment.