Skip to content

Commit 9510ed2

Browse files
committed
fix(capacitor-ios): enable NonescapableTypes for Capacitor 8.3.0 binary compat
The Capacitor 8.3.0 xcframework was compiled with the experimental NonescapableTypes feature, gating getString, getBool, getArray, and reject behind #if $NonescapableTypes in the swiftinterface. Consumers must enable the same feature to access these APIs.
1 parent 76ed9be commit 9510ed2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

capacitor/Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ let package = Package(
1919
.product(name: "Capacitor", package: "capacitor-swift-pm"),
2020
.product(name: "Cordova", package: "capacitor-swift-pm")
2121
],
22-
path: "ios/Sources/PurchasePlugin")
22+
path: "ios/Sources/PurchasePlugin",
23+
swiftSettings: [
24+
.enableExperimentalFeature("NonescapableTypes")
25+
])
2326
]
2427
)

0 commit comments

Comments
 (0)