peachsim 0.1.1950 → 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.
Files changed (110) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +39 -13
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +12 -4
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +39 -13
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +39 -13
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +11 -3
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -0
  81. package/package.json +1 -1
  82. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnit.h +1 -0
  83. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnitImplementation.h +1 -0
  84. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h +1 -0
  85. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUParameters.h +1 -0
  86. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioCodec.h +1 -0
  87. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioComponent.h +1 -0
  88. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioOutputUnit.h +1 -0
  89. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h +25 -0
  90. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitParameters.h +1 -0
  91. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h +1 -0
  92. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/MusicDevice.h +1 -0
  93. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Modules/module.modulemap +6 -0
  94. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +17 -0
  95. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcast.h +192 -0
  96. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastConfiguration.h +28 -0
  97. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastExtension.h +154 -0
  98. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPError.h +56 -0
  99. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPPreviewViewController.h +52 -0
  100. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPScreenRecorder.h +150 -0
  101. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/ReplayKit.h +20 -0
  102. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Modules/module.modulemap +6 -0
  103. package/src/installed-native-libraries.ts +5 -1
  104. package/src/native-static-libraries.ts +8 -0
  105. package/src/nitro-adapter.lock.json +264 -264
  106. package/src/nitro-superset.lock.json +4 -4
  107. package/src/swift-distribution.lock.json +11 -11
  108. package/src/turbo-codegen-intake.ts +1 -0
  109. package/src/turbo-runtime.lock.json +22 -22
  110. package/src/turbo-source.ts +24 -1
@@ -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
@@ -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>
@@ -0,0 +1,6 @@
1
+ framework module ReplayKit {
2
+ umbrella header "ReplayKit.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -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
- return framework && frameworkLinkOwner === 'workspace' ? [] : [library]
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',