peachsim 0.1.2064 → 0.1.2066
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +1959 -1783
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1444 -1285
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2146 -1968
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +60 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +2669 -2482
- package/dist-lib/swift-compile.cjs +27 -9
- package/dist-lib/swift-compile.mjs +26 -9
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1063 -918
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +18 -18
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +4 -4
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +8 -8
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +9 -9
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +1 -0
- package/src/expo-pod-prebuilt.ts +21 -4
- package/src/expo-swift-host.ts +12 -0
- package/src/host/dev-server-package-versions.ts +5 -1
- package/src/native-swift-slices.ts +130 -0
- package/src/nitro-adapter.lock.json +280 -280
- package/src/nitro-compile.ts +2 -0
- package/src/nitro-source.ts +1 -0
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +47 -19
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +44 -1
- package/src/swift-installed-targets.ts +5 -0
- package/src/swift-standins.ts +29 -11
- package/src/swift-xcframework.ts +4 -0
- package/src/turbo-compile.ts +2 -0
- package/src/turbo-runtime.lock.json +23 -23
- package/src/turbo-source.ts +1 -0
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2066 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1905,7 +1905,7 @@ function readIosSdkTree(root) {
|
|
|
1905
1905
|
|
|
1906
1906
|
// src/swift-standin-digest.ts
|
|
1907
1907
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1908
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1908
|
+
var STANDIN_SOURCE_DIGEST = true ? "31b9ce94fe9f9a6733e36b8ef97b9464a0f7dc44fcb4ee3bcdd143b626a5e1c5" : standinSourceDigest();
|
|
1909
1909
|
|
|
1910
1910
|
// src/expo-native-workspace.ts
|
|
1911
1911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -5403,7 +5403,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
5403
5403
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5404
5404
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5405
5405
|
).join("");
|
|
5406
|
-
var compilerSourceDigest = true ? "
|
|
5406
|
+
var compilerSourceDigest = true ? "e94b86c87d63b484a0d1e9d964eba432b5169d3abe3717f7b360aa31e14b9556" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5407
5407
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5408
5408
|
"CFAllocator",
|
|
5409
5409
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2066 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -1004,54 +1004,54 @@ API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos)
|
|
|
1004
1004
|
|
|
1005
1005
|
/** Layer `contentsGravity' values. **/
|
|
1006
1006
|
|
|
1007
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityCenter
|
|
1007
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityCenter __attribute__((swift_name("CALayerContentsGravity.center")))
|
|
1008
1008
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1009
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTop
|
|
1009
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTop __attribute__((swift_name("CALayerContentsGravity.top")))
|
|
1010
1010
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1011
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottom
|
|
1011
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottom __attribute__((swift_name("CALayerContentsGravity.bottom")))
|
|
1012
1012
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1013
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityLeft
|
|
1013
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityLeft __attribute__((swift_name("CALayerContentsGravity.left")))
|
|
1014
1014
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1015
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityRight
|
|
1015
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityRight __attribute__((swift_name("CALayerContentsGravity.right")))
|
|
1016
1016
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1017
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTopLeft
|
|
1017
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopLeft __attribute__((swift_name("CALayerContentsGravity.topLeft")))
|
|
1018
1018
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1019
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTopRight
|
|
1019
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopRight __attribute__((swift_name("CALayerContentsGravity.topRight")))
|
|
1020
1020
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1021
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottomLeft
|
|
1021
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomLeft __attribute__((swift_name("CALayerContentsGravity.bottomLeft")))
|
|
1022
1022
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1023
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottomRight
|
|
1023
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomRight __attribute__((swift_name("CALayerContentsGravity.bottomRight")))
|
|
1024
1024
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1025
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResize
|
|
1025
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResize __attribute__((swift_name("CALayerContentsGravity.resize")))
|
|
1026
1026
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1027
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspect
|
|
1027
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspect __attribute__((swift_name("CALayerContentsGravity.resizeAspect")))
|
|
1028
1028
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1029
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspectFill
|
|
1029
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspectFill __attribute__((swift_name("CALayerContentsGravity.resizeAspectFill")))
|
|
1030
1030
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1031
1031
|
|
|
1032
1032
|
/** Layer `contentsFormat` values. **/
|
|
1033
1033
|
|
|
1034
|
-
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA8Uint /* RGBA UInt8 per component */
|
|
1034
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA8Uint __attribute__((swift_name("CALayerContentsFormat.RGBA8Uint"))) /* RGBA UInt8 per component */
|
|
1035
1035
|
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1036
|
-
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA16Float /* RGBA half-float 16-bit per component */
|
|
1036
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA16Float __attribute__((swift_name("CALayerContentsFormat.RGBA16Float"))) /* RGBA half-float 16-bit per component */
|
|
1037
1037
|
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1038
|
-
CA_EXTERN CALayerContentsFormat const kCAContentsFormatGray8Uint /* Grayscale with alpha (if not opaque) UInt8 per component */
|
|
1038
|
+
CA_EXTERN CALayerContentsFormat const kCAContentsFormatGray8Uint __attribute__((swift_name("CALayerContentsFormat.gray8Uint"))) /* Grayscale with alpha (if not opaque) UInt8 per component */
|
|
1039
1039
|
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
1040
1040
|
CA_EXTERN CALayerContentsFormat const kCAContentsFormatAutomatic NS_SWIFT_NAME (automatic) /* Automatically choose optimal format for CG drawing commands */
|
|
1041
1041
|
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0)) API_UNAVAILABLE(watchos);
|
|
1042
1042
|
|
|
1043
1043
|
/** Contents filter names. **/
|
|
1044
1044
|
|
|
1045
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterNearest
|
|
1045
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterNearest __attribute__((swift_name("CALayerContentsFilter.nearest")))
|
|
1046
1046
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1047
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterLinear
|
|
1047
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterLinear __attribute__((swift_name("CALayerContentsFilter.linear")))
|
|
1048
1048
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1049
1049
|
|
|
1050
1050
|
/* Trilinear minification filter. Enables mipmap generation. Some
|
|
1051
1051
|
* renderers may ignore this, or impose additional restrictions, such
|
|
1052
1052
|
* as source images requiring power-of-two dimensions. */
|
|
1053
1053
|
|
|
1054
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterTrilinear
|
|
1054
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterTrilinear __attribute__((swift_name("CALayerContentsFilter.trilinear")))
|
|
1055
1055
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1056
1056
|
|
|
1057
1057
|
/** Corner curve names. **/
|
|
@@ -83,13 +83,13 @@ API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
|
83
83
|
|
|
84
84
|
/* `fillMode' options. */
|
|
85
85
|
|
|
86
|
-
CA_EXTERN CAMediaTimingFillMode const kCAFillModeForwards
|
|
86
|
+
CA_EXTERN CAMediaTimingFillMode const kCAFillModeForwards NS_SWIFT_NAME(CAMediaTimingFillMode.forwards)
|
|
87
87
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
88
|
-
CA_EXTERN CAMediaTimingFillMode const kCAFillModeBackwards
|
|
88
|
+
CA_EXTERN CAMediaTimingFillMode const kCAFillModeBackwards NS_SWIFT_NAME(CAMediaTimingFillMode.backwards)
|
|
89
89
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
90
|
-
CA_EXTERN CAMediaTimingFillMode const kCAFillModeBoth
|
|
90
|
+
CA_EXTERN CAMediaTimingFillMode const kCAFillModeBoth NS_SWIFT_NAME(CAMediaTimingFillMode.both)
|
|
91
91
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
92
|
-
CA_EXTERN CAMediaTimingFillMode const kCAFillModeRemoved
|
|
92
|
+
CA_EXTERN CAMediaTimingFillMode const kCAFillModeRemoved NS_SWIFT_NAME(CAMediaTimingFillMode.removed)
|
|
93
93
|
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
94
94
|
|
|
95
95
|
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
@@ -107,27 +107,27 @@ PEACH_SWIFT_CLASS(QuartzCore) @interface CAShapeLayer : CALayer
|
|
|
107
107
|
|
|
108
108
|
/* `fillRule' values. */
|
|
109
109
|
|
|
110
|
-
CA_EXTERN CAShapeLayerFillRule const kCAFillRuleNonZero
|
|
110
|
+
CA_EXTERN CAShapeLayerFillRule const kCAFillRuleNonZero __attribute__((swift_name("CAShapeLayerFillRule.nonZero")))
|
|
111
111
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
112
|
-
CA_EXTERN CAShapeLayerFillRule const kCAFillRuleEvenOdd
|
|
112
|
+
CA_EXTERN CAShapeLayerFillRule const kCAFillRuleEvenOdd __attribute__((swift_name("CAShapeLayerFillRule.evenOdd")))
|
|
113
113
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
114
114
|
|
|
115
115
|
/* `lineJoin' values. */
|
|
116
116
|
|
|
117
|
-
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinMiter
|
|
117
|
+
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinMiter __attribute__((swift_name("CAShapeLayerLineJoin.miter")))
|
|
118
118
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
119
|
-
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinRound
|
|
119
|
+
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinRound __attribute__((swift_name("CAShapeLayerLineJoin.round")))
|
|
120
120
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
121
|
-
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinBevel
|
|
121
|
+
CA_EXTERN CAShapeLayerLineJoin const kCALineJoinBevel __attribute__((swift_name("CAShapeLayerLineJoin.bevel")))
|
|
122
122
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
123
123
|
|
|
124
124
|
/* `lineCap' values. */
|
|
125
125
|
|
|
126
|
-
CA_EXTERN CAShapeLayerLineCap const kCALineCapButt
|
|
126
|
+
CA_EXTERN CAShapeLayerLineCap const kCALineCapButt __attribute__((swift_name("CAShapeLayerLineCap.butt")))
|
|
127
127
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
128
|
-
CA_EXTERN CAShapeLayerLineCap const kCALineCapRound
|
|
128
|
+
CA_EXTERN CAShapeLayerLineCap const kCALineCapRound __attribute__((swift_name("CAShapeLayerLineCap.round")))
|
|
129
129
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
130
|
-
CA_EXTERN CAShapeLayerLineCap const kCALineCapSquare
|
|
130
|
+
CA_EXTERN CAShapeLayerLineCap const kCALineCapSquare __attribute__((swift_name("CAShapeLayerLineCap.square")))
|
|
131
131
|
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
132
132
|
|
|
133
133
|
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
@@ -72,26 +72,26 @@ PEACH_SWIFT_CLASS(QuartzCore) @interface CATextLayer : CALayer
|
|
|
72
72
|
|
|
73
73
|
/* Truncation modes. */
|
|
74
74
|
|
|
75
|
-
CA_EXTERN CATextLayerTruncationMode const kCATruncationNone
|
|
75
|
+
CA_EXTERN CATextLayerTruncationMode const kCATruncationNone __attribute__((swift_name("CATextLayerTruncationMode.none")))
|
|
76
76
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
77
|
-
CA_EXTERN CATextLayerTruncationMode const kCATruncationStart
|
|
77
|
+
CA_EXTERN CATextLayerTruncationMode const kCATruncationStart __attribute__((swift_name("CATextLayerTruncationMode.start")))
|
|
78
78
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
79
|
-
CA_EXTERN CATextLayerTruncationMode const kCATruncationEnd
|
|
79
|
+
CA_EXTERN CATextLayerTruncationMode const kCATruncationEnd __attribute__((swift_name("CATextLayerTruncationMode.end")))
|
|
80
80
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
81
|
-
CA_EXTERN CATextLayerTruncationMode const kCATruncationMiddle
|
|
81
|
+
CA_EXTERN CATextLayerTruncationMode const kCATruncationMiddle __attribute__((swift_name("CATextLayerTruncationMode.middle")))
|
|
82
82
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
83
83
|
|
|
84
84
|
/* Alignment modes. */
|
|
85
85
|
|
|
86
|
-
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentNatural
|
|
86
|
+
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentNatural __attribute__((swift_name("CATextLayerAlignmentMode.natural")))
|
|
87
87
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
88
|
-
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentLeft
|
|
88
|
+
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentLeft __attribute__((swift_name("CATextLayerAlignmentMode.left")))
|
|
89
89
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
90
|
-
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentRight
|
|
90
|
+
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentRight __attribute__((swift_name("CATextLayerAlignmentMode.right")))
|
|
91
91
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
92
|
-
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentCenter
|
|
92
|
+
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentCenter __attribute__((swift_name("CATextLayerAlignmentMode.center")))
|
|
93
93
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
94
|
-
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentJustified
|
|
94
|
+
CA_EXTERN CATextLayerAlignmentMode const kCAAlignmentJustified __attribute__((swift_name("CATextLayerAlignmentMode.justified")))
|
|
95
95
|
API_AVAILABLE(macos(10.5), ios(3.2), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
96
96
|
|
|
97
97
|
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
@@ -4,6 +4,7 @@ framework module QuartzCore [system] {
|
|
|
4
4
|
// rate range without importing all of QuartzCore, whose Swift overlay sits
|
|
5
5
|
// above UIKitCore.
|
|
6
6
|
exclude header "CADisplayLink.h"
|
|
7
|
+
exclude header "CAMediaTiming.h"
|
|
7
8
|
exclude header "CAFrameRateRange.h"
|
|
8
9
|
exclude header "CATransform3D.h"
|
|
9
10
|
exclude header "CABase.h"
|
package/src/expo-pod-prebuilt.ts
CHANGED
|
@@ -83,11 +83,23 @@ function lookup(url: string) {
|
|
|
83
83
|
if (!pending) {
|
|
84
84
|
pending = fetch(url)
|
|
85
85
|
.then(async (response) => {
|
|
86
|
-
if (!response.ok)
|
|
86
|
+
if (!response.ok) {
|
|
87
|
+
console.error(`expo pod miss: ${response.status} ${url}`)
|
|
88
|
+
return null
|
|
89
|
+
}
|
|
87
90
|
const entry: unknown = await response.json()
|
|
88
|
-
|
|
91
|
+
if (!isExpoSwiftCompilationResult(entry)) {
|
|
92
|
+
console.error(`expo pod miss: invalid ${url}`)
|
|
93
|
+
return null
|
|
94
|
+
}
|
|
95
|
+
return entry
|
|
96
|
+
})
|
|
97
|
+
.catch((error: unknown) => {
|
|
98
|
+
console.error(
|
|
99
|
+
`expo pod miss: ${error instanceof Error ? error.message : error} ${url}`,
|
|
100
|
+
)
|
|
101
|
+
return null
|
|
89
102
|
})
|
|
90
|
-
.catch(() => null)
|
|
91
103
|
published.set(url, pending)
|
|
92
104
|
}
|
|
93
105
|
return pending
|
|
@@ -101,8 +113,13 @@ function lookup(url: string) {
|
|
|
101
113
|
export async function prebuiltExpoPods(
|
|
102
114
|
appRoot: string,
|
|
103
115
|
): Promise<ExpoSwiftCompilationResult | null> {
|
|
116
|
+
const pods = await expoPodPackages(fs.realpathSync(appRoot))
|
|
117
|
+
if (pods.length === 0) {
|
|
118
|
+
console.error(`expo pod miss: no packages at ${appRoot}`)
|
|
119
|
+
return null
|
|
120
|
+
}
|
|
104
121
|
const entries = await Promise.all(
|
|
105
|
-
|
|
122
|
+
pods.map(async (pod) =>
|
|
106
123
|
lookup(
|
|
107
124
|
expoPodEntryUrl(
|
|
108
125
|
pod.name,
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -2341,6 +2341,7 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2341
2341
|
const generations = new Map<ExpoSwiftSourceUnit, string>()
|
|
2342
2342
|
const gaps = new Map<ExpoSwiftSourceUnit, string[]>()
|
|
2343
2343
|
const libraries = new Map<ExpoSwiftSourceUnit, Record<string, string>>()
|
|
2344
|
+
const binaryModules = new Map<ExpoSwiftSourceUnit, Record<string, string>>()
|
|
2344
2345
|
const [firstSharedLibrary, ...otherSharedLibraries] = nonmodularFrameworkLibraries(
|
|
2345
2346
|
[...new Set(units.flatMap((unit) => unit.frameworks))],
|
|
2346
2347
|
module.root,
|
|
@@ -2431,6 +2432,9 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2431
2432
|
projectFor(packagePath).oneModule = false
|
|
2432
2433
|
projectFor(packagePath).optimize = true
|
|
2433
2434
|
projectFor(packagePath).staticClangTargets = provider?.staticClangTargets
|
|
2435
|
+
projectFor(packagePath).binaryModules = Object.fromEntries(
|
|
2436
|
+
linked.flatMap((unit) => Object.entries(binaryModules.get(unit) ?? {})),
|
|
2437
|
+
)
|
|
2434
2438
|
projectFor(packagePath).libraries =
|
|
2435
2439
|
linkedLibraries.size > 0 ? Object.fromEntries(linkedLibraries) : undefined
|
|
2436
2440
|
projectFor(packagePath).nativeTargets = inheritExecutableFloor([
|
|
@@ -2525,6 +2529,14 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2525
2529
|
}
|
|
2526
2530
|
const generation = standinGenerationInputs(reached, toolchain)
|
|
2527
2531
|
const built = await swiftStandins(reached, toolchain, provided)
|
|
2532
|
+
binaryModules.set(
|
|
2533
|
+
unit,
|
|
2534
|
+
Object.fromEntries(
|
|
2535
|
+
built.standins.flatMap((standin) =>
|
|
2536
|
+
standin.prebuilt ? [[standin.module, standin.prebuilt.module]] : [],
|
|
2537
|
+
),
|
|
2538
|
+
),
|
|
2539
|
+
)
|
|
2528
2540
|
const linkedLibraries = standinLibraries(
|
|
2529
2541
|
reached,
|
|
2530
2542
|
built.standins,
|
|
@@ -35,5 +35,9 @@ export async function readDevServerExpoPods(
|
|
|
35
35
|
bundleUrl: URL,
|
|
36
36
|
): Promise<ExpoSwiftCompilationResult | null> {
|
|
37
37
|
const projectRoot = await devServerProjectRoot(bundleUrl)
|
|
38
|
-
|
|
38
|
+
if (!projectRoot) {
|
|
39
|
+
console.error(`expo pod miss: no project root for ${bundleUrl.href}`)
|
|
40
|
+
return null
|
|
41
|
+
}
|
|
42
|
+
return prebuiltExpoPods(projectRoot)
|
|
39
43
|
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto'
|
|
2
|
+
import fs from 'node:fs'
|
|
3
|
+
import path from 'node:path'
|
|
4
|
+
import { fetchNativeEntry, nativeEntryKey } from './native-prebuilt'
|
|
5
|
+
import {
|
|
6
|
+
swiftDistributionAt,
|
|
7
|
+
swiftInterfaceDeclarations,
|
|
8
|
+
withoutSwiftDeclarations,
|
|
9
|
+
} from './swift-compile'
|
|
10
|
+
import { simulatorNativeLibrary } from './swift-xcframework'
|
|
11
|
+
import type { SwiftStandin } from './swift-standins'
|
|
12
|
+
|
|
13
|
+
export const SENTRY_SWIFT_SLICE = {
|
|
14
|
+
name: 'Sentry',
|
|
15
|
+
upstream: '05d3ce8332097ff0b2347231ac66476fd7d2f4d8',
|
|
16
|
+
repository: 'https://github.com/getsentry/sentry-cocoa.git',
|
|
17
|
+
checksum: '17b5cdca223d333f21609c59b97afe26b964eddba3b89186033386d7ba22024d',
|
|
18
|
+
nativeSha256: 'c0935ec6243f706cafa25666fe53267ae166e43d49771240d88ae9f5b0886671',
|
|
19
|
+
url: 'https://github.com/getsentry/sentry-cocoa/releases/download/9.8.0/Sentry.xcframework.zip',
|
|
20
|
+
recipe: 'b93503e2cdaacc14076b45e0a1f72baccc1b117f138d4728acf46184e59f30c3',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function nativeSwiftSliceEntry(
|
|
24
|
+
distribution: {
|
|
25
|
+
id: string
|
|
26
|
+
release: string
|
|
27
|
+
wasmSdkId: string
|
|
28
|
+
wasmSdkChecksum: string
|
|
29
|
+
},
|
|
30
|
+
generator: string,
|
|
31
|
+
) {
|
|
32
|
+
const inputs = {
|
|
33
|
+
upstream: SENTRY_SWIFT_SLICE.upstream,
|
|
34
|
+
nativeChecksum: SENTRY_SWIFT_SLICE.checksum,
|
|
35
|
+
nativeSha256: SENTRY_SWIFT_SLICE.nativeSha256,
|
|
36
|
+
recipe: SENTRY_SWIFT_SLICE.recipe,
|
|
37
|
+
generator,
|
|
38
|
+
compiler: distribution.release,
|
|
39
|
+
sdk: distribution.wasmSdkId,
|
|
40
|
+
sdkChecksum: distribution.wasmSdkChecksum,
|
|
41
|
+
distribution: distribution.id,
|
|
42
|
+
target: 'wasm32-wasip1',
|
|
43
|
+
}
|
|
44
|
+
return { name: SENTRY_SWIFT_SLICE.name, inputs, key: nativeEntryKey(inputs) }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function nativeSwiftSlice(
|
|
48
|
+
standin: SwiftStandin,
|
|
49
|
+
moduleRoot: string,
|
|
50
|
+
generator: string,
|
|
51
|
+
configured: boolean,
|
|
52
|
+
artifact: () => string,
|
|
53
|
+
): SwiftStandin {
|
|
54
|
+
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin
|
|
55
|
+
const native = simulatorNativeLibrary(artifact())
|
|
56
|
+
if (
|
|
57
|
+
!native ||
|
|
58
|
+
createHash('sha256').update(fs.readFileSync(native.file)).digest('hex') !==
|
|
59
|
+
SENTRY_SWIFT_SLICE.nativeSha256
|
|
60
|
+
)
|
|
61
|
+
return standin
|
|
62
|
+
if (configured)
|
|
63
|
+
throw new Error(
|
|
64
|
+
`${standin.module}: configured binary behavior cannot replace a compiled native slice`,
|
|
65
|
+
)
|
|
66
|
+
const distribution = swiftDistributionAt(moduleRoot)
|
|
67
|
+
if (!distribution) throw new Error('native Swift slices need a compiled distribution')
|
|
68
|
+
const entry = nativeSwiftSliceEntry(distribution, generator)
|
|
69
|
+
const directory = fetchNativeEntry('slice', entry.name, entry.key)
|
|
70
|
+
if (!directory)
|
|
71
|
+
throw new Error(
|
|
72
|
+
`native Swift slice ${entry.name}/${entry.key} is not built for this compiler and SDK`,
|
|
73
|
+
)
|
|
74
|
+
const header = fs.readFileSync(
|
|
75
|
+
path.join(directory, `${standin.module}-Swift.h`),
|
|
76
|
+
'utf8',
|
|
77
|
+
)
|
|
78
|
+
const declared = swiftInterfaceDeclarations(header)
|
|
79
|
+
const headers = path.join(path.dirname(native.file), 'Headers')
|
|
80
|
+
const originals = fs
|
|
81
|
+
.readdirSync(headers)
|
|
82
|
+
.filter((file) => file.endsWith('.h') && file !== `${standin.module}-Swift.h`)
|
|
83
|
+
const enums = new Map<string, string>()
|
|
84
|
+
for (const file of originals)
|
|
85
|
+
for (const match of fs
|
|
86
|
+
.readFileSync(path.join(headers, file), 'utf8')
|
|
87
|
+
.matchAll(/typedef\s+(?:NS_ENUM|NS_OPTIONS)\s*\(\s*\w+\s*,\s*(\w+)\s*\)\s*\{/g))
|
|
88
|
+
enums.set(match[1]!, file)
|
|
89
|
+
const files: Record<string, string> = {
|
|
90
|
+
[`${standin.module}.c`]: '\n',
|
|
91
|
+
[`include/${standin.module}/${standin.module}-Swift.h`]: withoutSwiftDeclarations(
|
|
92
|
+
header,
|
|
93
|
+
new Set(enums.keys()),
|
|
94
|
+
`#import <${standin.module}/PeachEnums.h>`,
|
|
95
|
+
),
|
|
96
|
+
[`include/${standin.module}/PeachEnums.h`]: [...new Set(enums.values())]
|
|
97
|
+
.map((file) => `#import <${standin.module}/${file}>`)
|
|
98
|
+
.join('\n'),
|
|
99
|
+
'include/module.modulemap': fs
|
|
100
|
+
.readFileSync(
|
|
101
|
+
path.join(path.dirname(native.file), 'Modules/module.modulemap'),
|
|
102
|
+
'utf8',
|
|
103
|
+
)
|
|
104
|
+
.replace(/\bframework module\b/g, 'module')
|
|
105
|
+
.replace(/module\s+\w+\.Swift\s*\{[^}]*\}/g, '')
|
|
106
|
+
.replace(/umbrella header "([^"]+)"/, `umbrella header "${standin.module}/$1"`),
|
|
107
|
+
}
|
|
108
|
+
for (const file of originals)
|
|
109
|
+
files[`include/${standin.module}/${file}`] =
|
|
110
|
+
'#import <UIKit/UIKit.h>\n' +
|
|
111
|
+
withoutSwiftDeclarations(
|
|
112
|
+
fs.readFileSync(path.join(headers, file), 'utf8'),
|
|
113
|
+
declared,
|
|
114
|
+
`#import <${standin.module}/${standin.module}-Swift.h>`,
|
|
115
|
+
)
|
|
116
|
+
return {
|
|
117
|
+
module: standin.module,
|
|
118
|
+
target: standin.target,
|
|
119
|
+
publicHeadersPath: 'include',
|
|
120
|
+
files,
|
|
121
|
+
prebuilt: {
|
|
122
|
+
module: fs
|
|
123
|
+
.readFileSync(path.join(directory, `${standin.module}.swiftmodule`))
|
|
124
|
+
.toString('base64'),
|
|
125
|
+
library: fs
|
|
126
|
+
.readFileSync(path.join(directory, `lib${standin.module}.a`))
|
|
127
|
+
.toString('base64'),
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
}
|