From 16ede0a7632f7a49c213d5560ac74777f426dd92 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 9 Feb 2026 17:41:14 +0800 Subject: [PATCH] Add device support for AttributeGraph --- Package.resolved | 2 +- Sources/OpenAttributeGraphShims/GraphShims.swift | 3 +++ Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Package.resolved b/Package.resolved index 0e4ccbf0..d5deff5d 100644 --- a/Package.resolved +++ b/Package.resolved @@ -7,7 +7,7 @@ "location" : "https://github.com/OpenSwiftUIProject/DarwinPrivateFrameworks.git", "state" : { "branch" : "main", - "revision" : "5eb0f26ea5a5bbd5068f6b3daf3a97dd3682b234" + "revision" : "debec01dd68ac6cad24ce07c33ca419a223e8720" } }, { diff --git a/Sources/OpenAttributeGraphShims/GraphShims.swift b/Sources/OpenAttributeGraphShims/GraphShims.swift index c02e82af..84567e30 100644 --- a/Sources/OpenAttributeGraphShims/GraphShims.swift +++ b/Sources/OpenAttributeGraphShims/GraphShims.swift @@ -4,6 +4,9 @@ #if OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH @_exported public import AttributeGraph +#if os(iOS) && !targetEnvironment(simulator) +@_exported public import _AttributeGraphDeviceSwiftShims +#endif public typealias OAGAttributeInfo = AGAttributeInfo public typealias OAGCachedValueOptions = AGCachedValueOptions public typealias OAGChangedValueFlags = AGChangedValueFlags diff --git a/Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift b/Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift index 496c2e7f..0d4994b1 100644 --- a/Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift +++ b/Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift @@ -12,6 +12,9 @@ public let swiftToolchainSupported = false #endif #else @_exported public import AttributeGraph +#if os(iOS) && !targetEnvironment(simulator) +@_exported public import _AttributeGraphDeviceSwiftShims +#endif public typealias OAGAttributeInfo = AGAttributeInfo public typealias OAGCachedValueOptions = AGCachedValueOptions public typealias OAGChangedValueFlags = AGChangedValueFlags