peachsim 0.1.2296 → 0.1.2298
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 +1153 -1070
- 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 +47 -24
- 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 +121 -38
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -6
- 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 +2391 -4521
- 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 +14 -2
- 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 +4536 -6667
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -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 +81 -85
- 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 +122 -39
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +5 -4
- package/dist-lib/vite.cjs +8 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +10 -8
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +5 -0
- package/kotlin/README.md +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +5 -1
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAction.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXBase.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCall.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallAction.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallController.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectory.h +16 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryExtensionContext.h +86 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryManager.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryProvider.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallObserver.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h +43 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXError.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXHandle.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXPlayDTMFCallAction.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h +127 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h +42 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetGroupCallAction.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetHeldCallAction.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetMutedCallAction.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXStartCallAction.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXTransaction.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.apinotes +36 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CallKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +14 -0
- package/src/expo-autolinking.ts +1 -1
- package/src/expo-swift-host.ts +5 -5
- package/src/kotlin-toolchain.ts +16 -1
- package/src/kotlinSdkContract.ts +2 -1
- package/src/metro-plugin.ts +1 -4
- package/src/nitro-adapter.lock.json +284 -284
- package/src/nitro-compile.ts +69 -4
- package/src/nitro-superset.lock.json +4 -4
- package/src/one-sdk/source.ts +2 -1
- package/src/prepared-native-inventory.ts +8 -2
- package/src/react-native-autolinking.ts +28 -9
- package/src/swift-coverage/xcode-packages.ts +2 -1
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +3 -1
- package/src/turbo-bundle.ts +14 -6
- package/src/turbo-codegen-intake.ts +3 -2
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +2 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
Name: CallKit
|
|
3
|
+
Classes:
|
|
4
|
+
- Name: CXProviderConfiguration
|
|
5
|
+
Properties:
|
|
6
|
+
- Name: 'supportedHandleTypes'
|
|
7
|
+
SwiftPrivate: true
|
|
8
|
+
- Name: CXCall
|
|
9
|
+
Methods:
|
|
10
|
+
- Selector: 'isEqualToCall:'
|
|
11
|
+
MethodKind: Instance
|
|
12
|
+
Availability: nonswift
|
|
13
|
+
AvailabilityMsg: "prefer == operator"
|
|
14
|
+
- Name: CXHandle
|
|
15
|
+
Methods:
|
|
16
|
+
- Selector: 'isEqualToHandle:'
|
|
17
|
+
MethodKind: Instance
|
|
18
|
+
Availability: nonswift
|
|
19
|
+
AvailabilityMsg: "prefer == operator"
|
|
20
|
+
Tags:
|
|
21
|
+
- Name: CXErrorCode
|
|
22
|
+
NSErrorDomain: CXErrorDomain
|
|
23
|
+
- Name: CXErrorCodeIncomingCallError
|
|
24
|
+
NSErrorDomain: CXErrorDomainIncomingCall
|
|
25
|
+
- Name: CXErrorCodeRequestTransactionError
|
|
26
|
+
NSErrorDomain: CXErrorDomainRequestTransaction
|
|
27
|
+
- Name: CXErrorCodeCallDirectoryManagerError
|
|
28
|
+
NSErrorDomain: CXErrorDomainCallDirectoryManager
|
|
29
|
+
- Name: CXErrorCodeNotificationServiceExtensionError
|
|
30
|
+
NSErrorDomain: CXErrorDomainNotificationServiceExtension
|
|
31
|
+
- Name: CXCallDirectoryEnabledStatus
|
|
32
|
+
SwiftName: CXCallDirectoryManager.EnabledStatus
|
|
33
|
+
- Name: CXPlayDTMFCallActionType
|
|
34
|
+
SwiftName: CXPlayDTMFCallAction.ActionType
|
|
35
|
+
- Name: CXHandleType
|
|
36
|
+
SwiftName: CXHandle.HandleType
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CallKit.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <CallKit/CXBase.h>
|
|
11
|
+
#import <CallKit/CXError.h>
|
|
12
|
+
#import <CallKit/CXAction.h>
|
|
13
|
+
#import <CallKit/CXTransaction.h>
|
|
14
|
+
#import <CallKit/CXCallUpdate.h>
|
|
15
|
+
#import <CallKit/CXHandle.h>
|
|
16
|
+
#import <CallKit/CXCallAction.h>
|
|
17
|
+
#import <CallKit/CXStartCallAction.h>
|
|
18
|
+
#import <CallKit/CXAnswerCallAction.h>
|
|
19
|
+
#import <CallKit/CXEndCallAction.h>
|
|
20
|
+
#import <CallKit/CXSetHeldCallAction.h>
|
|
21
|
+
#import <CallKit/CXSetMutedCallAction.h>
|
|
22
|
+
#import <CallKit/CXSetGroupCallAction.h>
|
|
23
|
+
#import <CallKit/CXPlayDTMFCallAction.h>
|
|
24
|
+
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
|
|
25
|
+
#import <CallKit/CXSetTranslatingCallAction.h>
|
|
26
|
+
#endif
|
|
27
|
+
#import <CallKit/CXProvider.h>
|
|
28
|
+
#import <CallKit/CXProviderConfiguration.h>
|
|
29
|
+
#import <CallKit/CXCall.h>
|
|
30
|
+
#import <CallKit/CXCallObserver.h>
|
|
31
|
+
#import <CallKit/CXCallController.h>
|
|
32
|
+
#import <CallKit/CXCallDirectory.h>
|
|
33
|
+
#import <CallKit/CXCallDirectoryManager.h>
|
|
34
|
+
#import <CallKit/CXCallDirectoryProvider.h>
|
|
35
|
+
#import <CallKit/CXCallDirectoryExtensionContext.h>
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
// an app whose headers reach react-native's own React headers gets them, since
|
|
2
|
+
// clang rejects a second, different definition of the same class or protocol
|
|
3
|
+
#if __has_include(<React/RCTBridge.h>)
|
|
4
|
+
#import <React/RCTBridge.h>
|
|
5
|
+
#import <React/RCTBridgeDelegate.h>
|
|
6
|
+
#import <React/RCTBridgeModule.h>
|
|
7
|
+
#import <React/RCTInvalidating.h>
|
|
8
|
+
#import <React/RCTEventDispatcherProtocol.h>
|
|
9
|
+
#import <React/RCTView.h>
|
|
10
|
+
#import <React/RCTViewManager.h>
|
|
11
|
+
#import <React/RCTAssert.h>
|
|
12
|
+
#import <React/RCTUtils.h>
|
|
13
|
+
#else
|
|
1
14
|
#import <UIKit/UIKit.h>
|
|
2
15
|
@class RCTBridge;
|
|
3
16
|
@protocol RCTBridgeDelegate <NSObject>
|
|
@@ -91,3 +104,4 @@ FOUNDATION_EXPORT void RCTSetFatalHandler(RCTFatalHandler fatalHandler);
|
|
|
91
104
|
FOUNDATION_EXPORT RCTFatalHandler RCTGetFatalHandler(void);
|
|
92
105
|
FOUNDATION_EXPORT void RCTSetFatalExceptionHandler(RCTFatalExceptionHandler fatalExceptionHandler);
|
|
93
106
|
FOUNDATION_EXPORT RCTFatalExceptionHandler RCTGetFatalExceptionHandler(void);
|
|
107
|
+
#endif
|
package/src/expo-autolinking.ts
CHANGED
|
@@ -54,7 +54,7 @@ async function autolinkerResults(appRoot: string) {
|
|
|
54
54
|
['search', 'resolve'].map(async (command) =>
|
|
55
55
|
JSON.parse(
|
|
56
56
|
(
|
|
57
|
-
await run(
|
|
57
|
+
await run(process.execPath, [cli, command, ...flags, '--json'], {
|
|
58
58
|
cwd: appRoot,
|
|
59
59
|
timeout: 120_000,
|
|
60
60
|
maxBuffer: 8 * 1024 * 1024,
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -1225,7 +1225,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1225
1225
|
// before propagating errors so a failed request leaves no child running.
|
|
1226
1226
|
const [searched, resolvedModules] = await Promise.allSettled(
|
|
1227
1227
|
['search', 'resolve'].map((command) =>
|
|
1228
|
-
run(
|
|
1228
|
+
run(process.execPath, [cli, command, ...flags, '--json'], {
|
|
1229
1229
|
timeout: 120_000,
|
|
1230
1230
|
maxBuffer: 8 * 1024 * 1024,
|
|
1231
1231
|
env: scriptEnv,
|
|
@@ -2133,11 +2133,11 @@ export function expoEntry(units: ExpoSwiftSourceUnit[], oneSDK = false): string
|
|
|
2133
2133
|
)
|
|
2134
2134
|
// a One SDK host component marks its view; every other view is an Expo view
|
|
2135
2135
|
const view = oneSDK
|
|
2136
|
-
? '@ViewBuilder func view(props: JSON) -> some View {\n if props["oneSDKHost"] != nil { OneSDKUIKitHost(props: props) } else { PeachExpoNativeView(props: props) }\n }'
|
|
2136
|
+
? '@ViewBuilder func view(props: PeachJSON.JSON) -> some View {\n if props["oneSDKHost"] != nil { OneSDKUIKitHost(props: props) } else { PeachExpoNativeView(props: props) }\n }'
|
|
2137
2137
|
: hasViews
|
|
2138
|
-
? 'func view(props: JSON) -> PeachExpoNativeView { PeachExpoNativeView(props: props) }'
|
|
2139
|
-
: 'func view(props: JSON) -> EmptyView { EmptyView() }'
|
|
2140
|
-
return `import SwiftUI\ninternal import ExpoModulesCore\n${bridgeModules.length ? 'import React\n' : ''}${oneSDK ? 'import One\nimport OneSDKBindings\n' : ''}${namespaces.map((namespace) => `import ${namespace}`).join('\n')}\n\n@main struct PeachExpoApp: PeachPackage {\n init() { MainActor.assumeIsolated { PeachExpoRuntime.register([${units.flatMap((unit) => unit.classes).join(', ')}])${delegates}${bridgeModules.length ? `; RCTModuleHost.register([${bridgeModules.join(', ')}])` : ''} } }\n ${view}\n}\n\n@_expose(wasm, "peach_expo_call")\n@_cdecl("peach_expo_call")\n@MainActor public func peachExpoCall(_ payload: UnsafePointer<UInt8>?, _ length: Int32) -> UnsafeMutablePointer<UInt8>? {\n PeachExpoRuntime.dispatch(payload, length)\n}\n`
|
|
2138
|
+
? 'func view(props: PeachJSON.JSON) -> PeachExpoNativeView { PeachExpoNativeView(props: props) }'
|
|
2139
|
+
: 'func view(props: PeachJSON.JSON) -> EmptyView { EmptyView() }'
|
|
2140
|
+
return `import SwiftUI\nimport PeachJSON\ninternal import ExpoModulesCore\n${bridgeModules.length ? 'import React\n' : ''}${oneSDK ? 'import One\nimport OneSDKBindings\n' : ''}${namespaces.map((namespace) => `import ${namespace}`).join('\n')}\n\n@main struct PeachExpoApp: PeachPackage {\n init() { MainActor.assumeIsolated { PeachExpoRuntime.register([${units.flatMap((unit) => unit.classes).join(', ')}])${delegates}${bridgeModules.length ? `; RCTModuleHost.register([${bridgeModules.join(', ')}])` : ''} } }\n ${view}\n}\n\n@_expose(wasm, "peach_expo_call")\n@_cdecl("peach_expo_call")\n@MainActor public func peachExpoCall(_ payload: UnsafePointer<UInt8>?, _ length: Int32) -> UnsafeMutablePointer<UInt8>? {\n PeachExpoRuntime.dispatch(payload, length)\n}\n`
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
2143
|
// a compile outlives its client: a dropped open leaves the work running so the
|
package/src/kotlin-toolchain.ts
CHANGED
|
@@ -48,7 +48,11 @@ export function readToolchain(moduleRoot: string): KotlinToolchain {
|
|
|
48
48
|
return { ...download(library), name: library.name }
|
|
49
49
|
})
|
|
50
50
|
return {
|
|
51
|
-
compiler: {
|
|
51
|
+
compiler: {
|
|
52
|
+
...download(parsed.compiler),
|
|
53
|
+
version,
|
|
54
|
+
jar: download(parsed.compiler.jar),
|
|
55
|
+
},
|
|
52
56
|
libraries: libraries(parsed.libraries),
|
|
53
57
|
composeLibraries: libraries(parsed.composeLibraries),
|
|
54
58
|
composeRuntime: {
|
|
@@ -121,6 +125,17 @@ export function ensureToolchain(
|
|
|
121
125
|
await run('unzip', ['-q', '-o', zip, '-d', dir])
|
|
122
126
|
fs.rmSync(zip)
|
|
123
127
|
}
|
|
128
|
+
const lib = path.join(dir, 'kotlinc', 'lib')
|
|
129
|
+
const patched = path.join(lib, 'kotlin-compiler.sha256')
|
|
130
|
+
if (
|
|
131
|
+
!fs.existsSync(patched) ||
|
|
132
|
+
fs.readFileSync(patched, 'utf8') !== toolchain.compiler.jar.sha256
|
|
133
|
+
) {
|
|
134
|
+
const jar = path.join(dir, `kotlin-compiler-${toolchain.compiler.jar.sha256}.jar`)
|
|
135
|
+
await fetchVerified(toolchain.compiler.jar, jar)
|
|
136
|
+
fs.renameSync(jar, path.join(lib, 'kotlin-compiler.jar'))
|
|
137
|
+
fs.writeFileSync(patched, toolchain.compiler.jar.sha256)
|
|
138
|
+
}
|
|
124
139
|
// kotlinc runs on the JVM an android build already needs; it finds it
|
|
125
140
|
// through JAVA_HOME or PATH, as gradle does
|
|
126
141
|
const java = process.env.JAVA_HOME
|
package/src/kotlinSdkContract.ts
CHANGED
|
@@ -109,7 +109,8 @@ export function readKotlinSdkManifest(
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
export interface KotlinToolchain {
|
|
112
|
-
|
|
112
|
+
// jar: kotlin-compiler.jar with kotlin/fork's compiler patch
|
|
113
|
+
compiler: Download & { version: string; jar: Download }
|
|
113
114
|
libraries: (Download & { name: string })[]
|
|
114
115
|
composeLibraries: (Download & { name: string })[]
|
|
115
116
|
composeRuntime: Download & { name: string }
|
package/src/metro-plugin.ts
CHANGED
|
@@ -388,10 +388,7 @@ export function withPeach<T extends Record<string, unknown>>(
|
|
|
388
388
|
bundlePlatform,
|
|
389
389
|
parsePlistSource,
|
|
390
390
|
options.iosTarget,
|
|
391
|
-
)
|
|
392
|
-
(await (
|
|
393
|
-
await import('./expo-native-prebuilt')
|
|
394
|
-
).managedExpoNativeAppIdentity(cfgProjectRoot, bundlePlatform))
|
|
391
|
+
)
|
|
395
392
|
if (identity) {
|
|
396
393
|
annotated = await mapMetroSerializerCode(annotated, (code) =>
|
|
397
394
|
insertNativeAppIdentityFooter(code, identity),
|