peachsim 0.1.2296 → 0.1.2299
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 +1226 -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 +129 -33
- 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 +213 -57
- 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 +2392 -4522
- 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 +4537 -6668
- package/dist-lib/native-app-identity-project.cjs +4 -4
- package/dist-lib/native-app-identity-project.mjs +4 -4
- 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 +215 -59
- package/dist-lib/swift-compile.cjs +24 -2
- package/dist-lib/swift-compile.mjs +24 -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 +35 -9
- 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/nativeAnimMirrorContract.d.ts +2 -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/dist-types/packages/peach-kit/src/capabilities.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +23 -11
- 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-discovery-cache.ts +65 -4
- 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/native-swift-slices.ts +9 -2
- 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/swift-standins.ts +6 -3
- package/src/swift-wasm-prune.ts +29 -0
- 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
- package/src/xcode-project.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CXSetGroupCallAction.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 CXSetGroupCallAction : CXCallAction
|
|
14
|
+
|
|
15
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID callUUIDToGroupWith:(nullable NSUUID *)callUUIDToGroupWith NS_DESIGNATED_INITIALIZER;
|
|
16
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
|
|
17
|
+
- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
|
|
18
|
+
|
|
19
|
+
/// The UUID of another call to group with.
|
|
20
|
+
///
|
|
21
|
+
/// - If the call for this action's UUID is already in a group, it should leave that group if necessary.
|
|
22
|
+
/// - If nil, leave any group the call is currently in.
|
|
23
|
+
@property (nonatomic, copy, nullable) NSUUID *callUUIDToGroupWith;
|
|
24
|
+
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -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,
|
|
@@ -233,6 +233,7 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
233
233
|
for (const [directory, expected] of Object.entries(parsed.frameworks)) {
|
|
234
234
|
if (frameworkDigest(directory) !== expected) return undefined
|
|
235
235
|
}
|
|
236
|
+
saveFileHashes()
|
|
236
237
|
} catch {
|
|
237
238
|
return undefined
|
|
238
239
|
}
|
|
@@ -291,6 +292,68 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
291
292
|
|
|
292
293
|
const sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/
|
|
293
294
|
|
|
295
|
+
// a warm read re-verifies every framework file; a file whose stat is unchanged
|
|
296
|
+
// reuses its saved hash, as the swift sdk check does.
|
|
297
|
+
const fileHashes = new Map<string, { stamp: string; checksum: string }>()
|
|
298
|
+
let fileHashesLoaded = false
|
|
299
|
+
let fileHashesChanged = false
|
|
300
|
+
|
|
301
|
+
function fileHashesPath(): string {
|
|
302
|
+
return path.join(sharedDir(), 'framework-file-hashes.json')
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function stampedFileHash(file: string): string {
|
|
306
|
+
if (!fileHashesLoaded) {
|
|
307
|
+
fileHashesLoaded = true
|
|
308
|
+
try {
|
|
309
|
+
const saved: unknown = JSON.parse(fs.readFileSync(fileHashesPath(), 'utf8'))
|
|
310
|
+
if (isRecord(saved))
|
|
311
|
+
for (const [entry, value] of Object.entries(saved))
|
|
312
|
+
if (
|
|
313
|
+
Array.isArray(value) &&
|
|
314
|
+
typeof value[0] === 'string' &&
|
|
315
|
+
typeof value[1] === 'string'
|
|
316
|
+
)
|
|
317
|
+
fileHashes.set(entry, { stamp: value[0], checksum: value[1] })
|
|
318
|
+
} catch {
|
|
319
|
+
// an unreadable save starts empty; every file is hashed again
|
|
320
|
+
fileHashes.clear()
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const stat = fs.statSync(file, { bigint: true })
|
|
324
|
+
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(':')
|
|
325
|
+
const cached = fileHashes.get(file)
|
|
326
|
+
if (cached?.stamp === stamp) return cached.checksum
|
|
327
|
+
const checksum = createHash('sha256').update(fs.readFileSync(file)).digest('hex')
|
|
328
|
+
fileHashes.set(file, { stamp, checksum })
|
|
329
|
+
fileHashesChanged = true
|
|
330
|
+
return checksum
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function saveFileHashes(): void {
|
|
334
|
+
if (!fileHashesChanged) return
|
|
335
|
+
fileHashesChanged = false
|
|
336
|
+
const target = fileHashesPath()
|
|
337
|
+
const temporary = `${target}.${process.pid}.${randomUUID()}.tmp`
|
|
338
|
+
// a failed save only costs the next process the hashing it skipped
|
|
339
|
+
try {
|
|
340
|
+
fs.mkdirSync(path.dirname(target), { recursive: true })
|
|
341
|
+
fs.writeFileSync(
|
|
342
|
+
temporary,
|
|
343
|
+
JSON.stringify(
|
|
344
|
+
Object.fromEntries(
|
|
345
|
+
[...fileHashes]
|
|
346
|
+
.filter(([entry]) => fs.existsSync(entry))
|
|
347
|
+
.map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]]),
|
|
348
|
+
),
|
|
349
|
+
),
|
|
350
|
+
)
|
|
351
|
+
fs.renameSync(temporary, target)
|
|
352
|
+
} catch {
|
|
353
|
+
fs.rmSync(temporary, { force: true })
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
294
357
|
// digest a framework tree the way the collector traverses it: every file by
|
|
295
358
|
// bytes, every link by target, each directory once.
|
|
296
359
|
function treeDigest(directory: string, signal?: AbortSignal): Map<string, string> {
|
|
@@ -311,10 +374,7 @@ function treeDigest(directory: string, signal?: AbortSignal): Map<string, string
|
|
|
311
374
|
} else if (child.isDirectory()) {
|
|
312
375
|
walk(file)
|
|
313
376
|
} else if (child.isFile()) {
|
|
314
|
-
entries.set(
|
|
315
|
-
relative,
|
|
316
|
-
`file\0${createHash('sha256').update(fs.readFileSync(file)).digest('hex')}`,
|
|
317
|
-
)
|
|
377
|
+
entries.set(relative, `file\0${stampedFileHash(file)}`)
|
|
318
378
|
}
|
|
319
379
|
}
|
|
320
380
|
}
|
|
@@ -588,6 +648,7 @@ export function writeExpoDiscovery(options: {
|
|
|
588
648
|
)
|
|
589
649
|
fs.renameSync(tmp, path.join(dir, `${options.key}.json`))
|
|
590
650
|
expireDiscovery(dir, path.join(dir, `${options.key}.json`))
|
|
651
|
+
saveFileHashes()
|
|
591
652
|
return rewritten.units
|
|
592
653
|
} catch (error) {
|
|
593
654
|
if (options.signal?.aborted) throw error
|
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),
|
|
@@ -14,7 +14,11 @@ import {
|
|
|
14
14
|
swiftInterfaceDeclarations,
|
|
15
15
|
withoutSwiftDeclarations,
|
|
16
16
|
} from './swift-compile'
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
privateSwiftDistributionRoot,
|
|
19
|
+
sourceSwiftCheckout,
|
|
20
|
+
SWIFT_PRIVATE_DISTRIBUTION_ENV,
|
|
21
|
+
} from './swift-toolchain'
|
|
18
22
|
import { simulatorNativeLibrary } from './swift-xcframework'
|
|
19
23
|
import type { SwiftStandin } from './swift-standins'
|
|
20
24
|
|
|
@@ -104,7 +108,10 @@ export function nativeSwiftSlice(
|
|
|
104
108
|
`${standin.module}: configured binary behavior cannot replace a compiled native slice`,
|
|
105
109
|
)
|
|
106
110
|
const distribution = swiftDistributionAt(moduleRoot)
|
|
107
|
-
if (!distribution)
|
|
111
|
+
if (!distribution)
|
|
112
|
+
throw new Error(
|
|
113
|
+
`${standin.module}'s native Swift slice needs a compiled distribution; a source checkout names one with ${SWIFT_PRIVATE_DISTRIBUTION_ENV}`,
|
|
114
|
+
)
|
|
108
115
|
const entry = nativeSwiftSliceEntry(distribution, generator)
|
|
109
116
|
const directory =
|
|
110
117
|
fetchNativeEntry('slice', entry.name, entry.key) ??
|