peachsim 0.1.2273 → 0.1.2275
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bridge-flow-runner.ts +4 -1
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/gestures.ts +3 -1
- package/detox/index.ts +109 -29
- 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 +74 -14
- 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 +64 -11
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +68 -11
- 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 +74 -14
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +6 -7
- 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 +6 -7
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +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 +84 -19
- package/dist-lib/swift-compile.cjs +31 -2
- package/dist-lib/swift-compile.mjs +31 -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 +30 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +33 -4
- package/dist-lib/vite.cjs +6 -7
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -5
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +127 -37
- package/dist-types/packages/peach-engine/src/engine/scroll-range.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +112 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -28
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-protocol.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/settings/schema.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +12 -5
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +7 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +2 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +3 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/src/nitro-compile.ts +4 -0
- package/src/swift-toolchain.ts +37 -0
- package/src/turbo-source.ts +32 -4
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84","file":"node/cli-6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84.cjs"}
|
|
@@ -48,7 +48,7 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
48
48
|
@discussion iOS versions after 8.0 but prior to 8.2 are saved as 8.0, and iOS version after 8.2 but prior to 9.0
|
|
49
49
|
are saved as 8.2.
|
|
50
50
|
*/
|
|
51
|
-
@property (readonly, assign) NSOperatingSystemVersion operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
51
|
+
@property (readonly, assign) NSOperatingSystemVersion operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
52
52
|
|
|
53
53
|
/*!
|
|
54
54
|
@method initWithSource:version:productType:operatingSystemVersion:
|
|
@@ -58,7 +58,7 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
58
58
|
- (instancetype)initWithSource:(HKSource *)source
|
|
59
59
|
version:(nullable NSString *)version
|
|
60
60
|
productType:(nullable NSString *)productType
|
|
61
|
-
operatingSystemVersion:(NSOperatingSystemVersion)operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
61
|
+
operatingSystemVersion:(NSOperatingSystemVersion)operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
62
62
|
|
|
63
63
|
/*!
|
|
64
64
|
@method initWithSource:version:
|
|
@@ -73,6 +73,6 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
73
73
|
// Constants to match on any value of that property when querying for samples from an HKSourceRevision
|
|
74
74
|
HK_EXTERN NSString * const HKSourceRevisionAnyVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
75
75
|
HK_EXTERN NSString * const HKSourceRevisionAnyProductType API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
76
|
-
HK_EXTERN NSOperatingSystemVersion const HKSourceRevisionAnyOperatingSystem API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
76
|
+
HK_EXTERN NSOperatingSystemVersion const HKSourceRevisionAnyOperatingSystem API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
77
77
|
|
|
78
78
|
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLLocation.h>
|
|
9
10
|
#import <HealthKit/HKDefines.h>
|
|
10
11
|
#import <HealthKit/HKSeriesBuilder.h>
|
|
11
12
|
|
|
@@ -57,7 +58,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
57
58
|
finishRouteWithMetadata: method.
|
|
58
59
|
*/
|
|
59
60
|
- (void)insertRouteData:(NSArray<CLLocation *> *)routeData
|
|
60
|
-
completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
|
|
61
|
+
completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) NS_REFINED_FOR_SWIFT;
|
|
61
62
|
|
|
62
63
|
/*!
|
|
63
64
|
@method addMetadata:completion:
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLLocation.h>
|
|
9
10
|
#import <HealthKit/HKDefines.h>
|
|
10
11
|
#import <HealthKit/HKQuery.h>
|
|
11
12
|
|
|
@@ -41,7 +42,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
41
42
|
stopQuery called, the query is complete and no more calls to the handler will be made.
|
|
42
43
|
*/
|
|
43
44
|
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
|
|
44
|
-
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler;
|
|
45
|
+
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler NS_REFINED_FOR_SWIFT;
|
|
45
46
|
|
|
46
47
|
/*!
|
|
47
48
|
@method initWithRoute:dateInterval:dataHandler:
|
|
@@ -60,7 +61,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
60
61
|
*/
|
|
61
62
|
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
|
|
62
63
|
dateInterval:(NSDateInterval *)dateInterval
|
|
63
|
-
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
|
|
64
|
+
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
64
65
|
|
|
65
66
|
@end
|
|
66
67
|
|
package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h
CHANGED
|
@@ -14,7 +14,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
14
14
|
@class UIPasteConfiguration;
|
|
15
15
|
|
|
16
16
|
UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
|
|
17
|
-
@protocol UIPasteConfigurationSupporting <NSObject>
|
|
17
|
+
PEACH_SWIFT_CLASS(UIKitCore) @protocol UIPasteConfigurationSupporting <NSObject>
|
|
18
18
|
|
|
19
19
|
@property (nonatomic, copy, nullable) UIPasteConfiguration *pasteConfiguration;
|
|
20
20
|
|
|
@@ -212,7 +212,7 @@ UIKIT_EXTERN NSString *const UIKeyInputDelete API_AVAILABLE(ios(15.0),
|
|
|
212
212
|
@end
|
|
213
213
|
|
|
214
214
|
#if TARGET_OS_IOS
|
|
215
|
-
@interface UIResponder (UIPasteConfigurationSupporting) <UIPasteConfigurationSupporting>
|
|
215
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIResponder (UIPasteConfigurationSupporting) <UIPasteConfigurationSupporting>
|
|
216
216
|
@end
|
|
217
217
|
#endif
|
|
218
218
|
|
package/src/nitro-compile.ts
CHANGED
|
@@ -208,6 +208,10 @@ export function collectNitroCompileInput(
|
|
|
208
208
|
...target,
|
|
209
209
|
swiftFlags: [
|
|
210
210
|
'-enable-bare-slash-regex',
|
|
211
|
+
'-Xfrontend',
|
|
212
|
+
'-import-module',
|
|
213
|
+
'-Xfrontend',
|
|
214
|
+
'Foundation',
|
|
211
215
|
...ndebug.flatMap((flag) => ['-Xcc', flag]),
|
|
212
216
|
...(target.swiftFlags ?? []),
|
|
213
217
|
],
|
package/src/swift-toolchain.ts
CHANGED
|
@@ -896,6 +896,9 @@ function swiftSdkBundle(swift: string, id: string, options: string[]): string {
|
|
|
896
896
|
// stat changes invalidate file hashes; every lookup enumerates the entire bundle,
|
|
897
897
|
// including additions, removals, executable modes and internal symlink targets.
|
|
898
898
|
const sdkFileHashes = new Map<string, { stamp: string; checksum: string }>()
|
|
899
|
+
let sdkFilesHashed = 0
|
|
900
|
+
// the stamped hashes a verification saved, which a later process starts from
|
|
901
|
+
const loadedSdkHashFiles = new Set<string>()
|
|
899
902
|
function swiftSdkPayloadChecksum(bundle: string): string {
|
|
900
903
|
const hash = createHash('sha256')
|
|
901
904
|
function visit(relative: string): void {
|
|
@@ -919,6 +922,7 @@ function swiftSdkPayloadChecksum(bundle: string): string {
|
|
|
919
922
|
if (cached?.stamp !== stamp) {
|
|
920
923
|
cached = { stamp, checksum: swiftFileChecksum(file) }
|
|
921
924
|
sdkFileHashes.set(file, cached)
|
|
925
|
+
sdkFilesHashed++
|
|
922
926
|
}
|
|
923
927
|
hash.update(
|
|
924
928
|
JSON.stringify([relative, 'file', Number(stat.mode & 0o111n), cached.checksum]) +
|
|
@@ -946,6 +950,22 @@ function verifySwiftSdk(swift: string, sdk: SwiftWasmSdk): void {
|
|
|
946
950
|
`Swift SDK ${sdk.wasmSdkId} has no verified archive binding for ${sdk.wasmSdkChecksum}. Hydrate it with installSwiftWasmSdk before compiling.`,
|
|
947
951
|
)
|
|
948
952
|
const receipt: unknown = JSON.parse(fs.readFileSync(file, 'utf8'))
|
|
953
|
+
const stamps = file.replace(/\.json$/, '.files.json')
|
|
954
|
+
if (!loadedSdkHashFiles.has(stamps)) {
|
|
955
|
+
loadedSdkHashFiles.add(stamps)
|
|
956
|
+
const saved: unknown = fs.existsSync(stamps)
|
|
957
|
+
? JSON.parse(fs.readFileSync(stamps, 'utf8'))
|
|
958
|
+
: null
|
|
959
|
+
if (saved && typeof saved === 'object')
|
|
960
|
+
for (const [entry, value] of Object.entries(saved))
|
|
961
|
+
if (
|
|
962
|
+
Array.isArray(value) &&
|
|
963
|
+
typeof value[0] === 'string' &&
|
|
964
|
+
typeof value[1] === 'string'
|
|
965
|
+
)
|
|
966
|
+
sdkFileHashes.set(entry, { stamp: value[0], checksum: value[1] })
|
|
967
|
+
}
|
|
968
|
+
const hashedBefore = sdkFilesHashed
|
|
949
969
|
if (
|
|
950
970
|
!receipt ||
|
|
951
971
|
typeof receipt !== 'object' ||
|
|
@@ -959,6 +979,23 @@ function verifySwiftSdk(swift: string, sdk: SwiftWasmSdk): void {
|
|
|
959
979
|
throw new Error(
|
|
960
980
|
`Swift SDK ${sdk.wasmSdkId} installed payload differs from its verified archive ${sdk.wasmSdkChecksum}`,
|
|
961
981
|
)
|
|
982
|
+
if (sdkFilesHashed === hashedBefore) return
|
|
983
|
+
const temporary = `${stamps}.${process.pid}.tmp`
|
|
984
|
+
try {
|
|
985
|
+
fs.writeFileSync(
|
|
986
|
+
temporary,
|
|
987
|
+
JSON.stringify(
|
|
988
|
+
Object.fromEntries(
|
|
989
|
+
[...sdkFileHashes]
|
|
990
|
+
.filter(([entry]) => entry.startsWith(bundle + path.sep))
|
|
991
|
+
.map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]]),
|
|
992
|
+
),
|
|
993
|
+
),
|
|
994
|
+
)
|
|
995
|
+
fs.renameSync(temporary, stamps)
|
|
996
|
+
} finally {
|
|
997
|
+
fs.rmSync(temporary, { force: true })
|
|
998
|
+
}
|
|
962
999
|
}
|
|
963
1000
|
|
|
964
1001
|
/** install or qualify existing bytes, serializing shared-store mutation without replacement. */
|
package/src/turbo-source.ts
CHANGED
|
@@ -2725,6 +2725,38 @@ void dispatchToJSThread(dispatch_block_t block) {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
} // namespace
|
|
2727
2727
|
|
|
2728
|
+
static CGFloat peachScreenBrightness = 0.5;
|
|
2729
|
+
|
|
2730
|
+
@implementation UIScreen (PeachTurboRuntime)
|
|
2731
|
+
+ (UIScreen *)mainScreen {
|
|
2732
|
+
static UIScreen *screen = nil;
|
|
2733
|
+
if (!screen) screen = [[UIScreen alloc] init];
|
|
2734
|
+
return screen;
|
|
2735
|
+
}
|
|
2736
|
+
- (CGFloat)brightness {
|
|
2737
|
+
return peachScreenBrightness;
|
|
2738
|
+
}
|
|
2739
|
+
- (void)setBrightness:(CGFloat)value {
|
|
2740
|
+
peachScreenBrightness = value;
|
|
2741
|
+
}
|
|
2742
|
+
@end
|
|
2743
|
+
|
|
2744
|
+
static BOOL peachIdleTimerDisabled = NO;
|
|
2745
|
+
|
|
2746
|
+
@implementation UIApplication (PeachTurboRuntime)
|
|
2747
|
+
+ (UIApplication *)sharedApplication {
|
|
2748
|
+
static UIApplication *app = nil;
|
|
2749
|
+
if (!app) app = [[UIApplication alloc] init];
|
|
2750
|
+
return app;
|
|
2751
|
+
}
|
|
2752
|
+
- (BOOL)isIdleTimerDisabled {
|
|
2753
|
+
return peachIdleTimerDisabled;
|
|
2754
|
+
}
|
|
2755
|
+
- (void)setIdleTimerDisabled:(BOOL)disabled {
|
|
2756
|
+
peachIdleTimerDisabled = disabled;
|
|
2757
|
+
}
|
|
2758
|
+
@end
|
|
2759
|
+
|
|
2728
2760
|
// React Native's own modules register before any provider's, and RCTBridge.mm
|
|
2729
2761
|
// creates the registry's queue in the first RCTRegisterModule. the engine
|
|
2730
2762
|
// supplies those modules, so a process whose providers register none (codegen
|
|
@@ -2845,9 +2877,6 @@ ${
|
|
|
2845
2877
|
|
|
2846
2878
|
@end
|
|
2847
2879
|
|
|
2848
|
-
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
2849
|
-
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
2850
|
-
|
|
2851
2880
|
extern "C" void peachTurboInitialize() {
|
|
2852
2881
|
objc_create_block_classes_as_subclasses_of([NSObject class]);
|
|
2853
2882
|
if (Class blockClass = NSClassFromString(@"_NSBlock")) {
|
|
@@ -2861,7 +2890,6 @@ extern "C" void peachTurboInitialize() {
|
|
|
2861
2890
|
static_cast<uint32_t *>((__bridge void *)mainQueueClass)[4] &= ~2048u;
|
|
2862
2891
|
*reinterpret_cast<void **>(&_dispatch_main_q) = (__bridge void *)mainQueueClass;
|
|
2863
2892
|
}
|
|
2864
|
-
PeachLaunchReactNativeWindow();
|
|
2865
2893
|
auto& runtime = peach::jsi_runtime::create(
|
|
2866
2894
|
[] { invoker->drain(); },
|
|
2867
2895
|
[] {
|