peachsim 0.1.2000 → 0.1.2002

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 (112) hide show
  1. package/cli/commands/control.ts +1 -0
  2. package/cli/commands/package.ts +2 -0
  3. package/cli/commands/shell-url.ts +4 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +22481 -21950
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +8 -2
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +2872 -2838
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +4195 -3717
  34. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +3 -3
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +3 -3
  50. package/dist-lib/native-app-identity-project.cjs +2 -2
  51. package/dist-lib/native-app-identity-project.mjs +2 -2
  52. package/dist-lib/native-app-identity.cjs +2 -3
  53. package/dist-lib/native-app-identity.mjs +2 -3
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +108 -94
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +1 -1
  69. package/dist-lib/sdk.mjs +1 -1
  70. package/dist-lib/skills.cjs +4860 -4340
  71. package/dist-lib/swift-compile.cjs +13 -33
  72. package/dist-lib/swift-compile.mjs +13 -33
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +14 -34
  80. package/dist-lib/vite.cjs +2 -2
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -6
  84. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
  85. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
  86. package/package.json +1 -1
  87. package/runtime-companion.json +1 -1
  88. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +1 -0
  89. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h +1 -1
  90. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarViewDecoration.h +1 -1
  91. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +1 -1
  92. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +2 -2
  93. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDiffableDataSource.h +2 -2
  94. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +0 -1
  95. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h +4 -4
  96. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +2 -7
  97. package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +46 -0
  98. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +13 -5
  99. package/src/expo-native-workspace.ts +7 -2
  100. package/src/expo-swift-ready.ts +8 -0
  101. package/src/host/bridge-host.ts +6 -0
  102. package/src/native-app-identity.ts +1 -2
  103. package/src/native-bundles.ts +15 -0
  104. package/src/nitro-adapter.lock.json +275 -275
  105. package/src/nitro-superset.lock.json +4 -4
  106. package/src/one-sdk/source.ts +341 -0
  107. package/src/one-sdk-bundle.ts +109 -0
  108. package/src/one-sdk-preparation.ts +59 -0
  109. package/src/oneSdkContract.ts +77 -0
  110. package/src/swift-compile.ts +22 -33
  111. package/src/swift-distribution.lock.json +12 -11
  112. package/src/turbo-runtime.lock.json +22 -22
@@ -1175,7 +1175,6 @@ Classes:
1175
1175
  MethodKind: Class
1176
1176
  SwiftPrivate: true
1177
1177
  - Name: UICalendarViewDecoration
1178
- SwiftName: UICalendarView.Decoration
1179
1178
  Methods:
1180
1179
  - Selector: 'initWithImage:color:size:'
1181
1180
  MethodKind: Instance
@@ -74,8 +74,8 @@ UIKIT_EXTERN API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watch
74
74
 
75
75
  // First item
76
76
 
77
- @property(nonatomic, readonly) NSArray<NSString *> * pasteboardTypes;
78
- - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes;
77
+ @property(nonatomic, readonly) NSArray<NSString *> * pasteboardTypes NS_SWIFT_NAME(types);
78
+ - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes NS_SWIFT_NAME(contains(pasteboardTypes:));
79
79
  - (nullable NSData *)dataForPasteboardType:(NSString *)pasteboardType;
80
80
 
81
81
  - (nullable id)valueForPasteboardType:(NSString *)pasteboardType;
@@ -86,9 +86,9 @@ UIKIT_EXTERN API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watch
86
86
  // Multiple items
87
87
 
88
88
  @property(readonly,nonatomic) NSInteger numberOfItems;
89
- - (nullable NSArray<NSArray<NSString *> *> *)pasteboardTypesForItemSet:(nullable NSIndexSet*)itemSet;
89
+ - (nullable NSArray<NSArray<NSString *> *> *)pasteboardTypesForItemSet:(nullable NSIndexSet*)itemSet NS_SWIFT_NAME(types(forItemSet:));
90
90
 
91
- - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes inItemSet:(nullable NSIndexSet *)itemSet;
91
+ - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes inItemSet:(nullable NSIndexSet *)itemSet NS_SWIFT_NAME(contains(pasteboardTypes:inItemSet:));
92
92
  - (nullable NSIndexSet *)itemSetWithPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes;
93
93
  - (nullable NSArray *)valuesForPasteboardType:(NSString *)pasteboardType inItemSet:(nullable NSIndexSet *)itemSet;
94
94
  - (nullable NSArray<NSData *> *)dataForPasteboardType:(NSString *)pasteboardType inItemSet:(nullable NSIndexSet *)itemSet;
@@ -6,6 +6,7 @@
6
6
  // Copyright 2010-2018 Apple Inc. All rights reserved.
7
7
  //
8
8
 
9
+ #import <UIKitTypes/UIKitTypes.h>
9
10
  #import <Foundation/Foundation.h>
10
11
  #import <CoreGraphics/CoreGraphics.h>
11
12
  #import <UIKit/UIApplication.h>
@@ -19,13 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
19
20
  typedef void (^UIPrintInteractionCompletionHandler)(UIPrintInteractionController *printInteractionController, BOOL completed, NSError * __nullable error) API_UNAVAILABLE(tvos, watchos) API_AVAILABLE(ios(4.2));
20
21
 
21
22
 
22
- typedef NS_ENUM(NSInteger, UIPrinterCutterBehavior) {
23
- UIPrinterCutterBehaviorNoCut,
24
- UIPrinterCutterBehaviorPrinterDefault,
25
- UIPrinterCutterBehaviorCutAfterEachPage,
26
- UIPrinterCutterBehaviorCutAfterEachCopy,
27
- UIPrinterCutterBehaviorCutAfterEachJob,
28
- } API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(tvos, watchos);
23
+
29
24
 
30
25
  @protocol UIPrintInteractionControllerDelegate;
31
26
 
@@ -25,6 +25,47 @@ Classes:
25
25
  MethodKind: Instance
26
26
  - Name: UIFontPickerViewControllerConfiguration
27
27
  SwiftName: UIFontPickerViewController.Configuration
28
+ - Name: NSLayoutManager
29
+ Methods:
30
+ - Selector: 'getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels:'
31
+ SwiftName: getGlyphs(in:glyphs:properties:characterIndexes:bidiLevels:)
32
+ MethodKind: Instance
33
+ - Selector: 'textContainerForGlyphAtIndex:effectiveRange:'
34
+ SwiftName: textContainer(forGlyphAt:effectiveRange:)
35
+ MethodKind: Instance
36
+ - Selector: 'textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:'
37
+ SwiftName: textContainer(forGlyphAt:effectiveRange:withoutAdditionalLayout:)
38
+ MethodKind: Instance
39
+ - Selector: 'lineFragmentRectForGlyphAtIndex:effectiveRange:'
40
+ SwiftName: lineFragmentRect(forGlyphAt:effectiveRange:)
41
+ MethodKind: Instance
42
+ - Selector: 'lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:'
43
+ SwiftName: lineFragmentRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)
44
+ MethodKind: Instance
45
+ - Selector: 'lineFragmentUsedRectForGlyphAtIndex:effectiveRange:'
46
+ SwiftName: lineFragmentUsedRect(forGlyphAt:effectiveRange:)
47
+ MethodKind: Instance
48
+ - Selector: 'lineFragmentUsedRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:'
49
+ SwiftName: lineFragmentUsedRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)
50
+ MethodKind: Instance
51
+ - Selector: 'locationForGlyphAtIndex:'
52
+ SwiftName: location(forGlyphAt:)
53
+ MethodKind: Instance
54
+ - Selector: 'notShownAttributeForGlyphAtIndex:'
55
+ SwiftName: notShownAttribute(forGlyphAt:)
56
+ MethodKind: Instance
57
+ - Selector: 'drawsOutsideLineFragmentForGlyphAtIndex:'
58
+ SwiftName: drawsOutsideLineFragment(forGlyphAt:)
59
+ MethodKind: Instance
60
+ - Selector: 'attachmentSizeForGlyphAtIndex:'
61
+ SwiftName: attachmentSize(forGlyphAt:)
62
+ MethodKind: Instance
63
+ - Selector: 'truncatedGlyphRangeInLineFragmentForGlyphAtIndex:'
64
+ SwiftName: truncatedGlyphRange(inLineFragmentForGlyphAt:)
65
+ MethodKind: Instance
66
+ - Selector: 'getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:'
67
+ SwiftName: getLineFragmentInsertionPoints(forCharacterAt:alternatePositions:inDisplayOrder:positions:characterIndexes:)
68
+ MethodKind: Instance
28
69
  Tags:
29
70
  - Name: NSTextListOptions
30
71
  SwiftName: NSTextList.Options
@@ -54,6 +95,11 @@ Typedefs:
54
95
  - Name: UIFontDescriptorClass
55
96
  SwiftName: UIFontDescriptor.Class
56
97
  Globals:
98
+ - Name: NSTextStorageDidProcessEditingNotification
99
+ SwiftName: NSTextStorage.didProcessEditingNotification
100
+ - Name: NSTextStorageWillProcessEditingNotification
101
+ SwiftName: NSTextStorage.willProcessEditingNotification
102
+
57
103
  - Name: NSParagraphStyleAttributeName
58
104
  SwiftName: NSParagraphStyleAttributeName
59
105
  - Name: NSWritingDirectionAttributeName
@@ -5,6 +5,14 @@
5
5
  #import <UIKitAnimationOptions/UIViewAnimationOptions.h>
6
6
  #import <UIKitTypes/UIWindowLevel.h>
7
7
 
8
+ typedef NS_ENUM(NSInteger, UIPrinterCutterBehavior) {
9
+ UIPrinterCutterBehaviorNoCut,
10
+ UIPrinterCutterBehaviorPrinterDefault,
11
+ UIPrinterCutterBehaviorCutAfterEachPage,
12
+ UIPrinterCutterBehaviorCutAfterEachCopy,
13
+ UIPrinterCutterBehaviorCutAfterEachJob,
14
+ } API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(tvos, watchos);
15
+
8
16
  typedef NS_ENUM(NSInteger, NSTextLayoutOrientation) {
9
17
  NSTextLayoutOrientationHorizontal = 0, // Lines rendered horizontally, grow top to bottom
10
18
  NSTextLayoutOrientationVertical = 1, // Lines rendered vertically, grow right to left
@@ -65,8 +73,8 @@ typedef NS_ENUM(NSInteger, NSTextLayoutManagerSegmentType) {
65
73
  } API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos);
66
74
 
67
75
  typedef NS_ENUM(NSInteger, NSTextScalingType) {
68
- NSTextScalingStandard = 0, // Font sizes throughout the document should appear visually similar to how they would render on macOS and non-Apple platforms
69
- NSTextScalingiOS // Font sizes throughout the document should appear visually similar to how they would render on iOS
76
+ NSTextScalingStandard NS_SWIFT_NAME(standard) = 0, // Font sizes throughout the document should appear visually similar to how they would render on macOS and non-Apple platforms
77
+ NSTextScalingiOS NS_SWIFT_NAME(iOS) // Font sizes throughout the document should appear visually similar to how they would render on iOS
70
78
  } API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0), visionos(1.0));
71
79
 
72
80
  typedef NS_ENUM(NSInteger, NSTextSelectionAffinity) {
@@ -2056,8 +2064,8 @@ typedef NS_OPTIONS(NSUInteger, UIRemoteNotificationType) {
2056
2064
 
2057
2065
  typedef NS_OPTIONS(NSUInteger, UITableViewCellStateMask) {
2058
2066
  UITableViewCellStateDefaultMask = 0,
2059
- UITableViewCellStateShowingEditControlMask = 1 << 0,
2060
- UITableViewCellStateShowingDeleteConfirmationMask = 1 << 1
2067
+ UITableViewCellStateShowingEditControlMask NS_SWIFT_NAME(showingEditControl) = 1 << 0,
2068
+ UITableViewCellStateShowingDeleteConfirmationMask NS_SWIFT_NAME(showingDeleteConfirmation) = 1 << 1
2061
2069
  } API_UNAVAILABLE(watchos);
2062
2070
 
2063
2071
  typedef NS_OPTIONS(NSInteger, UITableViewContentHuggingElements) {
@@ -2082,7 +2090,7 @@ typedef NS_OPTIONS(NSInteger, UITextDragOptions) {
2082
2090
  * This affects only the preview, not the contents of the drag.
2083
2091
  * Any embedded images in the preview will remain as they are.
2084
2092
  */
2085
- UITextDragOptionStripTextColorFromPreviews = (1 << 0)
2093
+ UITextDragOptionStripTextColorFromPreviews NS_SWIFT_NAME(stripTextColorFromPreviews) = (1 << 0)
2086
2094
  } API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos);
2087
2095
 
2088
2096
  typedef NS_OPTIONS(NSInteger, UITouchProperties) {
@@ -9,6 +9,7 @@ import { detectPackageManager } from '../cli/commands/detect'
9
9
  import { teamMachineInstalled } from './admitted-mac-build'
10
10
  import { workspaceExclusion } from './expo-workspace-exclusion'
11
11
  import { cacheDir } from './home-paths'
12
+ import { prepareOneSDKSources } from './one-sdk-preparation'
12
13
  import { portableExpoWorkspace } from './portable-expo-workspace'
13
14
  import {
14
15
  reapRetiredCacheDirectory,
@@ -335,7 +336,7 @@ async function hashWorkspaceInputs(
335
336
  }
336
337
  : {}
337
338
  const toolchain = JSON.stringify({
338
- preparation: 6,
339
+ preparation: 7,
339
340
  appRelative,
340
341
  ...mac,
341
342
  node: process.version,
@@ -699,7 +700,10 @@ async function prepareWorkspace(
699
700
  key: string,
700
701
  podsEnvironment: ReturnType<typeof reactNativePodsEnvironment>,
701
702
  ) {
702
- if (process.platform !== 'darwin' && stage === 'workspace') {
703
+ if (
704
+ process.platform !== 'darwin' &&
705
+ (stage === 'workspace' || nativeWorkspaceAvailable())
706
+ ) {
703
707
  const source = await hashExpoSourceWorkspace(app)
704
708
  return portableExpoWorkspace(app, source.hash)
705
709
  }
@@ -933,6 +937,7 @@ async function prepareNativeProject(
933
937
  )
934
938
  report('prebuild done')
935
939
  }
940
+ await prepareOneSDKSources(app)
936
941
  if (stage === 'project') return
937
942
  // react-native-skia leaves Dawn to react-native-webgpu whenever that package
938
943
  // is installed, but autolinking links it only into apps that declare it.
@@ -108,6 +108,7 @@ export async function awaitStampedExpoSwiftReady(
108
108
  }
109
109
  const expoSwift = params.get('expoSwift')
110
110
  const nitro = params.get('nitro')
111
+ const oneSDK = params.get('oneSDK')
111
112
  const turbo = params.get('turbo')
112
113
  const expoWidgets = params.get('expoWidgets')
113
114
  const preparationUrl = (address: string) => {
@@ -133,6 +134,13 @@ export async function awaitStampedExpoSwiftReady(
133
134
  nitro
134
135
  ? awaitExpoSwiftReady(preparationUrl(nitro), { signal: linked }, 'nitro modules')
135
136
  : null,
137
+ oneSDK
138
+ ? awaitExpoSwiftReady(
139
+ preparationUrl(oneSDK),
140
+ { signal: linked },
141
+ 'One SDK bindings',
142
+ )
143
+ : null,
136
144
  turbo
137
145
  ? awaitExpoSwiftReady(
138
146
  preparationUrl(turbo),
@@ -44,6 +44,7 @@ import {
44
44
  type SharedConfig,
45
45
  } from '../home-paths.ts'
46
46
  import { handleNitroRequest, NITRO_ROUTE } from '../nitro-bundle.ts'
47
+ import { handleOneSDKRequest, ONE_SDK_ROUTE } from '../one-sdk-bundle.ts'
47
48
  import { isProcessRunning } from '../process-liveness.ts'
48
49
  import { rnxPublicBrand } from '../public-brand.ts'
49
50
  import {
@@ -1565,6 +1566,7 @@ export class SootSimBridgeHost {
1565
1566
  if (
1566
1567
  route === EXPO_WIDGETS_ROUTE ||
1567
1568
  route === NITRO_ROUTE ||
1569
+ route === ONE_SDK_ROUTE ||
1568
1570
  route === TURBO_ROUTE ||
1569
1571
  /^\/__peach\/(?:expo-swift|swift|expo-kotlin|kotlin-artifact\/)/.test(route)
1570
1572
  ) {
@@ -1581,6 +1583,10 @@ export class SootSimBridgeHost {
1581
1583
  void handleExpoWidgetsRequest(req, res)
1582
1584
  return
1583
1585
  }
1586
+ if (route === ONE_SDK_ROUTE) {
1587
+ void handleOneSDKRequest(req, res)
1588
+ return
1589
+ }
1584
1590
  if (req.url?.split('?')[0] === NITRO_ROUTE) {
1585
1591
  void handleNitroRequest(req, res)
1586
1592
  return
@@ -495,8 +495,7 @@ export function getNativeRootModuleName(): string | undefined {
495
495
  }
496
496
 
497
497
  export function getAppliedNativeAppIdentity(): NativeAppIdentity | null {
498
- const value = (globalThis as NativeAppIdentityGlobals).__sootsim_native_app_identity
499
- return isNativeAppIdentity(value) ? value : null
498
+ return (globalThis as NativeAppIdentityGlobals).__sootsim_native_app_identity ?? null
500
499
  }
501
500
 
502
501
  // one line, so the footer survives a bundle whose last statement is the Metro
@@ -16,12 +16,14 @@ import {
16
16
  type NitroCompiledModule,
17
17
  type TurboCompiledModule,
18
18
  } from './nitroContract'
19
+ import { insertOneSDKFooter, type OneSDKCompilation } from './oneSdkContract'
19
20
  import { getRuntimePlatformAdapter } from './runtimePlatformContract'
20
21
  import type { ExpoKotlinBundle } from './expo-kotlin-bundle'
21
22
  import type { ExpoSwiftBundle } from './expo-swift-bundle'
22
23
  import type { CompiledModuleAsset, NitroBundle } from './nitro-bundle'
23
24
 
24
25
  export interface NativeBundles {
26
+ oneSDK: { metadata: OneSDKCompilation; assets: CompiledModuleAsset[] } | null
25
27
  expoSwift: ExpoSwiftBundle | null
26
28
  nitro: NitroBundle | null
27
29
  turbo: { metadata: TurboCompiledModule; assets: CompiledModuleAsset[] } | null
@@ -29,6 +31,7 @@ export interface NativeBundles {
29
31
  }
30
32
 
31
33
  export interface NativeBundleMetadata {
34
+ oneSDK?: OneSDKCompilation
32
35
  expoSwift?: ExpoSwiftCompilationResult
33
36
  expoKotlin?: ExpoKotlinCompilationResult
34
37
  nitro?: NitroCompiledModule
@@ -45,6 +48,7 @@ export async function buildNativeBundles(
45
48
  ): Promise<NativeBundles> {
46
49
  return getRuntimePlatformAdapter(platform).select<() => Promise<NativeBundles>>({
47
50
  ios: async () => ({
51
+ oneSDK: await (await import('./one-sdk-bundle')).buildOneSDKBundle(projectRoot),
48
52
  expoSwift: await (
49
53
  await import('./expo-swift-bundle')
50
54
  ).buildExpoSwiftBundle(projectRoot),
@@ -55,6 +59,7 @@ export async function buildNativeBundles(
55
59
  expoKotlin: null,
56
60
  }),
57
61
  android: async () => ({
62
+ oneSDK: null,
58
63
  expoSwift: null,
59
64
  nitro: null,
60
65
  turbo: null,
@@ -69,6 +74,7 @@ export async function buildNativeBundles(
69
74
  export function nativeBundleAssets(natives: NativeBundles): CompiledModuleAsset[] {
70
75
  const assets = new Map<string, CompiledModuleAsset>()
71
76
  for (const native of [
77
+ natives.oneSDK,
72
78
  natives.expoSwift,
73
79
  natives.nitro,
74
80
  natives.turbo,
@@ -89,6 +95,15 @@ export function insertNativeBundleFooters(
89
95
  ): { source: string; metadata: NativeBundleMetadata | null } {
90
96
  const served = (url: string) => (url.startsWith('/') ? locate(url.slice(1)) : url)
91
97
  const metadata: NativeBundleMetadata = {}
98
+ if (natives.oneSDK) {
99
+ const oneSDK = natives.oneSDK.metadata
100
+ metadata.oneSDK = {
101
+ ...oneSDK,
102
+ url: served(oneSDK.url),
103
+ icuUrl: served(oneSDK.icuUrl),
104
+ }
105
+ source = insertOneSDKFooter(source, metadata.oneSDK)
106
+ }
92
107
  if (natives.expoSwift) {
93
108
  metadata.expoSwift = {
94
109
  ...natives.expoSwift.metadata,