peachsim 0.1.1949 → 0.1.1951
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 +76 -27
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +49 -18
- 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 +76 -27
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +76 -27
- package/dist-lib/swift-compile.cjs +5 -5
- package/dist-lib/swift-compile.mjs +5 -5
- 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 +14 -6
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnit.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnitImplementation.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUParameters.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioCodec.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioComponent.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioOutputUnit.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h +25 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitParameters.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/MusicDevice.h +1 -0
- package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +17 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcast.h +192 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastConfiguration.h +28 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastExtension.h +154 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPError.h +56 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPPreviewViewController.h +52 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPScreenRecorder.h +150 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/ReplayKit.h +20 -0
- package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Modules/module.modulemap +6 -0
- package/src/expo-native-workspace.ts +0 -2
- package/src/expo-swift-host.ts +15 -1
- package/src/installed-native-libraries.ts +5 -1
- package/src/native-static-libraries.ts +8 -0
- package/src/nitro-adapter.lock.json +264 -264
- package/src/nitro-superset.lock.json +4 -4
- package/src/react-native-bridge-modules.ts +27 -6
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-guest-link.ts +8 -3
- package/src/turbo-codegen-intake.ts +1 -0
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +24 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RPBroadcastExtension.h
|
|
3
|
+
// ReplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <AVFoundation/AVFoundation.h>
|
|
10
|
+
#if TARGET_OS_OSX
|
|
11
|
+
#import <AppKit/AppKit.h>
|
|
12
|
+
#else
|
|
13
|
+
#import <UIKit/UIKit.h>
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#import <ReplayKit/RPBroadcastConfiguration.h>
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
/*!
|
|
20
|
+
@category NSExtensionContext (RPBroadcastExtension)
|
|
21
|
+
@abstract Category which defines the method to call from on an extension context object when user interaction is complete during the broadcast setup flow.
|
|
22
|
+
*/
|
|
23
|
+
@interface NSExtensionContext (RPBroadcastExtension)
|
|
24
|
+
|
|
25
|
+
#if TARGET_OS_OSX
|
|
26
|
+
/*! @abstract Load information about the broadcasting app.
|
|
27
|
+
@param handler block which will be supplied a bundleID, displayName and an optional appIcon.
|
|
28
|
+
*/
|
|
29
|
+
- (void)loadBroadcastingApplicationInfoWithCompletion:(void (^)(NSString *bundleID, NSString *displayName, NSImage *__nullable appIcon))handler API_DEPRECATED("No longer supported", macos(11.0, 27.0)) API_UNAVAILABLE(ios, tvos, macCatalyst);
|
|
30
|
+
#else
|
|
31
|
+
/*! @abstract Load information about the broadcasting app.
|
|
32
|
+
@param handler block which will be supplied a bundleID, displayName and an optional appIcon.
|
|
33
|
+
*/
|
|
34
|
+
- (void)loadBroadcastingApplicationInfoWithCompletion:(void (^)(NSString *bundleID, NSString *displayName, UIImage *__nullable appIcon))handler API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0));
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
/*! @abstract Method to be called when the extension should finish. Deprecated.
|
|
38
|
+
@param broadcastURL URL that can be used to redirect the user to the ongoing or completed broadcast. This URL is made available to the running application via a property in RPBroadcastController.
|
|
39
|
+
@param broadcastConfiguration Configuration to use for generating movie clips
|
|
40
|
+
@param setupInfo Dictionary that can be used to share any setup information required by the upload extension. The values and keys in this dictionary are to be defined by the extension developer.
|
|
41
|
+
*/
|
|
42
|
+
#if !TARGET_OS_OSX
|
|
43
|
+
- (void)completeRequestWithBroadcastURL:(NSURL *)broadcastURL broadcastConfiguration:(RPBroadcastConfiguration *)broadcastConfiguration setupInfo:(nullable NSDictionary <NSString *, NSObject <NSCoding> *> *)setupInfo API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0)) API_UNAVAILABLE(macos);
|
|
44
|
+
|
|
45
|
+
/*! @abstract Method to be called when the extension should finish.
|
|
46
|
+
@param broadcastURL URL that can be used to redirect the user to the ongoing or completed broadcast. This URL is made available to the running application via a property in RPBroadcastController.
|
|
47
|
+
@param setupInfo Dictionary that can be used to share any setup information required by the upload extension. The values and keys in this dictionary are to be defined by the extension developer.
|
|
48
|
+
*/
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
- (void)completeRequestWithBroadcastURL:(NSURL *)broadcastURL setupInfo:(nullable NSDictionary <NSString *, NSObject <NSCoding> *> *)setupInfo API_DEPRECATED("No longer supported", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0));
|
|
52
|
+
|
|
53
|
+
@end
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
@class RPBroadcastProcessExtension
|
|
57
|
+
@abstract Base class for extensions that are responsible for handling video and audio data.
|
|
58
|
+
*/
|
|
59
|
+
API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
60
|
+
PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastHandler : NSObject <NSExtensionRequestHandling>
|
|
61
|
+
/*! @abstract Call this method, supplying it with a dictionary defined by the service, to populate the serviceInfo property on RPBroadcastController. This can be used to communicate viewing stats or messages back to the broadcasting app.
|
|
62
|
+
@param serviceInfo Dictionary that can be passed back to the broadcasting app that may contain information about the ongoing broadcast.
|
|
63
|
+
*/
|
|
64
|
+
- (void)updateServiceInfo:(NSDictionary<NSString *, NSObject <NSCoding> *> *)serviceInfo;
|
|
65
|
+
|
|
66
|
+
/*! @abstract Call this method, supplying it with a URL to update the broadcastURL property on RPBroadcastController.
|
|
67
|
+
@param broadcastURL URL of the resource where broadcast can be viewed which will be passed to the broadcasting app.
|
|
68
|
+
*/
|
|
69
|
+
- (void)updateBroadcastURL:(NSURL *)broadcastURL API_AVAILABLE(ios(11.0), tvos(11.0), macos(11.0));
|
|
70
|
+
@end
|
|
71
|
+
|
|
72
|
+
#if !TARGET_OS_OSX
|
|
73
|
+
/*!
|
|
74
|
+
@class RPBroadcastMP4ClipHandler
|
|
75
|
+
@abstract Subclass this class to handle movie clips as they are recorded by ReplayKit during the broadcast flow. ReplayKit will call processMP4ClipWithURL when a movie clip is available for processing.
|
|
76
|
+
*/
|
|
77
|
+
API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0)) API_UNAVAILABLE(macos)
|
|
78
|
+
PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastMP4ClipHandler : RPBroadcastHandler
|
|
79
|
+
/*! @abstract Method which ReplayKit will call when an MP4 movie clip is ready for processing.
|
|
80
|
+
@param mp4ClipURL URL that points to the location of the movie clip recorded by ReplayKit. Note that the URL may be nil in certain cases such as an error.
|
|
81
|
+
@param setupInfo Dictionary supplied by the UI extension that may contain setup information required for processing. The values in this dictionary are to be defined by the extension developer.
|
|
82
|
+
@param finished Boolean indicating that application requested the broadcast to end.
|
|
83
|
+
*/
|
|
84
|
+
- (void)processMP4ClipWithURL:(nullable NSURL *)mp4ClipURL setupInfo:(nullable NSDictionary <NSString *, NSObject *> *)setupInfo finished:(BOOL)finished;
|
|
85
|
+
|
|
86
|
+
/*! @abstract Method that should be called when processing is complete.
|
|
87
|
+
@param broadcastConfiguration Optional updated configuration that will be applied to the next MP4 clip.
|
|
88
|
+
@param error Optional error to communicate to ReplayKit and the host application that there was an issue with the broadcast and to stop broadcasting. Note that once this is called, regardles of the existence of an error, the current MP4 clip will no longer be available.
|
|
89
|
+
*/
|
|
90
|
+
- (void)finishedProcessingMP4ClipWithUpdatedBroadcastConfiguration:(nullable RPBroadcastConfiguration *)broadcastConfiguration error:(nullable NSError *)error;
|
|
91
|
+
@end
|
|
92
|
+
#endif // !TARGET_OS_OSX
|
|
93
|
+
|
|
94
|
+
API_DEPRECATED("Use SCStreamOutputType instead", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
95
|
+
typedef NS_ENUM (NSInteger, RPSampleBufferType) {
|
|
96
|
+
RPSampleBufferTypeVideo = 1,
|
|
97
|
+
RPSampleBufferTypeAudioApp,
|
|
98
|
+
RPSampleBufferTypeAudioMic,
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/*!
|
|
102
|
+
@key RPVideoSampleOrientationKey
|
|
103
|
+
@abstract Use this key in conjunction with CMGetAttachment on CMSampleBufferRef to get the orientation for the sample. The orientation will follow the enum CGImagePropertyOrientation
|
|
104
|
+
*/
|
|
105
|
+
API_DEPRECATED("No longer supported", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0))
|
|
106
|
+
extern NSString * const RPVideoSampleOrientationKey;
|
|
107
|
+
|
|
108
|
+
/*!
|
|
109
|
+
@key RPApplicationInfoBundleIdentifierKey
|
|
110
|
+
@abstract Use this key to retrieve bundle identifier from dictionary provided by broadcastAnnotatedWithApplicationInfo
|
|
111
|
+
*/
|
|
112
|
+
API_DEPRECATED("No longer supported", ios(11.2, 27.0), macos(11.0, 27.0))
|
|
113
|
+
API_UNAVAILABLE(tvos)
|
|
114
|
+
extern NSString * const RPApplicationInfoBundleIdentifierKey;
|
|
115
|
+
|
|
116
|
+
/*!
|
|
117
|
+
@class RPBroadcastSampleHandler
|
|
118
|
+
@abstract Subclass this class to handle CMSampleBuffer objects as they are captured by ReplayKit. To enable this mode of handling, set the RPBroadcastProcessMode in the extension's info.plist to RPBroadcastProcessModeSampleBuffer.
|
|
119
|
+
*/
|
|
120
|
+
API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
121
|
+
PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastSampleHandler : RPBroadcastHandler
|
|
122
|
+
|
|
123
|
+
/*! @abstract Method is called when the RPBroadcastController startBroadcast method is called from the broadcasting application.
|
|
124
|
+
@param setupInfo Dictionary that can be supplied by the UI extension to the sample handler.
|
|
125
|
+
*/
|
|
126
|
+
- (void)broadcastStartedWithSetupInfo:(nullable NSDictionary <NSString *, NSObject *> *)setupInfo;
|
|
127
|
+
|
|
128
|
+
/*! @abstract Method is called when the RPBroadcastController pauseBroadcast method is called from the broadcasting application. */
|
|
129
|
+
- (void)broadcastPaused;
|
|
130
|
+
|
|
131
|
+
/*! @abstract Method is called when the RPBroadcastController resumeBroadcast method is called from the broadcasting application. */
|
|
132
|
+
- (void)broadcastResumed;
|
|
133
|
+
|
|
134
|
+
/*! @abstract Method is called when the RPBroadcastController finishBroadcast method is called from the broadcasting application. */
|
|
135
|
+
- (void)broadcastFinished;
|
|
136
|
+
|
|
137
|
+
/*! @abstract Method is called when broadcast is started from Control Center and provides extension information about the first application opened or used during the broadcast.
|
|
138
|
+
@param applicationInfo Dictionary that contains information about the first application opened or used buring the broadcast.
|
|
139
|
+
*/
|
|
140
|
+
- (void)broadcastAnnotatedWithApplicationInfo:(NSDictionary *)applicationInfo API_AVAILABLE(ios(11.2)) API_UNAVAILABLE(tvos);
|
|
141
|
+
|
|
142
|
+
/*! @abstract Method is called as video and audio data become available during a broadcast session and is delivered as CMSampleBuffer objects.
|
|
143
|
+
@param sampleBuffer CMSampleBuffer object which contains either video or audio data.
|
|
144
|
+
@param sampleBufferType Determine's the type of the sample buffer defined by the RPSampleBufferType enum.
|
|
145
|
+
*/
|
|
146
|
+
- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType;
|
|
147
|
+
|
|
148
|
+
/*! @abstract Method that should be called when broadcasting can not proceed due to an error. Calling this method will stop the broadcast and deliver the error back to the broadcasting app through RPBroadcastController's delegate.
|
|
149
|
+
@param error NSError object that will be passed back to the broadcasting app through RPBroadcastControllerDelegate's broadcastController:didFinishWithError: method.
|
|
150
|
+
*/
|
|
151
|
+
- (void)finishBroadcastWithError:(NSError *)error;
|
|
152
|
+
|
|
153
|
+
@end
|
|
154
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RPError.h
|
|
3
|
+
// ReplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
extern NSErrorDomain const __nonnull RPRecordingErrorDomain API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
10
|
+
extern NSErrorDomain const __nonnull SCStreamErrorDomain;
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
15
|
+
typedef NS_ENUM (NSInteger, RPRecordingErrorCode) {
|
|
16
|
+
RPRecordingErrorUnknown = -5800,
|
|
17
|
+
RPRecordingErrorUserDeclined = -5801, // The user declined app recording.
|
|
18
|
+
RPRecordingErrorDisabled = -5802, // App recording has been disabled via parental controls.
|
|
19
|
+
RPRecordingErrorFailedToStart = -5803, // Recording failed to start
|
|
20
|
+
RPRecordingErrorFailed = -5804, // Failed during recording
|
|
21
|
+
RPRecordingErrorInsufficientStorage = -5805, // Insufficient storage for recording.
|
|
22
|
+
RPRecordingErrorInterrupted = -5806, // Recording interrupted by other app
|
|
23
|
+
RPRecordingErrorContentResize = -5807, // Recording interrupted by multitasking and Content Resizing
|
|
24
|
+
RPRecordingErrorBroadcastInvalidSession = -5808, // Attempted to start a broadcast without a prior session
|
|
25
|
+
RPRecordingErrorSystemDormancy = -5809, // Recording was forced to end when user pressed the power button
|
|
26
|
+
RPRecordingErrorEntitlements = -5810, // Recording failed due to missing entitlements
|
|
27
|
+
RPRecordingErrorActivePhoneCall = -5811, // Recording unable to to record due to active phone call
|
|
28
|
+
RPRecordingErrorFailedToSave = -5812, // Failed to save recording to camera roll
|
|
29
|
+
RPRecordingErrorCarPlay = -5813, // Failed to start recording due to carplay being active
|
|
30
|
+
RPRecordingErrorFailedApplicationConnectionInvalid = -5814, // Failed during recording application connection invalid
|
|
31
|
+
RPRecordingErrorFailedApplicationConnectionInterrupted = -5815, // Failed during recording appliation connection interrupted
|
|
32
|
+
RPRecordingErrorFailedNoMatchingApplicationContext = -5816, // Failed during recording context id does not match application
|
|
33
|
+
RPRecordingErrorFailedMediaServicesFailure = -5817, // Failed during recording due to mediaservices failure
|
|
34
|
+
RPRecordingErrorVideoMixingFailure = -5818, // Failed during recording due to audio/video mixing failure
|
|
35
|
+
RPRecordingErrorBroadcastSetupFailed = -5819, // Failed during saving to camera roll
|
|
36
|
+
RPRecordingErrorFailedToObtainURL = -5820, // Failed to obtain video URL
|
|
37
|
+
RPRecordingErrorFailedIncorrectTimeStamps = -5821, // Failed to due to malformed start and end time intervals
|
|
38
|
+
RPRecordingErrorFailedToProcessFirstSample = -5822, // Failed to failure to process first sample buffer for the asset writer
|
|
39
|
+
RPRecordingErrorFailedAssetWriterFailedToSave = -5823, // Failed due to finishWritingWithCompletionHandler failed
|
|
40
|
+
RPRecordingErrorFailedNoAssetWriter = -5824, // Failed due to no asset writer
|
|
41
|
+
RPRecordingErrorFailedAssetWriterInWrongState = -5825, // Failed due to no asset writer being in wrong state
|
|
42
|
+
RPRecordingErrorFailedAssetWriterExportFailed = -5826, // Failed due to export session failing
|
|
43
|
+
RPRecordingErrorFailedToRemoveFile = -5827, // Failed to properly remove temp file for recording
|
|
44
|
+
RPRecordingErrorFailedAssetWriterExportCanceled = -5828, // Failed due to export session being canceled
|
|
45
|
+
RPRecordingErrorAttemptToStopNonRecording = -5829, // Failed due to attempting to stop a recording that wasn't in recording state
|
|
46
|
+
RPRecordingErrorAttemptToStartInRecordingState = -5830, // Failed due to attempting to start a recording thats already in a recording state
|
|
47
|
+
RPRecordingErrorPhotoFailure = -5831, // Failed during saving to camera roll
|
|
48
|
+
RPRecordingErrorRecordingInvalidSession = -5832, // Attempted to start an invalid recording session
|
|
49
|
+
RPRecordingErrorFailedToStartCaptureStack = -5833, // Failed to start due to video/audio capture failure
|
|
50
|
+
RPRecordingErrorInvalidParameter = -5834, // Failed due to invalid parameter
|
|
51
|
+
RPRecordingErrorFilePermissions = -5835, // Failed due to file permissions error
|
|
52
|
+
RPRecordingErrorExportClipToURLInProgress = -5836, // Failed due to clip export in progress
|
|
53
|
+
RPRecordingErrorCodeSuccessful = 0 // Successfully saved video to camera roll
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPPreviewViewController.h
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RPPreviewViewController.h
|
|
3
|
+
// ReplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <TargetConditionals.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_OSX
|
|
11
|
+
#import <AppKit/AppKit.h>
|
|
12
|
+
#else
|
|
13
|
+
#import <UIKit/UIKit.h>
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#if TARGET_OS_TV
|
|
17
|
+
typedef NS_ENUM (NSInteger, RPPreviewViewControllerMode) {
|
|
18
|
+
RPPreviewViewControllerModePreview,
|
|
19
|
+
RPPreviewViewControllerModeShare
|
|
20
|
+
};
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
24
|
+
|
|
25
|
+
@protocol RPPreviewViewControllerDelegate;
|
|
26
|
+
|
|
27
|
+
/*! @class RPPreviewViewController
|
|
28
|
+
@abstract View controller that allows the user to preview/edit a movie recorded with ReplayKit. Passed into the completion handler supplied to [RPScreenRecorder stopRecordingWithHandler:].
|
|
29
|
+
*/
|
|
30
|
+
#if TARGET_OS_OSX
|
|
31
|
+
API_DEPRECATED("Use SCRecordingEditor instead", macos(11.0, 27.0))
|
|
32
|
+
@interface RPPreviewViewController : NSViewController
|
|
33
|
+
#else
|
|
34
|
+
API_DEPRECATED("Use SCRecordingEditor instead", ios(9.0, 27.0), tvos(10.0, 27.0))
|
|
35
|
+
PEACH_SWIFT_CLASS(ReplayKit) @interface RPPreviewViewController : UIViewController
|
|
36
|
+
#endif
|
|
37
|
+
@property (nonatomic, weak, nullable) id<RPPreviewViewControllerDelegate>previewControllerDelegate;
|
|
38
|
+
#if TARGET_OS_TV
|
|
39
|
+
@property (nonatomic, assign) RPPreviewViewControllerMode mode __IOS_PROHIBITED __TVOS_AVAILABLE(10_0); // Set
|
|
40
|
+
#endif
|
|
41
|
+
@end
|
|
42
|
+
|
|
43
|
+
API_DEPRECATED("Use SCRecordingEditor instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
44
|
+
@protocol RPPreviewViewControllerDelegate <NSObject>
|
|
45
|
+
@optional
|
|
46
|
+
/* @abstract Called when the view controller is finished. */
|
|
47
|
+
- (void)previewControllerDidFinish:(RPPreviewViewController *)previewController;
|
|
48
|
+
|
|
49
|
+
/* @abstract Called when the view controller is finished and returns a set of activity types that the user has completed on the recording. The built in activity types are listed in UIActivity.h. */
|
|
50
|
+
- (void)previewController:(RPPreviewViewController *)previewController didFinishWithActivityTypes:(NSSet <NSString *> *)activityTypes __TVOS_PROHIBITED;
|
|
51
|
+
@end
|
|
52
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RPScreenRecorder.h
|
|
3
|
+
// ReplayKit
|
|
4
|
+
//
|
|
5
|
+
// ReplayKit is a high level framework that can be used to add video and audio recording and broadcast capabilities to an application. An application supplied user interface can use the RPScreenRecorder singleton to start and stop recording or broadcasting.
|
|
6
|
+
//
|
|
7
|
+
// Optionally the framework allows the user to also record microphone content as well as content from the front facing camera.
|
|
8
|
+
//
|
|
9
|
+
// When local recording stops, the framework will vend an instance of RPPreviewViewController that can be presented using [UIViewController presentViewController:animated:completion:]. The view controller allows the user to preview, trim and share the movie.
|
|
10
|
+
//
|
|
11
|
+
// When broadcasting stops, the framework will return a url that can be used to view a broadcast.
|
|
12
|
+
//
|
|
13
|
+
// Copyright © 2016 Apple Inc. All rights reserved.
|
|
14
|
+
//
|
|
15
|
+
|
|
16
|
+
#import <Foundation/Foundation.h>
|
|
17
|
+
#if TARGET_OS_OSX
|
|
18
|
+
#import <AppKit/AppKit.h>
|
|
19
|
+
#else
|
|
20
|
+
#import <UIKit/UIKit.h>
|
|
21
|
+
#endif
|
|
22
|
+
#import <ReplayKit/RPBroadcastExtension.h>
|
|
23
|
+
#import <ReplayKit/RPPreviewViewController.h>
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
26
|
+
|
|
27
|
+
API_DEPRECATED("Use SCVideoEffectOutput cameraDevice instead", ios(11.0, 27.0), macos(11.0, 27.0))
|
|
28
|
+
API_UNAVAILABLE(tvos)
|
|
29
|
+
typedef NS_ENUM (NSInteger, RPCameraPosition) {
|
|
30
|
+
RPCameraPositionFront = 1,
|
|
31
|
+
RPCameraPositionBack,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
@protocol RPScreenRecorderDelegate;
|
|
35
|
+
@class RPBroadcastActivityViewController;
|
|
36
|
+
|
|
37
|
+
/*! @class RPScreenRecorder
|
|
38
|
+
@abstract Singleton class used to control app recording.
|
|
39
|
+
*/
|
|
40
|
+
API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
41
|
+
PEACH_SWIFT_CLASS(ReplayKit) @interface RPScreenRecorder : NSObject
|
|
42
|
+
|
|
43
|
+
/* @abstract Shared instance of the screen recorder. */
|
|
44
|
+
+ (RPScreenRecorder *)sharedRecorder API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
45
|
+
|
|
46
|
+
- (instancetype)init API_UNAVAILABLE(ios, tvos, macCatalyst, macos); // Use sharedRecorder instead
|
|
47
|
+
|
|
48
|
+
/*!
|
|
49
|
+
Deprecated. Use startRecordingWithHandler: instead.
|
|
50
|
+
|
|
51
|
+
@abstract Starts app recording with a completion handler. Note that before recording actually starts, the user may be prompted with UI to confirm recording.
|
|
52
|
+
@param microphoneEnabled Determines whether the microphone input should be included in the recorded movie audio.
|
|
53
|
+
@discussion handler Called after user interactions are complete. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue starting the recording.
|
|
54
|
+
*/
|
|
55
|
+
- (void)startRecordingWithMicrophoneEnabled:(BOOL)microphoneEnabled handler:(nullable void (^)(NSError *_Nullable error))handler API_DEPRECATED("Use microphoneEnabled property", ios(9.0, 10.0)) API_UNAVAILABLE(macos);
|
|
56
|
+
|
|
57
|
+
/*! @abstract Starts app recording with a completion handler. Note that before recording actually starts, the user may be prompted with UI to confirm recording.
|
|
58
|
+
@discussion handler Called after user interactions are complete. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue starting the recording.
|
|
59
|
+
*/
|
|
60
|
+
- (void)startRecordingWithHandler:(nullable void (^)(NSError *_Nullable error))handler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCRecordingOutput instead", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
61
|
+
|
|
62
|
+
/*! @abstract Stops app recording with a completion handler.
|
|
63
|
+
@discussion handler Called when the movie is ready. Will return an instance of RPPreviewViewController on success which should be presented using [UIViewController presentViewController:animated:completion:]. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue stopping the recording.
|
|
64
|
+
*/
|
|
65
|
+
- (void)stopRecordingWithHandler:(nullable void (^)(RPPreviewViewController *_Nullable previewViewController, NSError *_Nullable error))handler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCRecordingOutput instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
66
|
+
|
|
67
|
+
/*! @abstract Stops app recording with output URL and completion handler.
|
|
68
|
+
@param url Output URL for app recording movie.
|
|
69
|
+
@discussion handler Called when movie is written to specified output URL. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue stopping the recording and writing the output URL.
|
|
70
|
+
*/
|
|
71
|
+
- (void)stopRecordingWithOutputURL:(NSURL *)url completionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler NS_SWIFT_NAME(stopRecording(withOutput:completionHandler:)) API_DEPRECATED("Use ScreenCaptureKit SCStream with SCRecordingOutput instead", ios(14.0, 27.0), tvos(14.0, 27.0), macCatalyst(14.0, 27.0), macos(11.0, 27.0));
|
|
72
|
+
|
|
73
|
+
/*! @abstract Discards the current recording. This can only be called after the handler block in stopRecordingWithHandler: is executed.
|
|
74
|
+
*/
|
|
75
|
+
- (void)discardRecordingWithHandler:(void (^)(void))handler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCRecordingOutput instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
76
|
+
|
|
77
|
+
/*! @abstract Starts screen and audio capture and continually calls the supplied handler with the current sampleBuffer and bufferType and passed it back to the application. Note that before recording actually starts, the user may be prompted with UI to confirm recording.
|
|
78
|
+
@discussion handler Called continually with sampleBuffers and the bufferType. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue starting the capture.
|
|
79
|
+
*/
|
|
80
|
+
- (void)startCaptureWithHandler:(nullable void (^)(CMSampleBufferRef sampleBuffer, RPSampleBufferType bufferType, NSError *_Nullable error))captureHandler completionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCStreamOutput instead", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0));
|
|
81
|
+
|
|
82
|
+
/*! @abstract Stops screen capture with a completion handler
|
|
83
|
+
@discussion handler Called after the screen capture has stopped. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue stopping the capture
|
|
84
|
+
*/
|
|
85
|
+
- (void)stopCaptureWithHandler:(nullable void (^)(NSError *_Nullable error))handler API_DEPRECATED("Use ScreenCaptureKit SCStream stopCaptureWithCompletionHandler: instead", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0));
|
|
86
|
+
|
|
87
|
+
/*!
|
|
88
|
+
@abstract Start clip recording buffering with a completion handler. Note that before recording actually starts, the user may be prompted with UI to confirm recording.
|
|
89
|
+
@discussion handler Called after clip recording is started. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue starting clip record buffering.
|
|
90
|
+
*/
|
|
91
|
+
- (void)startClipBufferingWithCompletionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCClipBufferingOutput instead", ios(15.0, 27.0), macos(12.0, 27.0), tvos(15.2, 27.0));
|
|
92
|
+
|
|
93
|
+
/*!
|
|
94
|
+
@abstract Stop clip recording buffering with a completion handler.
|
|
95
|
+
@discussion handler Called after clip recording session is stopped. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue stopping clip record buffering.
|
|
96
|
+
*/
|
|
97
|
+
- (void)stopClipBufferingWithCompletionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCClipBufferingOutput instead", ios(15.0, 27.0), macos(12.0, 27.0), tvos(15.2, 27.0));
|
|
98
|
+
|
|
99
|
+
/*!
|
|
100
|
+
@abstract Exports clip recording
|
|
101
|
+
@param url URL containing absolute path for where to save the clip
|
|
102
|
+
@param duration Length of time in seconds for clip recording, capped at either the elapsed time, or a maximum of 15 seconds, depending on which is the shorter amount of time
|
|
103
|
+
@discussion Must be called after startClipBufferingWithCompletionHandler:, otherwise this will return an error. Exports clip recording from newest samples in buffer for duration. handler Will be called after asset is finished writing to output path. Will be passed an optional NSError in the RPRecordingErrorDomain domain if there was an issue generating the clip recording.
|
|
104
|
+
*/
|
|
105
|
+
- (void)exportClipToURL:(NSURL *)url duration:(NSTimeInterval)duration completionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler API_DEPRECATED("Use ScreenCaptureKit SCStream with SCClipBufferingOutput instead", ios(15.0, 27.0), macos(12.0, 27.0), tvos(15.2, 27.0));
|
|
106
|
+
|
|
107
|
+
/* @abstract Delegate instance for RPScreenRecorder. */
|
|
108
|
+
@property (nonatomic, weak, nullable) id<RPScreenRecorderDelegate> delegate API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
109
|
+
|
|
110
|
+
/* @abstract Check if ReplayKit is available on the device. Implement the screenRecorderDidChangeAvailability: on the delegate to listen for changes to this property. Can be used for key value observing. */
|
|
111
|
+
@property (nonatomic, readonly, getter = isAvailable) BOOL available API_DEPRECATED("Use SCContentSharingPicker isAvailable instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
112
|
+
|
|
113
|
+
/* @abstract Check if a recording session is in progress. Can be used for key value observing. */
|
|
114
|
+
@property (nonatomic, readonly, getter = isRecording) BOOL recording API_DEPRECATED("Use SCStream isCapturing instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
115
|
+
|
|
116
|
+
/* @abstract Specify or query whether the microphone should be enabled during recording. Can be used for key value observing. Default is NO. */
|
|
117
|
+
@property (nonatomic, getter = isMicrophoneEnabled) BOOL microphoneEnabled API_DEPRECATED("Use SCContentSharingPickerConfiguration showsMicrophoneControl instead", ios(9.0, 27.0), macos(11.0, 27.0)) API_UNAVAILABLE(tvos);
|
|
118
|
+
|
|
119
|
+
/* @abstract Specify or query whether the camera should be enabled during recording. Can be used for key value observing. Default is NO. */
|
|
120
|
+
@property (nonatomic, getter = isCameraEnabled) BOOL cameraEnabled API_DEPRECATED("Use SCContentSharingPickerConfiguration showsCameraControl instead", ios(10.0, 27.0), macos(11.0, 27.0)) API_UNAVAILABLE(tvos);
|
|
121
|
+
|
|
122
|
+
/* @abstract Specify or query camera position. Can be used for key value observing. Default is RPCameraPositionFront. */
|
|
123
|
+
@property (nonatomic) RPCameraPosition cameraPosition API_DEPRECATED("Use SCVideoEffectOutput cameraDevice instead", ios(11.0, 27.0), macos(11.0, 27.0)) API_UNAVAILABLE(tvos);
|
|
124
|
+
|
|
125
|
+
/* @abstract A UIView instance that renders the front or back facing camera contents. This will be nil if the camera has not been enabled */
|
|
126
|
+
#if !TARGET_OS_OSX
|
|
127
|
+
@property (nonatomic, readonly, nullable) UIView *cameraPreviewView API_DEPRECATED("Use ScreenCaptureKit SCVideoEffectOutput instead", ios(10.0, 27.0)) API_UNAVAILABLE(tvos, macos);
|
|
128
|
+
#else
|
|
129
|
+
@property (nonatomic, readonly, nullable) NSView *cameraPreviewView API_DEPRECATED("Use ScreenCaptureKit instead", macos(11.0, 27.0)) API_UNAVAILABLE(tvos);
|
|
130
|
+
#endif
|
|
131
|
+
@end
|
|
132
|
+
|
|
133
|
+
API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
|
|
134
|
+
@protocol RPScreenRecorderDelegate <NSObject>
|
|
135
|
+
@optional
|
|
136
|
+
|
|
137
|
+
/*! @abstract Called when recording has stopped due to an error.
|
|
138
|
+
@param screenRecorder The instance of the screen recorder.
|
|
139
|
+
@param error An NSError describing why recording has stopped in the RPRecordingErrorDomain.
|
|
140
|
+
@param previewViewController If a partial movie is available before it was stopped, an instance of RPPreviewViewController will be returned.
|
|
141
|
+
*/
|
|
142
|
+
- (void)screenRecorder:(RPScreenRecorder *)screenRecorder didStopRecordingWithError:(NSError *)error previewViewController:(nullable RPPreviewViewController *)previewViewController API_DEPRECATED("No longer supported", ios(9.0, 10.0), tvos(10.0, 10.0)) API_UNAVAILABLE(macos);
|
|
143
|
+
- (void)screenRecorder:(RPScreenRecorder *)screenRecorder didStopRecordingWithPreviewViewController:(nullable RPPreviewViewController *)previewViewController error:(nullable NSError *)error API_DEPRECATED("Use ScreenCaptureKit SCStream with SCRecordingOutput instead", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0));
|
|
144
|
+
|
|
145
|
+
/*! @abstract Called when the recorder becomes available or stops being available. Check the screen recorder's availability property to check the current availability state. Possible reasons for the recorder to be unavailable include an in-progress Airplay/TVOut session or unsupported hardware.
|
|
146
|
+
@param screenRecorder The instance of the screen recorder.
|
|
147
|
+
*/
|
|
148
|
+
- (void)screenRecorderDidChangeAvailability:(RPScreenRecorder *)screenRecorder API_DEPRECATED("Use ScreenCaptureKit instead", ios(9.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0));
|
|
149
|
+
@end
|
|
150
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ReplayKit.h
|
|
3
|
+
// ReplayKit
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <TargetConditionals.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_OSX
|
|
11
|
+
#import <AppKit/AppKit.h>
|
|
12
|
+
#else
|
|
13
|
+
#import <UIKit/UIKit.h>
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#import <ReplayKit/RPPreviewViewController.h>
|
|
17
|
+
#import <ReplayKit/RPScreenRecorder.h>
|
|
18
|
+
#import <ReplayKit/RPBroadcast.h>
|
|
19
|
+
#import <ReplayKit/RPBroadcastExtension.h>
|
|
20
|
+
#import <ReplayKit/RPError.h>
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -1941,7 +1941,21 @@ async function compileExpoSwiftModulesTraced(
|
|
|
1941
1941
|
)
|
|
1942
1942
|
)
|
|
1943
1943
|
await ensureSwiftToolchain(signal)
|
|
1944
|
-
|
|
1944
|
+
let bridge = collectBridgeModuleSources(fs.realpathSync(root), signal)
|
|
1945
|
+
if (
|
|
1946
|
+
nativeWorkspaceAvailable() &&
|
|
1947
|
+
fs.existsSync(path.join(root, 'ios', 'Podfile')) &&
|
|
1948
|
+
bridge?.units.some((unit) =>
|
|
1949
|
+
unit.nativeTargets?.some((target) => target.bridgingHeader),
|
|
1950
|
+
)
|
|
1951
|
+
) {
|
|
1952
|
+
const prepared = await prepareExpoNativeWorkspace(root, signal, options.iosTarget)
|
|
1953
|
+
bridge = collectBridgeModuleSources(
|
|
1954
|
+
fs.realpathSync(prepared.app),
|
|
1955
|
+
signal,
|
|
1956
|
+
options.installedWorkspace ?? prepared.workspace,
|
|
1957
|
+
)
|
|
1958
|
+
}
|
|
1945
1959
|
if (bridge && bridge.installedNamespaces.length > 0) {
|
|
1946
1960
|
const workspace =
|
|
1947
1961
|
options.installedWorkspace ??
|
|
@@ -193,7 +193,11 @@ export function installedNativeLibraries(
|
|
|
193
193
|
const ownedLibraries = archives.flatMap(({ native, framework, recipe }) => {
|
|
194
194
|
if (!native || !recipe) return []
|
|
195
195
|
const library = nativeStaticLibrary(native, recipe, moduleRoot)
|
|
196
|
-
|
|
196
|
+
// the workspace links a framework bundle's implementation once; an
|
|
197
|
+
// xcframework's static archive slice links with the pod that declares it
|
|
198
|
+
return framework?.kind === 'framework' && frameworkLinkOwner === 'workspace'
|
|
199
|
+
? []
|
|
200
|
+
: [library]
|
|
197
201
|
})
|
|
198
202
|
const [firstLibrary, ...otherLibraries] = ownedLibraries
|
|
199
203
|
const publicHeaders = new Set(
|
|
@@ -33,6 +33,14 @@ export function nonmodularFrameworkLibraries(
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
36
|
+
// react-native-libsodium's minimal apple build of the 1.0.20 release
|
|
37
|
+
{
|
|
38
|
+
name: 'libsodium',
|
|
39
|
+
nativeSha256: '4e5112bdb787a4305ddb8e464a129d4f002c2f0be5a62eb541b5122b769fc17a',
|
|
40
|
+
upstream: 'ebb65ef6ca439333c2bb41a0c1990587288da07f6c7fd07cb3a18cc18d30ce19',
|
|
41
|
+
recipe: 'c164067cbb87998d0539ac88e73fea0bdacc81a9ac8f8e92ac577c957581f626',
|
|
42
|
+
archive: 'libsodium.a',
|
|
43
|
+
},
|
|
36
44
|
{
|
|
37
45
|
name: 'moonshine_core',
|
|
38
46
|
nativeSha256: '474dff8315a8e4d3a6fdd9f89c7264c79c5f84a5b9acbfdfb9fb0ee68d8c801e',
|