Skip to content

Commit d59b29b

Browse files
madsmtmqdot
authored andcommitted
Support tvOS, watchOS and visionOS
1 parent ba24d16 commit d59b29b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jni = "0.19.0"
4545
once_cell = "1.19.0"
4646
jni-utils = "0.1.1"
4747

48-
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
48+
[target.'cfg(target_vendor = "apple")'.dependencies]
4949
objc2 = "0.5.1"
5050
objc2-foundation = { version = "0.2.0", features = [
5151
"block2",

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub mod api;
9494
mod bluez;
9595
#[cfg(not(target_os = "linux"))]
9696
mod common;
97-
#[cfg(any(target_os = "macos", target_os = "ios"))]
97+
#[cfg(target_vendor = "apple")]
9898
mod corebluetooth;
9999
#[cfg(target_os = "android")]
100100
mod droidplug;

src/platform.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pub use crate::bluez::{
66
adapter::Adapter, manager::Manager, peripheral::Peripheral, peripheral::PeripheralId,
77
};
8-
#[cfg(any(target_os = "macos", target_os = "ios"))]
8+
#[cfg(target_vendor = "apple")]
99
pub use crate::corebluetooth::{
1010
adapter::Adapter, manager::Manager, peripheral::Peripheral, peripheral::PeripheralId,
1111
};

0 commit comments

Comments
 (0)