Skip to content

Commit 4f3a69e

Browse files
authored
Add device support for AttributeGraph (#198)
1 parent b8ee968 commit 4f3a69e

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎Package.resolved‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Sources/OpenAttributeGraphShims/GraphShims.swift‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#if OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH
66
@_exported public import AttributeGraph
7+
#if os(iOS) && !targetEnvironment(simulator)
8+
@_exported public import _AttributeGraphDeviceSwiftShims
9+
#endif
710
public typealias OAGAttributeInfo = AGAttributeInfo
811
public typealias OAGCachedValueOptions = AGCachedValueOptions
912
public typealias OAGChangedValueFlags = AGChangedValueFlags

‎Tests/OpenAttributeGraphCompatibilityTests/GraphShims.swift‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public let swiftToolchainSupported = false
1212
#endif
1313
#else
1414
@_exported public import AttributeGraph
15+
#if os(iOS) && !targetEnvironment(simulator)
16+
@_exported public import _AttributeGraphDeviceSwiftShims
17+
#endif
1518
public typealias OAGAttributeInfo = AGAttributeInfo
1619
public typealias OAGCachedValueOptions = AGCachedValueOptions
1720
public typealias OAGChangedValueFlags = AGChangedValueFlags

0 commit comments

Comments
 (0)