peachsim 0.1.2399 → 0.1.2401
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/README.md +2 -2
- package/cli/bin.ts +1 -1
- package/cli/catalog/content.ts +520 -0
- package/cli/catalog/index.ts +4 -0
- package/cli/catalog/meta.ts +3881 -0
- package/cli/catalog/renderers.ts +659 -0
- package/cli/catalog/routes.ts +237 -0
- package/cli/catalog/types.ts +96 -0
- package/cli/commands/inspect.ts +3 -3
- package/cli/commands/record.ts +1 -1
- package/cli/dev-build-freshness.ts +1 -0
- package/cli/help-core.ts +6 -6
- package/cli/hidden-runtime-alias.ts +1 -1
- package/cli/outbound-endpoints.ts +5 -0
- package/cli/parse-args.ts +1 -1
- 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 +53 -46
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +51 -44
- 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 +53 -46
- package/dist-lib/host/fetch-proxy-handler.cjs +44 -41
- 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 +48 -45
- 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 +53 -50
- package/dist-lib/native-app-identity-project.cjs +22 -19
- package/dist-lib/native-app-identity-project.mjs +4 -3
- 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 +59 -59
- 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 +68 -61
- package/dist-lib/swift-compile.cjs +28 -30
- package/dist-lib/swift-compile.mjs +24 -26
- 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 +29 -31
- package/dist-lib/vite.cjs +39 -36
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/capture/browserAccessibilityContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +2 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +2 -2
- package/package.json +1 -3
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GKState.h +78 -0
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GKStateMachine.h +69 -0
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKit.apinotes +269 -0
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKit.h +15 -0
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Headers/GameplayKitBase.h +38 -0
- package/sdk/ios/System/Library/Frameworks/GameplayKit.framework/Modules/module.modulemap +6 -0
- package/src/expo-swift-host.ts +30 -22
- package/src/wasm-optimize.ts +23 -24
- package/src/worklets-babel.ts +2 -6
- package/cli/registry.ts +0 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
---
|
|
2
|
+
Name: GameplayKit
|
|
3
|
+
Classes:
|
|
4
|
+
- Name: GKComponent
|
|
5
|
+
Methods:
|
|
6
|
+
- Selector: 'updateWithDeltaTime:'
|
|
7
|
+
SwiftName: update(deltaTime:)
|
|
8
|
+
MethodKind: Instance
|
|
9
|
+
- Name: GKComponentSystem
|
|
10
|
+
Methods:
|
|
11
|
+
- Selector: 'addComponentWithEntity:'
|
|
12
|
+
SwiftName: addComponent(foundIn:)
|
|
13
|
+
MethodKind: Instance
|
|
14
|
+
- Selector: 'removeComponentWithEntity:'
|
|
15
|
+
SwiftName: removeComponent(foundIn:)
|
|
16
|
+
MethodKind: Instance
|
|
17
|
+
- Selector: 'updateWithDeltaTime:'
|
|
18
|
+
SwiftName: update(deltaTime:)
|
|
19
|
+
MethodKind: Instance
|
|
20
|
+
- Name: GKCompositeBehavior
|
|
21
|
+
Methods:
|
|
22
|
+
- Selector: 'behaviorWithBehaviors:andWeights:'
|
|
23
|
+
SwiftName: init(behaviors:weights:)
|
|
24
|
+
MethodKind: Instance
|
|
25
|
+
- Name: GKDecisionNode
|
|
26
|
+
Methods:
|
|
27
|
+
- Selector: 'createBranchWithValue:attribute:'
|
|
28
|
+
SwiftName: createBranch(value:attribute:)
|
|
29
|
+
MethodKind: Instance
|
|
30
|
+
- Selector: 'createBranchWithPredicate:attribute:'
|
|
31
|
+
SwiftName: createBranch(predicate:attribute:)
|
|
32
|
+
MethodKind: Instance
|
|
33
|
+
- Selector: 'createBranchWithWeight:attribute:'
|
|
34
|
+
SwiftName: createBranch(weight:attribute:)
|
|
35
|
+
MethodKind: Instance
|
|
36
|
+
- Name: GKEntity
|
|
37
|
+
Methods:
|
|
38
|
+
- Selector: 'updateWithDeltaTime:'
|
|
39
|
+
SwiftName: update(deltaTime:)
|
|
40
|
+
MethodKind: Instance
|
|
41
|
+
- Name: GKGameModel
|
|
42
|
+
Methods:
|
|
43
|
+
- Selector: 'unapplyGameModelUpdate:'
|
|
44
|
+
SwiftName: unapply(_:)
|
|
45
|
+
MethodKind: Instance
|
|
46
|
+
- Name: GKGoal
|
|
47
|
+
Methods:
|
|
48
|
+
- Selector: 'goalToSeekAgent:'
|
|
49
|
+
SwiftName: init(toSeek:)
|
|
50
|
+
MethodKind: Instance
|
|
51
|
+
- Selector: 'goalToFleeAgent:'
|
|
52
|
+
SwiftName: init(toFlee:)
|
|
53
|
+
MethodKind: Instance
|
|
54
|
+
- Selector: 'goalToInterceptAgent:maxPredictionTime:'
|
|
55
|
+
SwiftName: init(toIntercept:maxPredictionTime:)
|
|
56
|
+
MethodKind: Instance
|
|
57
|
+
- Name: GKGraph
|
|
58
|
+
Methods:
|
|
59
|
+
- Selector: 'initWithNodes:'
|
|
60
|
+
SwiftName: init(_:)
|
|
61
|
+
MethodKind: Instance
|
|
62
|
+
- Selector: 'connectNodeToLowestCostNode:bidirectional:'
|
|
63
|
+
SwiftName: connectToLowestCostNode(node:bidirectional:)
|
|
64
|
+
MethodKind: Instance
|
|
65
|
+
- Selector: 'removeNodes:'
|
|
66
|
+
SwiftName: remove(_:)
|
|
67
|
+
MethodKind: Instance
|
|
68
|
+
- Selector: 'addNodes:'
|
|
69
|
+
SwiftName: add(_:)
|
|
70
|
+
MethodKind: Instance
|
|
71
|
+
- Name: GKGridGraph
|
|
72
|
+
Methods:
|
|
73
|
+
- Selector: 'nodeAtGridPosition:'
|
|
74
|
+
SwiftName: node(atGridPosition:)
|
|
75
|
+
MethodKind: Instance
|
|
76
|
+
- Selector: 'connectNodeToAdjacentNodes:'
|
|
77
|
+
SwiftName: connectToAdjacentNodes(node:)
|
|
78
|
+
MethodKind: Instance
|
|
79
|
+
- Selector: 'initWithNodes:'
|
|
80
|
+
SwiftName: init(_:)
|
|
81
|
+
MethodKind: Instance
|
|
82
|
+
- Name: GKMeshGraph
|
|
83
|
+
Methods:
|
|
84
|
+
- Selector: 'connectNodeUsingObstacles:'
|
|
85
|
+
SwiftName: connectUsingObstacles(node:)
|
|
86
|
+
MethodKind: Instance
|
|
87
|
+
- Selector: 'initWithNodes:'
|
|
88
|
+
SwiftName: init(_:)
|
|
89
|
+
MethodKind: Instance
|
|
90
|
+
- Name: GKNoise
|
|
91
|
+
Methods:
|
|
92
|
+
- Selector: 'initWithNoiseSource:'
|
|
93
|
+
SwiftName: init(_:)
|
|
94
|
+
MethodKind: Instance
|
|
95
|
+
- Selector: 'initWithNoiseSource:gradientColors:'
|
|
96
|
+
SwiftName: init(_:gradientColors:)
|
|
97
|
+
MethodKind: Instance
|
|
98
|
+
- Selector: 'clampWithLowerBound:upperBound:'
|
|
99
|
+
SwiftName: clamp(lowerBound:upperBound:)
|
|
100
|
+
MethodKind: Instance
|
|
101
|
+
- Selector: 'raiseToPower:'
|
|
102
|
+
SwiftName: raiseToPower(_:)
|
|
103
|
+
MethodKind: Instance
|
|
104
|
+
- Selector: 'applyTurbulenceWithFrequency:power:roughness:seed:'
|
|
105
|
+
SwiftName: applyTurbulence(frequency:power:roughness:seed:)
|
|
106
|
+
MethodKind: Instance
|
|
107
|
+
- Selector: 'remapValuesToCurveWithControlPoints:'
|
|
108
|
+
SwiftName: remapValues(toCurveWithControlPoints:)
|
|
109
|
+
MethodKind: Instance
|
|
110
|
+
- Selector: 'remapValuesToTerracesWithPeaks:terracesInverted:'
|
|
111
|
+
SwiftName: remapValues(toTerracesWithPeaks:terracesInverted:)
|
|
112
|
+
MethodKind: Instance
|
|
113
|
+
- Selector: 'addWithNoise:'
|
|
114
|
+
SwiftName: add(_:)
|
|
115
|
+
MethodKind: Instance
|
|
116
|
+
- Selector: 'multiplyWithNoise:'
|
|
117
|
+
SwiftName: multiply(_:)
|
|
118
|
+
MethodKind: Instance
|
|
119
|
+
- Selector: 'minimumWithNoise:'
|
|
120
|
+
SwiftName: minimum(_:)
|
|
121
|
+
MethodKind: Instance
|
|
122
|
+
- Selector: 'maximumWithNoise:'
|
|
123
|
+
SwiftName: maximum(_:)
|
|
124
|
+
MethodKind: Instance
|
|
125
|
+
- Selector: 'raiseToPowerWithNoise:'
|
|
126
|
+
SwiftName: raiseToPower(_:)
|
|
127
|
+
MethodKind: Instance
|
|
128
|
+
- Selector: 'displaceXWithNoise:yWithNoise:zWithNoise:'
|
|
129
|
+
SwiftName: displaceWithNoises(x:y:z:)
|
|
130
|
+
MethodKind: Instance
|
|
131
|
+
- Name: GKNoiseMap
|
|
132
|
+
Methods:
|
|
133
|
+
- Selector: 'initWithNoise:'
|
|
134
|
+
SwiftName: init(_:)
|
|
135
|
+
MethodKind: Instance
|
|
136
|
+
- Selector: 'initWithNoise:size:origin:sampleCount:seamless:'
|
|
137
|
+
SwiftName: init(_:size:origin:sampleCount:seamless:)
|
|
138
|
+
MethodKind: Instance
|
|
139
|
+
- Selector: 'valueAtPosition:'
|
|
140
|
+
SwiftName: value(at:)
|
|
141
|
+
MethodKind: Instance
|
|
142
|
+
- Selector: 'interpolatedValueAtPosition:'
|
|
143
|
+
SwiftName: interpolatedValue(at:)
|
|
144
|
+
MethodKind: Instance
|
|
145
|
+
- Selector: 'setValue:atPosition:'
|
|
146
|
+
SwiftName: setValue(_:at:)
|
|
147
|
+
MethodKind: Instance
|
|
148
|
+
- Name: GKObstacleGraph
|
|
149
|
+
Methods:
|
|
150
|
+
- Selector: 'connectNodeUsingObstacles:'
|
|
151
|
+
SwiftName: connectUsingObstacles(node:)
|
|
152
|
+
MethodKind: Instance
|
|
153
|
+
- Selector: 'connectNodeUsingObstacles:ignoringObstacles:'
|
|
154
|
+
SwiftName: connectUsingObstacles(node:ignoring:)
|
|
155
|
+
MethodKind: Instance
|
|
156
|
+
- Selector: 'connectNodeUsingObstacles:ignoringBufferRadiusOfObstacles:'
|
|
157
|
+
SwiftName: connectUsingObstacles(node:ignoringBufferRadiusOf:)
|
|
158
|
+
MethodKind: Instance
|
|
159
|
+
- Selector: 'initWithNodes:'
|
|
160
|
+
SwiftName: init(_:)
|
|
161
|
+
MethodKind: Instance
|
|
162
|
+
- Name: GKOctree
|
|
163
|
+
Methods:
|
|
164
|
+
- Selector: 'addElement:withPoint:'
|
|
165
|
+
SwiftName: add(_:at:)
|
|
166
|
+
MethodKind: Instance
|
|
167
|
+
- Selector: 'addElement:withBox:'
|
|
168
|
+
SwiftName: add(_:in:)
|
|
169
|
+
MethodKind: Instance
|
|
170
|
+
- Selector: 'elementsAtPoint:'
|
|
171
|
+
SwiftName: elements(at:)
|
|
172
|
+
MethodKind: Instance
|
|
173
|
+
- Selector: 'removeElement:'
|
|
174
|
+
SwiftName: remove(_:)
|
|
175
|
+
MethodKind: Instance
|
|
176
|
+
- Selector: 'removeElement:withNode:'
|
|
177
|
+
SwiftName: remove(_:using:)
|
|
178
|
+
MethodKind: Instance
|
|
179
|
+
- Name: GKQuadtree
|
|
180
|
+
Methods:
|
|
181
|
+
- Selector: 'addElement:withPoint:'
|
|
182
|
+
SwiftName: add(_:at:)
|
|
183
|
+
MethodKind: Instance
|
|
184
|
+
- Selector: 'addElement:withQuad:'
|
|
185
|
+
SwiftName: add(_:in:)
|
|
186
|
+
MethodKind: Instance
|
|
187
|
+
- Selector: 'elementsAtPoint:'
|
|
188
|
+
SwiftName: elements(at:)
|
|
189
|
+
MethodKind: Instance
|
|
190
|
+
- Selector: 'removeElement:'
|
|
191
|
+
SwiftName: remove(_:)
|
|
192
|
+
MethodKind: Instance
|
|
193
|
+
- Selector: 'removeElement:withNode:'
|
|
194
|
+
SwiftName: remove(_:using:)
|
|
195
|
+
MethodKind: Instance
|
|
196
|
+
- Name: GKRtree
|
|
197
|
+
Methods:
|
|
198
|
+
- Selector: 'addElement:boundingRectMin:boundingRectMax:splitStrategy:'
|
|
199
|
+
SwiftName: add(_:boundingRectMin:boundingRectMax:splitStrategy:)
|
|
200
|
+
MethodKind: Instance
|
|
201
|
+
- Selector: 'removeElement:boundingRectMin:boundingRectMax:'
|
|
202
|
+
SwiftName: remove(_:boundingRectMin:boundingRectMax:)
|
|
203
|
+
MethodKind: Instance
|
|
204
|
+
- Name: NSArray
|
|
205
|
+
Methods:
|
|
206
|
+
- Selector: 'shuffledArrayWithRandomSource:'
|
|
207
|
+
SwiftName: shuffled(using:)
|
|
208
|
+
MethodKind: Instance
|
|
209
|
+
- Name: GKARC4RandomSource
|
|
210
|
+
Methods:
|
|
211
|
+
- Selector: 'dropValuesWithCount:'
|
|
212
|
+
SwiftName: dropValues(_:)
|
|
213
|
+
MethodKind: Instance
|
|
214
|
+
- Name: GKRuleSystem
|
|
215
|
+
Methods:
|
|
216
|
+
- Selector: 'addRule:'
|
|
217
|
+
SwiftName: add(_:)
|
|
218
|
+
MethodKind: Instance
|
|
219
|
+
- Selector: 'addRulesFromArray:'
|
|
220
|
+
SwiftName: add(_:)
|
|
221
|
+
MethodKind: Instance
|
|
222
|
+
- Name: GKRule
|
|
223
|
+
Methods:
|
|
224
|
+
- Selector: 'evaluatePredicateWithSystem:'
|
|
225
|
+
SwiftName: evaluatePredicate(in:)
|
|
226
|
+
MethodKind: Instance
|
|
227
|
+
- Selector: 'performActionWithSystem:'
|
|
228
|
+
SwiftName: performAction(in:)
|
|
229
|
+
MethodKind: Instance
|
|
230
|
+
- Selector: 'ruleWithBlockPredicate:action:'
|
|
231
|
+
SwiftName: init(evaluator:action:)
|
|
232
|
+
MethodKind: Instance
|
|
233
|
+
- Name: GKState
|
|
234
|
+
Methods:
|
|
235
|
+
- Selector: 'didEnterWithPreviousState:'
|
|
236
|
+
SwiftName: didEnter(from:)
|
|
237
|
+
MethodKind: Instance
|
|
238
|
+
- Selector: 'updateWithDeltaTime:'
|
|
239
|
+
SwiftName: update(deltaTime:)
|
|
240
|
+
MethodKind: Instance
|
|
241
|
+
- Selector: 'willExitWithNextState:'
|
|
242
|
+
SwiftName: willExit(to:)
|
|
243
|
+
MethodKind: Instance
|
|
244
|
+
- Name: GKStateMachine
|
|
245
|
+
Methods:
|
|
246
|
+
- Selector: 'updateWithDeltaTime:'
|
|
247
|
+
SwiftName: update(deltaTime:)
|
|
248
|
+
MethodKind: Instance
|
|
249
|
+
- Selector: 'canEnterState:'
|
|
250
|
+
SwiftName: canEnter(:_)
|
|
251
|
+
MethodKind: Instance
|
|
252
|
+
- Selector: 'enterState:'
|
|
253
|
+
SwiftName: enter(_:)
|
|
254
|
+
MethodKind: Instance
|
|
255
|
+
- Selector: 'stateForClass:'
|
|
256
|
+
MethodKind: Instance
|
|
257
|
+
SwiftPrivate: true
|
|
258
|
+
- Name: SKTileMapNode
|
|
259
|
+
Methods:
|
|
260
|
+
- Selector: 'tileMapNodesWithTileSet:columns:rows:tileSize:fromNoiseMap:tileTypeNoiseMapThresholds:'
|
|
261
|
+
SwiftName: tileMapNodes(tileSet:columns:rows:tileSize:from:tileTypeNoiseMapThresholds:)
|
|
262
|
+
MethodKind: Class
|
|
263
|
+
|
|
264
|
+
Protocols:
|
|
265
|
+
- Name: GKRandom
|
|
266
|
+
Methods:
|
|
267
|
+
- Selector: 'nextIntWithUpperBound:'
|
|
268
|
+
SwiftName: nextInt(upperBound:)
|
|
269
|
+
MethodKind: Instance
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GameplayKit.h
|
|
3
|
+
// GameplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// the swift module declares every other gameplaykit class; these headers are
|
|
11
|
+
// the state machine classes it implements as objective-c classes.
|
|
12
|
+
#import <GameplayKit/GameplayKitBase.h>
|
|
13
|
+
|
|
14
|
+
#import <GameplayKit/GKState.h>
|
|
15
|
+
#import <GameplayKit/GKStateMachine.h>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GameplayKitBase.h
|
|
3
|
+
// GameplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <simd/simd.h>
|
|
10
|
+
#import <Availability.h>
|
|
11
|
+
#import <TargetConditionals.h>
|
|
12
|
+
|
|
13
|
+
//Exporting
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
#define GK_EXPORT extern "C" __attribute__((visibility ("default")))
|
|
16
|
+
#else
|
|
17
|
+
#define GK_EXPORT extern __attribute__((visibility ("default")))
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
//Visibility
|
|
21
|
+
#define GK_DEFAULT __attribute__((visibility ("default")))
|
|
22
|
+
|
|
23
|
+
//Availability
|
|
24
|
+
#define GK_BASE_AVAILABILITY NS_CLASS_AVAILABLE(10_11, 9_0)
|
|
25
|
+
#define GK_BASE_AVAILABILITY_2 NS_CLASS_AVAILABLE(10_12, 10_0)
|
|
26
|
+
#define GK_BASE_AVAILABILITY_3 NS_CLASS_AVAILABLE(10_13, 11_0)
|
|
27
|
+
|
|
28
|
+
#define GK_AVAILABLE __OSX_AVAILABLE_STARTING
|
|
29
|
+
|
|
30
|
+
//Inlining
|
|
31
|
+
#define GK_FORCE_INLINE __inline__ __attribute__((always_inline))
|
|
32
|
+
|
|
33
|
+
//Branch prediction
|
|
34
|
+
#define GK_LIKELY(x) __builtin_expect(!!(x), 1)
|
|
35
|
+
#define GK_UNLIKELY(x) __builtin_expect(!!(x), 0)
|
|
36
|
+
|
|
37
|
+
// Attribute annotation to parse properties from GKComponent derived component classes
|
|
38
|
+
#define GKInspectable __attribute__((annotate("gk_inspectable")))
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -498,14 +498,7 @@ function cloneNativeTarget(target: SwiftNativeTarget): SwiftNativeTarget {
|
|
|
498
498
|
// a podspec without a platform declaration is available everywhere; otherwise
|
|
499
499
|
// only the platforms it names are, through platforms, platform or a
|
|
500
500
|
// per-platform deployment target. ruby beyond those literals is not evaluated.
|
|
501
|
-
function podSupportsIOS(
|
|
502
|
-
if (
|
|
503
|
-
!isRecord(pod) ||
|
|
504
|
-
typeof pod.podName !== 'string' ||
|
|
505
|
-
typeof pod.podspecDir !== 'string'
|
|
506
|
-
)
|
|
507
|
-
throw new Error('invalid Expo autolinking pod')
|
|
508
|
-
const base = path.join(pod.podspecDir, pod.podName)
|
|
501
|
+
function podSupportsIOS(base: string): boolean {
|
|
509
502
|
if (fs.existsSync(`${base}.podspec.json`)) {
|
|
510
503
|
const platforms: unknown = JSON.parse(
|
|
511
504
|
fs.readFileSync(`${base}.podspec.json`, 'utf8'),
|
|
@@ -1492,13 +1485,27 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1492
1485
|
resolution && typeof resolution === 'object'
|
|
1493
1486
|
? Reflect.get(resolution, 'modules')
|
|
1494
1487
|
: null
|
|
1495
|
-
const
|
|
1488
|
+
const resolvedPods =
|
|
1496
1489
|
resolution && typeof resolution === 'object'
|
|
1497
1490
|
? Reflect.get(resolution, 'pods')
|
|
1498
1491
|
: null
|
|
1492
|
+
const pods = Array.isArray(resolvedPods)
|
|
1493
|
+
? resolvedPods.map((pod: unknown) => {
|
|
1494
|
+
if (
|
|
1495
|
+
!isRecord(pod) ||
|
|
1496
|
+
typeof pod.podName !== 'string' ||
|
|
1497
|
+
typeof pod.podspecDir !== 'string'
|
|
1498
|
+
)
|
|
1499
|
+
throw new Error('invalid Expo autolinking pod')
|
|
1500
|
+
return {
|
|
1501
|
+
base: path.join(pod.podspecDir, pod.podName),
|
|
1502
|
+
namespace: pod.podName.replace(/[^a-zA-Z0-9]/g, '_'),
|
|
1503
|
+
}
|
|
1504
|
+
})
|
|
1505
|
+
: []
|
|
1499
1506
|
// expo links a package into an iOS target only when one of its pods
|
|
1500
1507
|
// supports iOS (autolinking_manager.rb packages_to_generate).
|
|
1501
|
-
if (
|
|
1508
|
+
if (pods.length > 0 && !pods.some((pod) => podSupportsIOS(pod.base))) {
|
|
1502
1509
|
report(`${packageName} was not linked: no pod supports iOS`)
|
|
1503
1510
|
continue
|
|
1504
1511
|
}
|
|
@@ -1510,8 +1517,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1510
1517
|
const subscriberNames = delegateNames('appDelegateSubscribers')
|
|
1511
1518
|
const handlerNames = delegateNames('reactDelegateHandlers')
|
|
1512
1519
|
// a package with pods is rediscovered in the prepared workspace, which has no caps.
|
|
1513
|
-
const deferredToWorkspace =
|
|
1514
|
-
prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0
|
|
1520
|
+
const deferredToWorkspace = prepareNative && !installedWorkspace && pods.length > 0
|
|
1515
1521
|
const dependencyOnly =
|
|
1516
1522
|
answered ||
|
|
1517
1523
|
((!Array.isArray(modules) || modules.length === 0) &&
|
|
@@ -1783,12 +1789,13 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1783
1789
|
}
|
|
1784
1790
|
// a module compiled from its own source declares its iOS floor in its
|
|
1785
1791
|
// podspec; CocoaPods builds the pod at that floor.
|
|
1786
|
-
const
|
|
1787
|
-
?
|
|
1788
|
-
|
|
1789
|
-
const podspecText =
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
+
const pod =
|
|
1793
|
+
pods.length === 1 ? pods[0] : pods.find((pod) => pod.namespace === namespace)
|
|
1794
|
+
const podspec = pod ? `${pod.base}.podspec` : null
|
|
1795
|
+
const podspecText =
|
|
1796
|
+
podspec && fs.existsSync(podspec)
|
|
1797
|
+
? fs.readFileSync(resolveSource(podspec), 'utf8')
|
|
1798
|
+
: null
|
|
1792
1799
|
const usesReact = Boolean(
|
|
1793
1800
|
!installed &&
|
|
1794
1801
|
podspecText &&
|
|
@@ -1797,7 +1804,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1797
1804
|
),
|
|
1798
1805
|
)
|
|
1799
1806
|
const absentFrameworks: string[] = []
|
|
1800
|
-
if (podspecText && !installed) {
|
|
1807
|
+
if (podspec && podspecText && !installed) {
|
|
1801
1808
|
// the declared paths are read as written; podspec Ruby beyond literal
|
|
1802
1809
|
// strings is not evaluated, as with the floor below.
|
|
1803
1810
|
const declared = [
|
|
@@ -1810,7 +1817,8 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1810
1817
|
),
|
|
1811
1818
|
)
|
|
1812
1819
|
for (const entry of declared) {
|
|
1813
|
-
const
|
|
1820
|
+
const declaredPath = path.resolve(path.dirname(podspec), entry)
|
|
1821
|
+
const base = path.dirname(declaredPath)
|
|
1814
1822
|
const name = new RegExp(
|
|
1815
1823
|
`^${path
|
|
1816
1824
|
.basename(entry)
|
|
@@ -1821,7 +1829,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1821
1829
|
? fs.readdirSync(base).filter((child) => name.test(child))
|
|
1822
1830
|
: []
|
|
1823
1831
|
if (found.length === 0)
|
|
1824
|
-
absentFrameworks.push(path.relative(appRoot,
|
|
1832
|
+
absentFrameworks.push(path.relative(appRoot, declaredPath))
|
|
1825
1833
|
for (const child of found) frameworks.add(resolveSource(path.join(base, child)))
|
|
1826
1834
|
}
|
|
1827
1835
|
}
|
|
@@ -1882,7 +1890,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1882
1890
|
module.registration !== null &&
|
|
1883
1891
|
configuredExpoSwiftModule(closure, module.name, module.nativeName, appConfig)
|
|
1884
1892
|
if (configured && !module.subscriber && !module.handler) continue
|
|
1885
|
-
if (
|
|
1893
|
+
if (pods.length > 0) needsNativeWorkspace = true
|
|
1886
1894
|
const unit: ExpoSwiftSourceUnit = {
|
|
1887
1895
|
namespace,
|
|
1888
1896
|
moduleId: `${namespace}.${module.name}`,
|
package/src/wasm-optimize.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
|
|
3
3
|
import { dirname, join } from 'node:path'
|
|
4
4
|
import { promisify } from 'node:util'
|
|
5
5
|
import { installVerifiedTarball } from '@contrast/runtime-delivery'
|
|
6
|
-
import { BINARYEN_VERSION, wasmOpt } from 'wasm-opt'
|
|
7
6
|
import { windowAdmission } from './admitted-mac-build'
|
|
8
7
|
import { rnxHomeDir } from './home-paths'
|
|
9
8
|
import {
|
|
@@ -36,13 +35,13 @@ const FEATURES = [
|
|
|
36
35
|
export const KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === '1'
|
|
37
36
|
|
|
38
37
|
const LOWERING = ['--memory64-lowering', '--table64-lowering']
|
|
38
|
+
const BINARYEN_VERSION = '132'
|
|
39
|
+
const runBinaryen = promisify(execFile)
|
|
39
40
|
|
|
40
41
|
/** feeds the artifact hash: a new optimizer or flag set is a new artifact. */
|
|
41
42
|
export const WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(' ')} ${FEATURES.join(',')} unoptimized-names`
|
|
42
43
|
|
|
43
|
-
// the sha256 of each Binaryen release archive
|
|
44
|
-
// keys; update both when the wasm-opt package moves BINARYEN_VERSION.
|
|
45
|
-
const PINNED_BINARYEN_VERSION = '132'
|
|
44
|
+
// the sha256 of each supported Binaryen release archive
|
|
46
45
|
const BINARYEN_RELEASES = new Map([
|
|
47
46
|
[
|
|
48
47
|
'linux-x64',
|
|
@@ -79,7 +78,7 @@ async function runWasmOpt(
|
|
|
79
78
|
): Promise<void> {
|
|
80
79
|
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES)
|
|
81
80
|
const requestedCores = Number(process.env.BINARYEN_CORES)
|
|
82
|
-
const environment: NodeJS.ProcessEnv = { ...process.env
|
|
81
|
+
const environment: NodeJS.ProcessEnv = { ...process.env }
|
|
83
82
|
if (Number.isInteger(admittedCores) && admittedCores > 0)
|
|
84
83
|
environment.BINARYEN_CORES = String(
|
|
85
84
|
Number.isInteger(requestedCores) && requestedCores > 0
|
|
@@ -96,7 +95,7 @@ async function runWasmOpt(
|
|
|
96
95
|
const thunks = `${output}.thunks.wat`
|
|
97
96
|
writeFileSync(guest, narrowed.module)
|
|
98
97
|
writeFileSync(thunks, narrowed.thunks)
|
|
99
|
-
await
|
|
98
|
+
await runBinaryen(
|
|
100
99
|
join(dirname(binary), 'wasm-merge'),
|
|
101
100
|
[
|
|
102
101
|
...features,
|
|
@@ -114,28 +113,28 @@ async function runWasmOpt(
|
|
|
114
113
|
rmSync(guest)
|
|
115
114
|
rmSync(thunks)
|
|
116
115
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
try {
|
|
117
|
+
await runBinaryen(
|
|
118
|
+
binary,
|
|
119
|
+
[
|
|
120
|
+
...LOWERING,
|
|
121
|
+
...(optimize ? ['-Oz'] : []),
|
|
122
|
+
...names,
|
|
123
|
+
...skipPasses.flatMap((pass) => ['--skip-pass', pass]),
|
|
124
|
+
...features,
|
|
125
|
+
narrowed ? merged : file,
|
|
126
|
+
'-o',
|
|
127
|
+
output,
|
|
128
|
+
],
|
|
129
|
+
{ env: environment, maxBuffer: Infinity },
|
|
130
|
+
)
|
|
131
|
+
} finally {
|
|
132
|
+
if (narrowed) rmSync(merged)
|
|
133
|
+
}
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
// use the same verified binary on every host so the artifact identity is true.
|
|
136
137
|
async function installWasmOpt(): Promise<string> {
|
|
137
|
-
if (BINARYEN_VERSION !== PINNED_BINARYEN_VERSION)
|
|
138
|
-
throw new Error('the Binaryen release pins must match the wasm-opt package')
|
|
139
138
|
const platform = `${process.platform}-${process.arch}`
|
|
140
139
|
const release = BINARYEN_RELEASES.get(platform)
|
|
141
140
|
if (!release) throw new Error(`no pinned Binaryen release for ${platform}`)
|
package/src/worklets-babel.ts
CHANGED
|
@@ -50,7 +50,6 @@ export const REANIMATED_WORKLETIZATION_REGEX = new RegExp(
|
|
|
50
50
|
const REANIMATED_IGNORED_PATHS_REGEX =
|
|
51
51
|
/node_modules\/(react|react-dom|react-native|react-native-web)\//
|
|
52
52
|
const SOOTSIM_ENGINE_SRC_PATH = '/packages/peach-engine/src/'
|
|
53
|
-
const SOOTSIM_ENGINE_TEST_FIXTURE_PATH = '/packages/peach-engine/src/test-fixtures/'
|
|
54
53
|
const REANIMATED_IMPORT_REGEX =
|
|
55
54
|
/(?:from\s+['"]react-native-reanimated(?:\/[^'"]*)?['"]|require\(\s*['"]react-native-reanimated(?:\/[^'"]*)?['"]\s*\))/
|
|
56
55
|
|
|
@@ -61,6 +60,7 @@ const REANIMATED_IMPORT_REGEX =
|
|
|
61
60
|
const ENGINE_STAND_IN_PATHS = [
|
|
62
61
|
'/packages/peach-engine/src/',
|
|
63
62
|
'/packages/peach-compat/src/',
|
|
63
|
+
'/conformance-corpus/peach-engine/fixtures/',
|
|
64
64
|
]
|
|
65
65
|
|
|
66
66
|
const workletsPlugins = new Map<string, { path: string; identity: string }>()
|
|
@@ -78,11 +78,7 @@ export function shouldApplyWorkletsPlugin(id: string, code: string): boolean {
|
|
|
78
78
|
// hooks. without an upstream import, require an authored worklet directive
|
|
79
79
|
// before letting the plugin rewrite callbacks. keyboard hooks and shared
|
|
80
80
|
// worklet helpers need no direct reanimated import.
|
|
81
|
-
if (
|
|
82
|
-
id.includes(SOOTSIM_ENGINE_SRC_PATH) &&
|
|
83
|
-
!id.includes(SOOTSIM_ENGINE_TEST_FIXTURE_PATH) &&
|
|
84
|
-
!REANIMATED_IMPORT_REGEX.test(code)
|
|
85
|
-
) {
|
|
81
|
+
if (id.includes(SOOTSIM_ENGINE_SRC_PATH) && !REANIMATED_IMPORT_REGEX.test(code)) {
|
|
86
82
|
if (!/['"]worklet['"]/.test(code)) return false
|
|
87
83
|
const syntax = parseSync(id, code, {
|
|
88
84
|
lang: isTypescriptFile(id) ? 'tsx' : 'jsx',
|
package/cli/registry.ts
DELETED