peachsim 0.1.2278 → 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/cli/commands/platform.ts +28 -8
- package/cli/commands/shell-url.ts +13 -4
- package/cli/outbound-endpoints.ts +2 -0
- 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 +3691 -3537
- 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 +1995 -1900
- 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 +2875 -2721
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -7
- 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 +55 -21
- 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 +55 -21
- package/dist-lib/native-app-identity-project.cjs +13 -5
- package/dist-lib/native-app-identity-project.mjs +13 -5
- package/dist-lib/native-app-identity.cjs +11 -3
- package/dist-lib/native-app-identity.mjs +11 -3
- 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 +26 -25
- package/dist-lib/public-origins-lib.json +68 -58
- 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 +3579 -3392
- 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 +467 -447
- package/dist-lib/vite.cjs +19 -7
- package/dist-lib/worklet-executable.cjs +421 -118
- package/dist-lib/worklet-executable.mjs +427 -113
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +13 -9
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +14 -15
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +17 -22
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +69 -0
- package/dist-types/packages/peach-engine/src/kernel/worklet-kernel.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/app-load.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +2 -0
- 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-native-prebuilt.ts +24 -0
- package/src/expo-native-workspace.ts +51 -5
- package/src/expo-swift-host.ts +5 -5
- package/src/kotlin-toolchain.ts +16 -1
- package/src/kotlinSdkContract.ts +2 -1
- 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-compiler-digest.ts +8 -1
- package/src/swift-coverage/xcode-packages.ts +2 -1
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-helper.ts +38 -0
- package/src/swift-host.ts +3 -1
- package/src/swift-pdf-raster.ts +7 -33
- package/src/turbo-bundle.ts +14 -6
- package/src/turbo-codegen-intake.ts +3 -2
- package/src/turbo-compile.ts +12 -1
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +2 -4
- package/src/worklet-executable.ts +4 -1
- package/src/worklet-kernel.ts +370 -0
- package/src/worklets-babel.ts +10 -0
- package/src/xcode-target-members.ts +17 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXSetHeldCallAction.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <CallKit/CXCallAction.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
|
|
13
|
+
@interface CXSetHeldCallAction : CXCallAction
|
|
14
|
+
|
|
15
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID onHold:(BOOL)onHold NS_DESIGNATED_INITIALIZER;
|
|
16
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
|
|
17
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
|
|
18
|
+
|
|
19
|
+
@property (nonatomic, getter=isOnHold) BOOL onHold;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXSetMutedCallAction.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2016 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <CallKit/CXCallAction.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
|
|
13
|
+
@interface CXSetMutedCallAction : CXCallAction
|
|
14
|
+
|
|
15
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID muted:(BOOL)muted;
|
|
16
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
|
|
17
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
|
|
18
|
+
|
|
19
|
+
@property (nonatomic, getter=isMuted) BOOL muted;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXSetTranslatingCallAction.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Created by David Evans on 2/27/25.
|
|
6
|
+
// Copyright © 2025 Apple Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <CallKit/CXBase.h>
|
|
10
|
+
#import <CallKit/CXCallAction.h>
|
|
11
|
+
|
|
12
|
+
NS_SWIFT_SENDABLE
|
|
13
|
+
typedef NS_ENUM(NSInteger, CXTranslationEngine) {
|
|
14
|
+
CXTranslationEngineDefault,
|
|
15
|
+
CXTranslationEngineCustom,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
/**
|
|
20
|
+
CXSetTranslatingCallAction is supported after call is connected.
|
|
21
|
+
System offered translation is only supported when using Apple's VoiceProcessor for call IO
|
|
22
|
+
*/
|
|
23
|
+
NS_SWIFT_SENDABLE
|
|
24
|
+
CX_EXTERN
|
|
25
|
+
API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macCatalyst, macos, tvos, watchos, visionos)
|
|
26
|
+
@interface CXSetTranslatingCallAction : CXCallAction <NSSecureCoding>
|
|
27
|
+
|
|
28
|
+
@property (nonatomic, readonly) BOOL isTranslating;
|
|
29
|
+
@property (nonatomic, readonly, strong) NSString * localLanguage;
|
|
30
|
+
@property (nonatomic, readonly, strong) NSString * remoteLanguage;
|
|
31
|
+
|
|
32
|
+
- (instancetype)initWithCallUUID:(NSUUID *)uuid isTranslating:(BOOL)isTranslating localLanguage:(NSString *)localLanguage remoteLanguage:(NSString *)remoteLanguage NS_DESIGNATED_INITIALIZER;
|
|
33
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
|
|
34
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
|
|
35
|
+
|
|
36
|
+
- (void)fulfillUsingTranslationEngine:(CXTranslationEngine)translationEngine;
|
|
37
|
+
|
|
38
|
+
@end
|
|
39
|
+
|
|
40
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXStartCallAction.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <CallKit/CXCallAction.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@class CXHandle;
|
|
13
|
+
|
|
14
|
+
CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
|
|
15
|
+
@interface CXStartCallAction : CXCallAction
|
|
16
|
+
|
|
17
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID handle:(CXHandle *)handle NS_DESIGNATED_INITIALIZER;
|
|
18
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
|
|
19
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
|
|
20
|
+
|
|
21
|
+
/// Handle for the party to call
|
|
22
|
+
@property (nonatomic, copy) CXHandle *handle;
|
|
23
|
+
|
|
24
|
+
@property (nonatomic, copy, nullable) NSString *contactIdentifier;
|
|
25
|
+
|
|
26
|
+
@property (nonatomic, getter=isVideo) BOOL video;
|
|
27
|
+
|
|
28
|
+
/// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call started if it is different from [NSDate date]. A call is considered started when its invitation has been sent to the remote callee.
|
|
29
|
+
- (void)fulfillWithDateStarted:(NSDate *)dateStarted;
|
|
30
|
+
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXTransaction.h
|
|
3
|
+
// CallKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <CallKit/CXBase.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@class CXAction;
|
|
13
|
+
|
|
14
|
+
CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
|
|
15
|
+
@interface CXTransaction : NSObject <NSCopying, NSSecureCoding>
|
|
16
|
+
|
|
17
|
+
/// Unique ID
|
|
18
|
+
@property (nonatomic, readonly, copy) NSUUID *UUID;
|
|
19
|
+
|
|
20
|
+
/// Whether all actions have been completed
|
|
21
|
+
@property (nonatomic, readonly, assign, getter=isComplete) BOOL complete;
|
|
22
|
+
|
|
23
|
+
/// The list of actions contained by the receiver
|
|
24
|
+
@property (nonatomic, readonly, copy) NSArray<__kindof CXAction *> *actions;
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWithActions:(NSArray<CXAction *> *)actions NS_DESIGNATED_INITIALIZER;
|
|
27
|
+
- (instancetype)initWithAction:(CXAction *)action;
|
|
28
|
+
|
|
29
|
+
/// Add the provided action to the receiver's list of actions
|
|
30
|
+
- (void)addAction:(CXAction *)action;
|
|
31
|
+
|
|
32
|
+
@end
|
|
33
|
+
|
|
34
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -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,
|
|
@@ -19,6 +19,7 @@ import plist from 'plist'
|
|
|
19
19
|
import { peachAnsweredNativePackages } from './answeredNativePackages'
|
|
20
20
|
import { expoNativeCompilerDigest } from './expo-native-compiler-digest'
|
|
21
21
|
import {
|
|
22
|
+
declaresNativeDependency,
|
|
22
23
|
prepareExpoNativeProject,
|
|
23
24
|
reactNativePodsEnvironment,
|
|
24
25
|
} from './expo-native-workspace'
|
|
@@ -27,6 +28,10 @@ import {
|
|
|
27
28
|
type ExpoSwiftCompilationResult,
|
|
28
29
|
} from './expoSwiftContract'
|
|
29
30
|
import { isRecord } from './is-record'
|
|
31
|
+
import {
|
|
32
|
+
selectNativeAppIdentityReader,
|
|
33
|
+
type NativeAppIdentity,
|
|
34
|
+
} from './native-app-identity'
|
|
30
35
|
import { readNativeAppIdentityFromXcodeTarget } from './native-app-identity-project'
|
|
31
36
|
import {
|
|
32
37
|
NATIVE_PREBUILT_ORIGIN,
|
|
@@ -322,6 +327,25 @@ export async function prebuiltAppTarget(
|
|
|
322
327
|
})
|
|
323
328
|
}
|
|
324
329
|
|
|
330
|
+
/** a managed app's Info.plist and entitlements exist only once prebuild runs its config plugins. */
|
|
331
|
+
export async function managedExpoNativeAppIdentity(
|
|
332
|
+
appRoot: string,
|
|
333
|
+
platform: unknown,
|
|
334
|
+
): Promise<NativeAppIdentity | null> {
|
|
335
|
+
const read = selectNativeAppIdentityReader(platform, {
|
|
336
|
+
android: async () => null,
|
|
337
|
+
ios: async () =>
|
|
338
|
+
fs.existsSync(path.join(appRoot, 'ios')) ||
|
|
339
|
+
!declaresNativeDependency(
|
|
340
|
+
JSON.parse(fs.readFileSync(path.join(appRoot, 'package.json'), 'utf8')),
|
|
341
|
+
'expo',
|
|
342
|
+
)
|
|
343
|
+
? null
|
|
344
|
+
: readNativeAppIdentityFromXcodeTarget(await prebuiltAppTarget(appRoot)),
|
|
345
|
+
})
|
|
346
|
+
return read ? read() : null
|
|
347
|
+
}
|
|
348
|
+
|
|
325
349
|
/** the Expo Swift result an entry serves an app, with its own root id, identity and Info.plist. */
|
|
326
350
|
export function servedExpoSwift(
|
|
327
351
|
appRoot: string,
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
reapRetiredCacheDirectory,
|
|
18
18
|
removeRetiredDirectory,
|
|
19
19
|
} from './retired-cache-directory'
|
|
20
|
+
import { compiledSwiftHelper } from './swift-helper'
|
|
20
21
|
import {
|
|
21
22
|
withCocoaPodsCacheLock,
|
|
22
23
|
withSwiftRootLock,
|
|
@@ -631,11 +632,25 @@ function prepare(app: string, stage: 'project' | 'workspace', signal?: AbortSign
|
|
|
631
632
|
})
|
|
632
633
|
}
|
|
633
634
|
|
|
635
|
+
// clones each NUL-separated source and destination pair in one process: a
|
|
636
|
+
// clone per package takes seconds where cp spends minutes walking every file.
|
|
637
|
+
// a volume that cannot clone (not apfs) gets a full copy.
|
|
638
|
+
const CLONE_SWIFT = `import Foundation
|
|
639
|
+
let fields = FileHandle.standardInput.readDataToEndOfFile().split(separator: 0).map { String(decoding: $0, as: UTF8.self) }
|
|
640
|
+
guard fields.count % 2 == 0 else { exit(2) }
|
|
641
|
+
for index in stride(from: 0, to: fields.count, by: 2) {
|
|
642
|
+
let source = fields[index], target = fields[index + 1]
|
|
643
|
+
if clonefile(source, target, UInt32(CLONE_NOFOLLOW)) == 0 { continue }
|
|
644
|
+
if errno == ENOTSUP || errno == EXDEV, copyfile(source, target, nil, copyfile_flags_t(COPYFILE_ALL | COPYFILE_RECURSIVE | COPYFILE_NOFOLLOW)) == 0 { continue }
|
|
645
|
+
FileHandle.standardError.write(Data("\\(source): \\(String(cString: strerror(errno)))\\n".utf8))
|
|
646
|
+
exit(1)
|
|
647
|
+
}
|
|
648
|
+
`
|
|
649
|
+
|
|
634
650
|
// a workspace starts from the app's own installed dependencies, which the js
|
|
635
651
|
// install then reconciles with the lockfile: an installed tree that matches
|
|
636
652
|
// takes it under a second, where a fresh install fetches, links and runs every
|
|
637
|
-
// lifecycle script again.
|
|
638
|
-
// per-file copy from node takes several times as long, one cp per tree twice.
|
|
653
|
+
// lifecycle script again.
|
|
639
654
|
async function copyInstalledWorkspace(
|
|
640
655
|
root: string,
|
|
641
656
|
destination: string,
|
|
@@ -665,12 +680,27 @@ async function copyInstalledWorkspace(
|
|
|
665
680
|
.filter((name) => name !== '.cache')
|
|
666
681
|
.map((name) => path.join(relative, name))
|
|
667
682
|
})
|
|
683
|
+
if (process.platform === 'darwin') {
|
|
684
|
+
await new Promise<void>((resolve, reject) => {
|
|
685
|
+
const child = execFile(
|
|
686
|
+
compiledSwiftHelper(CLONE_SWIFT, 'peach-clone-entries'),
|
|
687
|
+
(error) => (error ? reject(error) : resolve()),
|
|
688
|
+
)
|
|
689
|
+
child.stdin?.end(
|
|
690
|
+
entries
|
|
691
|
+
.flatMap((relative) => [
|
|
692
|
+
path.join(root, relative),
|
|
693
|
+
path.join(destination, relative),
|
|
694
|
+
])
|
|
695
|
+
.join('\0'),
|
|
696
|
+
)
|
|
697
|
+
})
|
|
698
|
+
return
|
|
699
|
+
}
|
|
668
700
|
const clone = async (): Promise<void> => {
|
|
669
701
|
const relative = entries.pop()
|
|
670
702
|
if (relative === undefined) return
|
|
671
703
|
await promisify(execFile)('cp', [
|
|
672
|
-
// -c clones on a Mac, as gnu cp already does where the filesystem can
|
|
673
|
-
...(process.platform === 'darwin' ? ['-c'] : []),
|
|
674
704
|
'-R',
|
|
675
705
|
'-p',
|
|
676
706
|
path.join(root, relative),
|
|
@@ -681,6 +711,22 @@ async function copyInstalledWorkspace(
|
|
|
681
711
|
await Promise.all(Array.from({ length: 8 }, clone))
|
|
682
712
|
}
|
|
683
713
|
|
|
714
|
+
// a clone cannot cross volumes, so workspaces live in the first cache on the
|
|
715
|
+
// source's volume: the shared cache, the home cache, else the volume's top
|
|
716
|
+
function nativeWorkspacesDir(root: string): string {
|
|
717
|
+
const device = fs.statSync(root).dev
|
|
718
|
+
for (const cache of [sharedCacheDir(cacheDir()), cacheDir()]) {
|
|
719
|
+
let existing = cache
|
|
720
|
+
while (!fs.existsSync(existing)) existing = path.dirname(existing)
|
|
721
|
+
if (fs.statSync(existing).dev === device)
|
|
722
|
+
return path.join(cache, 'expo-native-workspaces')
|
|
723
|
+
}
|
|
724
|
+
let mount = fs.realpathSync(root)
|
|
725
|
+
while (path.dirname(mount) !== mount && fs.statSync(path.dirname(mount)).dev === device)
|
|
726
|
+
mount = path.dirname(mount)
|
|
727
|
+
return path.join(mount, '.peach-cache', 'expo-native-workspaces')
|
|
728
|
+
}
|
|
729
|
+
|
|
684
730
|
// release producers prepare the already installed app. this preserves the
|
|
685
731
|
// exact dependency tree selected by a replay, including a staged package.
|
|
686
732
|
export async function prepareInstalledExpoWorkspace(app: string, work: string) {
|
|
@@ -804,7 +850,7 @@ async function prepareWorkspace(
|
|
|
804
850
|
watch.excluded = excluded
|
|
805
851
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
|
|
806
852
|
const appManifest = JSON.parse(fs.readFileSync(path.join(app, 'package.json'), 'utf8'))
|
|
807
|
-
const work = path.join(
|
|
853
|
+
const work = path.join(nativeWorkspacesDir(root), nativeHash)
|
|
808
854
|
report(`hashed ${root}`)
|
|
809
855
|
const result = await withSwiftRootLock(work, async (lease) => {
|
|
810
856
|
const marker = path.join(work, '.peach-complete')
|
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 }
|