peachsim 0.1.1728 → 0.1.1744
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/README.md +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +9932 -4561
- 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 +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -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 +6 -3
- package/dist-lib/index.cjs +175 -80
- 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 +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -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 +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +14 -1
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -402
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -217
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -285
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -61,6 +61,7 @@ export interface NativeWindowOwnership extends NativeWindowSource {
|
|
|
61
61
|
windows: readonly NativeWindowInputRegion[];
|
|
62
62
|
}
|
|
63
63
|
export type CapturePublicationOrigin = 'tenant' | 'shell' | 'video';
|
|
64
|
+
export type CapturePublicationPurpose = 'capture' | 'live';
|
|
64
65
|
export type CompositorFatalReason = 'init' | 'device-lost' | 'frame-production' | 'profile-measurement';
|
|
65
66
|
export interface GraphiteCachePoolSnapshot {
|
|
66
67
|
currentBytes: number;
|
|
@@ -1283,6 +1284,7 @@ export type CompositorHostToWorker = {
|
|
|
1283
1284
|
type: 'beginCapturePublicationBarrier';
|
|
1284
1285
|
requestId: number;
|
|
1285
1286
|
origins: CapturePublicationOrigin[];
|
|
1287
|
+
purpose: CapturePublicationPurpose;
|
|
1286
1288
|
symbolSurfaceIds?: CompositorSurfaceId[];
|
|
1287
1289
|
} | {
|
|
1288
1290
|
type: 'cancelCapturePublicationBarrier';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type PeachBundleConfig } from '../../../../../src/config.ts';
|
|
2
|
+
import { type NativeFirebaseConfig } from '../../../../../src/native-firebase-metadata.ts';
|
|
3
|
+
import { type ExpoKotlinCompilationResult } from '../../../../../src/expoKotlinContract.ts';
|
|
4
|
+
import { type ExpoSwiftCompilationResult } from '../../../../../src/expoSwiftContract.ts';
|
|
5
|
+
import { type NitroCompiledModule, type TurboCompiledModule } from '../../../../../src/nitroContract.ts';
|
|
6
|
+
import { type PackageVersions } from '../../../../../src/packageVersionsContract.ts';
|
|
7
|
+
import { type RolldownModulePreparation } from '../rolldown-production-module.d.ts';
|
|
8
|
+
import type { MetroModuleIdentity } from '../metro-identity-contract.d.ts';
|
|
9
|
+
import type { NativeAppIdentity } from '../../../../../src/native-app-identity.ts';
|
|
10
|
+
export interface MetroBundleBootMetadata {
|
|
11
|
+
bundleCharacters: number;
|
|
12
|
+
nativeRuntime: 'standard' | 'kotlin';
|
|
13
|
+
directNativeSeams: string[];
|
|
14
|
+
identity: MetroModuleIdentity;
|
|
15
|
+
rolldownPreparation?: RolldownModulePreparation | null;
|
|
16
|
+
rolldownSourceHash: string | null;
|
|
17
|
+
nativeAppIdentity: NativeAppIdentity | null;
|
|
18
|
+
nativeFirebaseConfig: NativeFirebaseConfig | null;
|
|
19
|
+
configuredBundle: PeachBundleConfig | null;
|
|
20
|
+
expoSwift: ExpoSwiftCompilationResult | null;
|
|
21
|
+
expoKotlin: ExpoKotlinCompilationResult | null;
|
|
22
|
+
nitro?: NitroCompiledModule | null;
|
|
23
|
+
turbo?: TurboCompiledModule | null;
|
|
24
|
+
androidAutolinkedPackages?: readonly string[];
|
|
25
|
+
androidRootModuleName?: string;
|
|
26
|
+
packageVersions: PackageVersions | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function readMetroBundleBootMetadata(value: unknown): MetroBundleBootMetadata;
|
|
@@ -3,7 +3,7 @@ import type { NativePhotoLibraryRequest, NativePhotoLibraryChange, NativePhotoLi
|
|
|
3
3
|
import type { AppPreferenceValue, AppSettingsSnapshot, SystemPermissionApp, SystemPermissionMutation, SystemPermissionRequestContext } from '../permissions/system-permission-types.d.ts';
|
|
4
4
|
import type { AuxAppSurfaceId } from './aux-surface-types.d.ts';
|
|
5
5
|
import type { OneNativeContentPublication } from './one-native-contentContract.d.ts';
|
|
6
|
-
import type { SystemNotificationSettings, SystemPermissionDescriptor, SystemPermissionLocationAccuracy, SystemPermissionState } from '../../../peach-compat/src/engine-config.d.ts';
|
|
6
|
+
import type { NotifPresentation, NotifSpec, SystemNotificationSettings, SystemPermissionDescriptor, SystemPermissionLocationAccuracy, SystemPermissionState } from '../../../peach-compat/src/engine-config.d.ts';
|
|
7
7
|
import type { SootSimWebViewCookieStore, SootSimImageCropperSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerSpec, SootSimImagePickerOptions, SootSimPhotoLibraryAsset, SootSimPhotoLibraryPage, SootsimSettingsRoute, SootSimWebViewNavigationType, PeachWebViewDocumentData, SootSimWebKitConfiguration, SootSimWebKitEvent, SootSimWebKitReply, NativeSurfacePresentation } from '../../../peach-globals/src/index.d.ts';
|
|
8
8
|
export type KeyboardMode = 'letters' | 'numbers' | 'symbols' | 'numeric' | 'emoji';
|
|
9
9
|
export type IOSKeyboardType = 'default' | 'ascii-capable' | 'numbers-and-punctuation' | 'url' | 'number-pad' | 'ascii-capable-number-pad' | 'phone-pad' | 'name-phone-pad' | 'email-address' | 'decimal-pad' | 'twitter' | 'web-search' | 'visible-password' | 'numeric';
|
|
@@ -116,6 +116,7 @@ export interface AlertSpec {
|
|
|
116
116
|
message?: string;
|
|
117
117
|
buttons?: AlertButtonSpec[];
|
|
118
118
|
cancelable?: boolean;
|
|
119
|
+
appWindow?: boolean;
|
|
119
120
|
prompt?: {
|
|
120
121
|
defaultValue?: string;
|
|
121
122
|
keyboardType?: string;
|
|
@@ -248,8 +249,17 @@ export interface NotificationSpec {
|
|
|
248
249
|
openUrl?: string;
|
|
249
250
|
appId?: string;
|
|
250
251
|
time?: string;
|
|
252
|
+
lockScreen?: boolean;
|
|
253
|
+
notificationCenter?: boolean;
|
|
251
254
|
actions?: NotificationActionSpec[];
|
|
252
255
|
}
|
|
256
|
+
export interface ApnsNotificationDelivery {
|
|
257
|
+
appId: string;
|
|
258
|
+
notification: NotifSpec;
|
|
259
|
+
shellNotification: NotificationSpec;
|
|
260
|
+
presentation: NotifPresentation;
|
|
261
|
+
background: boolean;
|
|
262
|
+
}
|
|
253
263
|
export interface NotificationActionSpec {
|
|
254
264
|
id: string;
|
|
255
265
|
title: string;
|
|
@@ -426,6 +436,11 @@ export interface ShareSheetSpec {
|
|
|
426
436
|
dialogTitle?: string;
|
|
427
437
|
message?: string;
|
|
428
438
|
url?: string;
|
|
439
|
+
document?: {
|
|
440
|
+
name: string;
|
|
441
|
+
type: string;
|
|
442
|
+
sizeBytes?: number;
|
|
443
|
+
};
|
|
429
444
|
image?: {
|
|
430
445
|
uri: string;
|
|
431
446
|
kind: 'file' | 'bitmap';
|
|
@@ -733,6 +748,10 @@ type NativeUIRequestBody = import('../capture/nativeScreenCaptureContract.d.ts')
|
|
|
733
748
|
} | {
|
|
734
749
|
kind: 'notification.push';
|
|
735
750
|
spec: NotificationSpec;
|
|
751
|
+
presentation?: {
|
|
752
|
+
banner: boolean;
|
|
753
|
+
list: boolean;
|
|
754
|
+
};
|
|
736
755
|
} | {
|
|
737
756
|
kind: 'safari.open';
|
|
738
757
|
url: string;
|
|
@@ -1019,6 +1038,7 @@ export type NativeUIEvent = import('../capture/nativeScreenCaptureContract.d.ts'
|
|
|
1019
1038
|
launch: boolean;
|
|
1020
1039
|
actionId?: string;
|
|
1021
1040
|
userText?: string;
|
|
1041
|
+
apns?: ApnsNotificationDelivery;
|
|
1022
1042
|
} | {
|
|
1023
1043
|
kind: 'webview.message';
|
|
1024
1044
|
instanceId: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MetroBundleBootMetadata } from './metro-bundle-metadata.d.ts';
|
|
2
|
+
export declare function prepareMetroBundleBoot(source: string): Promise<{
|
|
3
|
+
code: string;
|
|
4
|
+
metadata: MetroBundleBootMetadata;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function prepareBootBundle(source: string): Promise<string>;
|
|
7
|
+
export declare function readPreparedBootMetadata(code: string): MetroBundleBootMetadata | null;
|
|
@@ -106,6 +106,7 @@ export type AppLoadRequest = {
|
|
|
106
106
|
inlineBundle?: NativePreviewBundle;
|
|
107
107
|
awaitNativePreviewBundle?: true;
|
|
108
108
|
env?: Record<string, string>;
|
|
109
|
+
args?: string[];
|
|
109
110
|
};
|
|
110
111
|
export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResourceRequest | import('./engine-resource-relay.d.ts').EngineResourceResponse | {
|
|
111
112
|
type: 'animationClock';
|
|
@@ -117,13 +118,15 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
117
118
|
} | {
|
|
118
119
|
type: 'init';
|
|
119
120
|
nativeWidget?: import('./native-widgetContract.d.ts').NativeWidgetMount;
|
|
120
|
-
compositorBackend
|
|
121
|
+
compositorBackend?: CompositorBackend;
|
|
121
122
|
shellPort: MessagePort;
|
|
122
123
|
hostTimeOrigin: number;
|
|
123
124
|
animationClock: AnimationClockSnapshot;
|
|
124
125
|
contentWidth: number;
|
|
125
126
|
contentHeight: number;
|
|
126
127
|
deviceModel: DeviceModel;
|
|
128
|
+
dynamicWidth: number;
|
|
129
|
+
dynamicHeight: number;
|
|
127
130
|
dpr: number;
|
|
128
131
|
renderDensity: number;
|
|
129
132
|
remoteEngine?: RemoteEngineClientConfig;
|
|
@@ -132,7 +135,7 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
132
135
|
bodyPose: InterfacePose;
|
|
133
136
|
reactNativeConfiguration: ReactNativeConfigurationSnapshot;
|
|
134
137
|
nativeResourcesPort: MessagePort;
|
|
135
|
-
canvasKitWasmModule
|
|
138
|
+
canvasKitWasmModule?: WebAssembly.Module;
|
|
136
139
|
engineBase: string;
|
|
137
140
|
fontUrls: string[];
|
|
138
141
|
fontBuffers?: Record<string, ArrayBuffer>;
|
|
@@ -199,6 +202,8 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
199
202
|
dpr: number;
|
|
200
203
|
renderDensity: number;
|
|
201
204
|
deviceModel: DeviceModel;
|
|
205
|
+
dynamicWidth: number;
|
|
206
|
+
dynamicHeight: number;
|
|
202
207
|
deviceSpec?: DeviceSpec;
|
|
203
208
|
} | {
|
|
204
209
|
type: 'setPageVisible';
|
|
@@ -453,6 +458,9 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
453
458
|
surfaceBindings: Record<string, string | null>;
|
|
454
459
|
surfaceGenerations: Record<string, number>;
|
|
455
460
|
activity: AuxShellActivity;
|
|
461
|
+
} | {
|
|
462
|
+
type: 'fetchRecorderSetEnabled';
|
|
463
|
+
enabled: boolean;
|
|
456
464
|
} | {
|
|
457
465
|
type: 'fetchRecorderDump';
|
|
458
466
|
requestId: number;
|
|
@@ -465,6 +473,11 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
465
473
|
type: 'bundleStripCapture';
|
|
466
474
|
requestId: number;
|
|
467
475
|
};
|
|
476
|
+
export type LocalTenantInit = Extract<HostToWorker, {
|
|
477
|
+
type: 'init';
|
|
478
|
+
}> & Required<Pick<Extract<HostToWorker, {
|
|
479
|
+
type: 'init';
|
|
480
|
+
}>, 'canvasKitWasmModule' | 'compositorBackend'>>;
|
|
468
481
|
export interface SerializedRecordedEntry {
|
|
469
482
|
url: string;
|
|
470
483
|
urlhash: string;
|
|
@@ -110,6 +110,8 @@ export interface ShellDeviceSync {
|
|
|
110
110
|
orientation: InterfaceOrientation;
|
|
111
111
|
landscapeSide: LandscapeSide;
|
|
112
112
|
osVersionOverride: string;
|
|
113
|
+
dynamicWidth: number;
|
|
114
|
+
dynamicHeight: number;
|
|
113
115
|
sceneVerticalBar: SceneVerticalBar;
|
|
114
116
|
}
|
|
115
117
|
export interface ShellInputs {
|
|
@@ -121,6 +123,7 @@ export interface ShellInputs {
|
|
|
121
123
|
threeMode: boolean;
|
|
122
124
|
showHomeIndicator: boolean;
|
|
123
125
|
predictiveText: boolean;
|
|
126
|
+
hardwareKeyboard: boolean;
|
|
124
127
|
device: ShellDeviceSync;
|
|
125
128
|
duoFold: DuoFoldWireState;
|
|
126
129
|
androidSystemBars: AndroidSystemBarsState;
|
|
@@ -379,6 +382,9 @@ export type ShellHostToWorker = {
|
|
|
379
382
|
} | {
|
|
380
383
|
type: 'shellMemorySample';
|
|
381
384
|
requestId: number;
|
|
385
|
+
} | {
|
|
386
|
+
type: 'fetchRecorderSetEnabled';
|
|
387
|
+
enabled: boolean;
|
|
382
388
|
} | {
|
|
383
389
|
type: 'fetchRecorderDump';
|
|
384
390
|
requestId: number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SootSimTestBridge, SootSimTestBridgeArgs, SootSimTestBridgeMethod, SootSimTestBridgeResult } from '../../../peach-globals/src/index.d.ts';
|
|
2
|
-
export type ShellTestBridgeMethod = 'debugSnapshot' | 'debugFind' | 'captureAccessibilityTree' | 'dumpAccessibilityTree' | 'dumpTree' | 'findAllByA11yState' | 'findAllByRole' | 'ancestorChainById' | 'ancestorChainByTestId' | 'findByHint' | 'findById' | 'findByLabel' | 'findByTestId' | 'findByText' | 'findByTextOrLabel' | 'findPressable' | 'getNodeCount' | 'getWindowNodeCount' | 'getSurfaceMetricsSnapshot' | 'getTreeQuietMs' | 'getNodeCountAndQuietMs' | 'getGeometryRevision' | 'getCullStats' | 'getFontDebug' | 'getImageLoaderStats' | 'getPeerStats' | 'getWorkletSlotStats' | 'getShellGestureSeamDebug' | 'getShellPointerDebug' | 'getShellNativeAnimDebug' | 'getShellAnimatedGraphDebug' | 'getShellAuxPresentationDebug' | 'startShellChromeTrajectoryCapture' | 'markShellChromeTrajectoryPhase' | 'getShellChromeTrajectoryCapture' | 'getShellScrollInputDebug' | 'startScrollPerformanceTrace' | 'stopScrollPerformanceTrace' | 'getShellScrollState' | 'getShellCursorState' | 'getShellInspectSchedulingStats' | 'getShellReanimatedTrace' | 'getShellLayoutAnimationDebug' | 'getShellMirrorStyle' | 'getShellBackgroundPlaybackViewTags' | 'getShellChromeLuminance' | 'getShellSnapshotDebug' | 'recordShellPresentationWrites' | 'dispatchShellSensorSample' | 'getScrollMirrorDebug' | 'setShellMapperReleaseTestState' | 'setShellReanimatedTraceEnabled' | 'getShellFeatureFlagsSnapshot' | 'inspectAt' | 'inspectByNodeId' | 'inspectHoverAt' | 'inspectNeighbor' | 'inspectSetStyleOverride' | 'listAnimations' | 'listInspectable' | 'listSemanticInspectable' | 'inspectTree' | 'queryAll' | 'queryMatchingNodes' | 'observeTapTarget' | 'queryMountedShell' | 'queryTextCandidates' | 'replaceTextByTestId' | 'resolveTapTarget' | 'verifyTapTargetAt' | 'stopAnimation' | 'waitForScreenTransitions';
|
|
2
|
+
export type ShellTestBridgeMethod = 'deliverPushNotification' | 'debugSnapshot' | 'debugFind' | 'captureAccessibilityTree' | 'dumpAccessibilityTree' | 'dumpTree' | 'findAllByA11yState' | 'findAllByRole' | 'ancestorChainById' | 'ancestorChainByTestId' | 'findByHint' | 'findById' | 'findByLabel' | 'findByTestId' | 'findByText' | 'findByTextOrLabel' | 'findPressable' | 'getNodeCount' | 'getWindowNodeCount' | 'getSurfaceMetricsSnapshot' | 'getTreeQuietMs' | 'getNodeCountAndQuietMs' | 'getGeometryRevision' | 'getCullStats' | 'getFontDebug' | 'getImageLoaderStats' | 'getPeerStats' | 'getWorkletSlotStats' | 'getShellGestureSeamDebug' | 'getShellPointerDebug' | 'getShellNativeAnimDebug' | 'getShellAnimatedGraphDebug' | 'getShellAuxPresentationDebug' | 'startShellChromeTrajectoryCapture' | 'markShellChromeTrajectoryPhase' | 'getShellChromeTrajectoryCapture' | 'getShellScrollInputDebug' | 'startScrollPerformanceTrace' | 'stopScrollPerformanceTrace' | 'getShellScrollState' | 'getShellCursorState' | 'getShellInspectSchedulingStats' | 'getShellReanimatedTrace' | 'getShellLayoutAnimationDebug' | 'getShellMirrorStyle' | 'getShellBackgroundPlaybackViewTags' | 'getShellChromeLuminance' | 'getShellSnapshotDebug' | 'recordShellPresentationWrites' | 'dispatchShellSensorSample' | 'getScrollMirrorDebug' | 'setShellMapperReleaseTestState' | 'setShellReanimatedTraceEnabled' | 'getShellFeatureFlagsSnapshot' | 'inspectAt' | 'inspectByNodeId' | 'inspectHoverAt' | 'inspectNeighbor' | 'inspectSetStyleOverride' | 'listAnimations' | 'listInspectable' | 'listSemanticInspectable' | 'inspectTree' | 'queryAll' | 'queryMatchingNodes' | 'observeTapTarget' | 'queryMountedShell' | 'queryTextCandidates' | 'replaceTextByTestId' | 'resolveTapTarget' | 'verifyTapTargetAt' | 'stopAnimation' | 'waitForScreenTransitions';
|
|
3
3
|
export type ShellInspectBridgeMethod = Extract<SootSimTestBridgeMethod, 'inspectAt' | 'inspectHoverAt' | 'inspectByNodeId' | 'inspectNeighbor' | 'inspectSetStyleOverride' | 'inspectSetHandlerLogging' | 'listInspectable' | 'listSemanticInspectable' | 'inspectTree'>;
|
|
4
4
|
type BridgeRequestType = 'testBridge' | 'shellTestBridge' | 'inspectRequest';
|
|
5
|
-
type ShellOnlyTestBridgeArgs<Method extends string> = Method extends 'queryMountedShell' ? SootSimTestBridgeArgs<'queryAll'> : Method extends 'setShellMapperReleaseTestState' ? [testID: string, state: 'drive' | 'release'] : Method extends 'replaceTextByTestId' ? [testID: string, text: string] : Method extends 'startScrollPerformanceTrace' ? [limit?: number] : Method extends 'startShellChromeTrajectoryCapture' ? [testID: string, durationMs: number, relatedTestID?: string] : Method extends 'markShellChromeTrajectoryPhase' ? [phase: string] : Method extends 'getFontDebug' ? [family?: string, fontWeight?: unknown] : Method extends 'getShellScrollState' ? [id: string] : Method extends 'getShellMirrorStyle' ? [viewTag: number] : Method extends 'getShellSnapshotDebug' ? [reset?: boolean] : Method extends 'recordShellPresentationWrites' ? [action: 'start' | 'read' | 'drain' | 'stop'] : Method extends 'dispatchShellSensorSample' ? [
|
|
5
|
+
type ShellOnlyTestBridgeArgs<Method extends string> = Method extends 'deliverPushNotification' ? [bundleId: string, payload: unknown] : Method extends 'queryMountedShell' ? SootSimTestBridgeArgs<'queryAll'> : Method extends 'setShellMapperReleaseTestState' ? [testID: string, state: 'drive' | 'release'] : Method extends 'replaceTextByTestId' ? [testID: string, text: string] : Method extends 'startScrollPerformanceTrace' ? [limit?: number] : Method extends 'startShellChromeTrajectoryCapture' ? [testID: string, durationMs: number, relatedTestID?: string] : Method extends 'markShellChromeTrajectoryPhase' ? [phase: string] : Method extends 'getFontDebug' ? [family?: string, fontWeight?: unknown] : Method extends 'getShellScrollState' ? [id: string] : Method extends 'getShellMirrorStyle' ? [viewTag: number] : Method extends 'getShellSnapshotDebug' ? [reset?: boolean] : Method extends 'recordShellPresentationWrites' ? [action: 'start' | 'read' | 'drain' | 'stop'] : Method extends 'dispatchShellSensorSample' ? [
|
|
6
6
|
sensorType: number,
|
|
7
7
|
data: Record<string, number>,
|
|
8
8
|
eventTimestamp: number
|
|
9
9
|
] : [];
|
|
10
|
-
type ShellOnlyTestBridgeResult<Method extends string> = Method extends 'queryMountedShell' ? SootSimTestBridgeResult<'queryAll'> : Method extends 'setShellMapperReleaseTestState' ? boolean : Method extends 'replaceTextByTestId' ? boolean : Method extends 'stopScrollPerformanceTrace' ? import('../../../peach-globals/src/index.d.ts').SootSimScrollOffsetSample[] : Method extends 'getShellCursorState' ? unknown : Method extends 'getShellInspectSchedulingStats' ? unknown : Method extends 'recordShellPresentationWrites' ? number[] : Method extends 'dispatchShellSensorSample' ? number : Method extends 'getShellBackgroundPlaybackViewTags' ? number[] : unknown;
|
|
10
|
+
type ShellOnlyTestBridgeResult<Method extends string> = Method extends 'deliverPushNotification' ? import('../../../../../src/bridge-contract.ts').PushNotificationReceipt : Method extends 'queryMountedShell' ? SootSimTestBridgeResult<'queryAll'> : Method extends 'setShellMapperReleaseTestState' ? boolean : Method extends 'replaceTextByTestId' ? boolean : Method extends 'stopScrollPerformanceTrace' ? import('../../../peach-globals/src/index.d.ts').SootSimScrollOffsetSample[] : Method extends 'getShellCursorState' ? unknown : Method extends 'getShellInspectSchedulingStats' ? unknown : Method extends 'recordShellPresentationWrites' ? number[] : Method extends 'dispatchShellSensorSample' ? number : Method extends 'getShellBackgroundPlaybackViewTags' ? number[] : unknown;
|
|
11
11
|
type TestBridgeEnvelopeArgs<Method extends string> = Method extends SootSimTestBridgeMethod ? SootSimTestBridgeArgs<Method> : ShellOnlyTestBridgeArgs<Method>;
|
|
12
12
|
export interface ShellTestBridgeOptions {
|
|
13
13
|
nativeUiOnly?: boolean;
|
|
@@ -19,6 +19,7 @@ export type WebGpuGraphiteSubmissionBudget = number;
|
|
|
19
19
|
export interface WebGpuFrameAdmissionOptions {
|
|
20
20
|
readonly graphiteSubmissionBudget?: WebGpuGraphiteSubmissionBudget;
|
|
21
21
|
readonly defer?: boolean;
|
|
22
|
+
readonly urgent?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export type WebGpuFrameAdmissionDecision = {
|
|
24
25
|
readonly status: 'admitted';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GraphiteDeviceContext, GraphiteOwnedTexture, GraphiteTextureIdentity } from './canvaskit-webgpu.d.ts';
|
|
2
2
|
import type { WebGpuReadbackEncoding, WebGpuReadbackSubmission } from './webgpu-frame-transaction.d.ts';
|
|
3
|
-
export type WebGpuReadbackKind = 'full-surface' | 'surface-region' | 'sample';
|
|
3
|
+
export type WebGpuReadbackKind = 'full-surface' | 'surface-region' | 'scratch-surface' | 'sample';
|
|
4
4
|
export interface WebGpuReadbackRegion {
|
|
5
5
|
readonly x: number;
|
|
6
6
|
readonly y: number;
|
|
@@ -62,6 +62,10 @@ export type ValueSpec = {
|
|
|
62
62
|
kind: 'hostValue';
|
|
63
63
|
codec: string;
|
|
64
64
|
data: unknown;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'custom';
|
|
67
|
+
unpack: WorkletFunctionSpec;
|
|
68
|
+
packed: ValueSpec;
|
|
65
69
|
} | {
|
|
66
70
|
kind: 'fn';
|
|
67
71
|
reanimated2?: true;
|
|
@@ -230,10 +234,11 @@ export declare function markWorkletBuiltin<T extends object>(name: string, value
|
|
|
230
234
|
export declare function markWorkletHostFunction<T extends (...args: never[]) => void>(fn: T): T;
|
|
231
235
|
export declare function isWorkletHostFunction(value: unknown): value is (...args: unknown[]) => void;
|
|
232
236
|
export interface WorkletHostValueCodec<T extends object, D> {
|
|
233
|
-
pack(value: T): D;
|
|
237
|
+
pack(value: T, carrier?: WorkletRuntime): D;
|
|
234
238
|
unpack(data: D): T;
|
|
235
239
|
receive?(data: D, decode: (value: ValueSpec) => unknown): void;
|
|
236
240
|
disposeRuntime?(runtime: WorkletRuntime): void;
|
|
241
|
+
retirePeer?(runtime: WorkletRuntime): void;
|
|
237
242
|
}
|
|
238
243
|
export interface WorkletHostValueUpdate {
|
|
239
244
|
codec: string;
|
|
@@ -241,6 +246,13 @@ export interface WorkletHostValueUpdate {
|
|
|
241
246
|
}
|
|
242
247
|
export declare function registerWorkletHostValueCodec<T extends object, D>(name: string, codec: WorkletHostValueCodec<T, D>): void;
|
|
243
248
|
export declare function markWorkletHostValue<T extends object>(target: T, codec: string): T;
|
|
249
|
+
export interface CustomSerializableRegistration {
|
|
250
|
+
name: string;
|
|
251
|
+
determine: (value: object) => boolean;
|
|
252
|
+
pack: (value: object) => unknown;
|
|
253
|
+
unpack: WorkletFn;
|
|
254
|
+
}
|
|
255
|
+
export declare function getCustomSerializationRegistry(): CustomSerializableRegistration[];
|
|
244
256
|
export interface WorkletDispatchOptions {
|
|
245
257
|
awaitReply?: boolean;
|
|
246
258
|
callerThread?: WorkletThreadIdentity;
|
|
@@ -624,6 +636,7 @@ export declare class WorkletRuntime {
|
|
|
624
636
|
private workletCache;
|
|
625
637
|
private materializedClosureCache;
|
|
626
638
|
private remoteWorkletCache;
|
|
639
|
+
private remoteWorkletCacheFinalizer;
|
|
627
640
|
private shareableCache;
|
|
628
641
|
private serializedWorklets;
|
|
629
642
|
private nextSerializedClosureId;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TextBundleFormat } from './preview/bundle-layout.d.ts';
|
|
1
2
|
interface RolldownFactory {
|
|
2
3
|
start: number;
|
|
3
4
|
end: number;
|
|
@@ -81,7 +82,7 @@ export interface RolldownInventoryReceipt {
|
|
|
81
82
|
}
|
|
82
83
|
export declare function carryRolldownBundleInventory(receipt: RolldownInventoryReceipt | null, report: (receipt: RolldownInventoryReceipt) => void): void;
|
|
83
84
|
export declare function stripRolldownBundleInventoryFooter(source: string): string;
|
|
84
|
-
export declare function hasRolldownInventoryMarkers(source: string): boolean;
|
|
85
|
+
export declare function hasRolldownInventoryMarkers(source: string, format?: TextBundleFormat): boolean;
|
|
85
86
|
export declare function buildRolldownBundleInventory(source: string): Promise<RolldownBundleInventory>;
|
|
86
87
|
export declare function attachRolldownBundleInventory(source: string): Promise<string>;
|
|
87
88
|
export declare function releasableMultipartPrefix(payload: string, contentType: string): {
|
|
@@ -91,4 +92,10 @@ export declare function releasableMultipartPrefix(payload: string, contentType:
|
|
|
91
92
|
export declare function multipartFailurePart(contentType: string, message: string, sentPrefix: string): string;
|
|
92
93
|
export declare function attachRolldownBundleHttpPayload(payload: string, contentType: string | undefined): Promise<string>;
|
|
93
94
|
export declare function readRolldownBundleInventory(source: string): Promise<RolldownBundleInventory>;
|
|
95
|
+
export declare function readVerifiedRolldownBundleInventory(source: string, sourceHash: string): RolldownBundleInventory;
|
|
96
|
+
export interface VerifiedRolldownBundle {
|
|
97
|
+
sourceHash: string;
|
|
98
|
+
inventory: RolldownBundleInventory;
|
|
99
|
+
}
|
|
100
|
+
export declare function verifyRolldownBundle(source: string, format: TextBundleFormat): Promise<VerifiedRolldownBundle | null>;
|
|
94
101
|
export {};
|
|
@@ -19,10 +19,7 @@ export declare function recognizeRolldownProductionInput(source: string, registr
|
|
|
19
19
|
}>;
|
|
20
20
|
export declare function readRolldownProductionInput(source: string): Promise<{
|
|
21
21
|
contentHash: string;
|
|
22
|
-
modules:
|
|
23
|
-
modulePath: string;
|
|
24
|
-
binding: RolldownFactoryBinding;
|
|
25
|
-
}>;
|
|
22
|
+
modules: import("./rolldown-production-roles.d.ts").RolldownRuntimeRoleMatch[];
|
|
26
23
|
nativeInterfaces: {
|
|
27
24
|
globalName: string;
|
|
28
25
|
methods: string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RolldownBundleInventory } from './rolldown-bundle-inventory.d.ts';
|
|
2
|
+
export declare function compileRolldownProductionModule(source: string, inventory: RolldownBundleInventory): Promise<string>;
|
|
3
|
+
export interface RolldownModulePreparation {
|
|
4
|
+
version: 1;
|
|
5
|
+
sourceHash: string;
|
|
6
|
+
executableHash: string;
|
|
7
|
+
nativeInterfaces: Array<{
|
|
8
|
+
globalName: string;
|
|
9
|
+
methods: string[];
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare function readRolldownModulePreparation(value: unknown): RolldownModulePreparation | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RolldownFactoryBinding } from './rolldown-bundle-inventory.d.ts';
|
|
2
|
+
export interface RolldownRuntimeRoleMatch {
|
|
3
|
+
modulePath: string;
|
|
4
|
+
binding: RolldownFactoryBinding;
|
|
5
|
+
}
|
|
6
|
+
export declare function recognizeRolldownRuntimeRoles(source: string): Promise<RolldownRuntimeRoleMatch[]>;
|
|
@@ -49,8 +49,13 @@ export declare function resolveRotateDirectionTarget(direction: RotateDirection,
|
|
|
49
49
|
landscapeSide?: LandscapeSide;
|
|
50
50
|
};
|
|
51
51
|
export declare function isPadIdiom(spec: Pick<DeviceSpec, 'model'>): boolean;
|
|
52
|
+
export declare function clampWindowSize(width: number, height: number): {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
};
|
|
56
|
+
export declare function withWindowSize(spec: DeviceSpec, width: number, height: number): DeviceSpec;
|
|
52
57
|
export declare function isPhoneIdiom(spec: DeviceSpec): boolean;
|
|
53
|
-
export declare function deviceSizeClasses(
|
|
58
|
+
export declare function deviceSizeClasses(spec: Pick<DeviceSpec, 'model' | 'width' | 'posture'>, orientation: InterfaceOrientation): {
|
|
54
59
|
horizontal: SizeClass;
|
|
55
60
|
vertical: SizeClass;
|
|
56
61
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InterfaceOrientation, LandscapeSide } from '../../../../../src/device-catalog.ts';
|
|
2
2
|
export type DuoFoldPosture = 'closed' | 'half-opened' | 'open';
|
|
3
3
|
export type DuoFoldRest = 'closed' | 'book' | 'open' | 'laptop' | 'tent';
|
|
4
|
+
export declare function isDuoFoldRest(value: string | null): value is DuoFoldRest;
|
|
4
5
|
export declare const DUO_REST_PROGRESS: Record<DuoFoldRest, number>;
|
|
5
6
|
type Quaternion = readonly [number, number, number, number];
|
|
6
7
|
export declare function duoFoldStance(from: DuoFoldRest | null, to: DuoFoldRest, travel: number, angles: {
|
|
@@ -21,6 +21,8 @@ export type ScreenEdgeSwipeCommit = {
|
|
|
21
21
|
interactiveId: number;
|
|
22
22
|
controllerTag: number;
|
|
23
23
|
} & ({
|
|
24
|
+
phase: 'prevented';
|
|
25
|
+
} | {
|
|
24
26
|
phase: 'progress';
|
|
25
27
|
progress: number;
|
|
26
28
|
} | {
|
|
@@ -53,6 +55,7 @@ export interface BottomTabBarItem {
|
|
|
53
55
|
disabled?: boolean;
|
|
54
56
|
testID?: string;
|
|
55
57
|
accessibilityLabel?: string;
|
|
58
|
+
accessibilityHint?: string;
|
|
56
59
|
icon?: string;
|
|
57
60
|
iconName?: string;
|
|
58
61
|
selectedIconName?: string;
|
|
@@ -127,6 +130,10 @@ export interface BottomTabBarProps {
|
|
|
127
130
|
activeLabelColor?: string;
|
|
128
131
|
inactiveLabelColor?: string;
|
|
129
132
|
tabBarControllerMode?: 'automatic' | 'tabBar' | 'tabSidebar';
|
|
133
|
+
standalone?: {
|
|
134
|
+
width: number;
|
|
135
|
+
height: number;
|
|
136
|
+
};
|
|
130
137
|
sidebarVisible?: boolean;
|
|
131
138
|
onSidebarToggle?: () => void;
|
|
132
139
|
rippleColor?: string;
|
|
@@ -486,6 +493,7 @@ export interface NativeAlertsConfig {
|
|
|
486
493
|
isPreferred?: boolean;
|
|
487
494
|
onPress?: (value?: NativeAlertPromptValue) => void;
|
|
488
495
|
}>, options?: {
|
|
496
|
+
appWindow?: boolean;
|
|
489
497
|
cancelable?: boolean;
|
|
490
498
|
onDismiss?: () => void;
|
|
491
499
|
}, traitScheme?: 'light' | 'dark' | null) => number;
|
package/kotlin/README.md
CHANGED
|
@@ -31,6 +31,9 @@ traffic in `scripts/debug/peach-swift-lazy-network.sh`.
|
|
|
31
31
|
- `ExpoSources/`: the expo-modules-core Kotlin DSL port and `PeachExpoRuntime`
|
|
32
32
|
that local Expo Android modules compile against. Owner spec:
|
|
33
33
|
[`specs/peach-kotlin-expo-modules.md`](../../../specs/peach-kotlin-expo-modules.md).
|
|
34
|
+
- `BridgeSources/`: React Native's legacy bridge classes, `PeachBridgeRuntime` and the Android,
|
|
35
|
+
androidx and Play services types an app's own `ReactPackage` Kotlin imports. Owner spec:
|
|
36
|
+
[`specs/peach-kotlin/bridge-modules.md`](../../../specs/peach-kotlin/bridge-modules.md).
|
|
34
37
|
- `CompilerSources/`: the native member compiler plugin and JVM service
|
|
35
38
|
registration. Release producers compile it to `plugin.jar`; clients load that
|
|
36
39
|
jar without compiling or receiving plugin source. `ToolSources/` builds
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peachsim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1744",
|
|
4
4
|
"description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
|
|
5
5
|
"author": "Tamagui LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -357,6 +357,7 @@
|
|
|
357
357
|
"sucrase": "3.35.1",
|
|
358
358
|
"svgpath": "2.6.0",
|
|
359
359
|
"terser": "^5.49.0",
|
|
360
|
+
"wasm-opt": "2.0.1",
|
|
360
361
|
"ws": "^8.18.0"
|
|
361
362
|
},
|
|
362
363
|
"peerDependencies": {
|
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"a2179a0da0db10ec299532f40c183185e8432a1431f3b01ea089c8a431fecd59","file":"node/cli-a2179a0da0db10ec299532f40c183185e8432a1431f3b01ea089c8a431fecd59.cjs"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccount.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
@class ACAccountType, ACAccountCredential;
|
|
12
|
+
|
|
13
|
+
// The ACAccount class represents an account stored on the system.
|
|
14
|
+
// Accounts are created not bound to any store. Once an account is saved it belongs
|
|
15
|
+
// to the store it was saved into.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
19
|
+
|
|
20
|
+
@interface ACAccount : NSObject
|
|
21
|
+
|
|
22
|
+
// Creates a new account object with a specified account type.
|
|
23
|
+
- (instancetype)initWithAccountType:(ACAccountType *)type NS_DESIGNATED_INITIALIZER;
|
|
24
|
+
|
|
25
|
+
// This identifier can be used to look up the account using [ACAccountStore accountWithIdentifier:].
|
|
26
|
+
@property (readonly, weak, NS_NONATOMIC_IOSONLY) NSString *identifier;
|
|
27
|
+
|
|
28
|
+
// Accounts are stored with a particular account type. All available accounts of a particular type
|
|
29
|
+
// can be looked up using [ACAccountStore accountsWithAccountType:]. When creating new accounts
|
|
30
|
+
// this property is required.
|
|
31
|
+
@property (strong, NS_NONATOMIC_IOSONLY) ACAccountType *accountType;
|
|
32
|
+
|
|
33
|
+
// A human readable description of the account.
|
|
34
|
+
// This property is only available to applications that have been granted access to the account by the user.
|
|
35
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *accountDescription;
|
|
36
|
+
|
|
37
|
+
// The username for the account. This property can be set and saved during account creation. The username is
|
|
38
|
+
// only available to applications that have been granted access to the account by the user.
|
|
39
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *username;
|
|
40
|
+
|
|
41
|
+
// For accounts that support it (currently only Facebook accounts), you can get the user's full name for display
|
|
42
|
+
// purposes without having to talk to the network.
|
|
43
|
+
@property (readonly, NS_NONATOMIC_IOSONLY) NSString *userFullName API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(macos);
|
|
44
|
+
|
|
45
|
+
// The credential for the account. This property can be set and saved during account creation. It is
|
|
46
|
+
// inaccessible once the account has been saved.
|
|
47
|
+
//
|
|
48
|
+
// Unless an error occurs in loading, calling account.credential will always return a non-nil ACAccountCredential object,
|
|
49
|
+
// which will have 0 to n credential items set on it. Setting this property to nil will not unset any credential items saved
|
|
50
|
+
// to this account's credential. See ACAccountCredential.h for details on setting, getting, and clearing credential items.
|
|
51
|
+
//
|
|
52
|
+
// WARNING: Backed by a synchronous xpc call to accountsd, not appropriate to call on a UI Application's main thread
|
|
53
|
+
@property (strong, NS_NONATOMIC_IOSONLY) ACAccountCredential *credential;
|
|
54
|
+
|
|
55
|
+
@end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccountCredential.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
// An existing credential may be provided when creating an account.
|
|
12
|
+
// For example, to create a system Twitter account using an existing OAuth token/secret pair:
|
|
13
|
+
//
|
|
14
|
+
// 1. Create the new account instance.
|
|
15
|
+
// 2. Set the account type.
|
|
16
|
+
// 3. Create an ACAccountCredential using your existing OAuth token/secret and set the account's credential property.
|
|
17
|
+
// 4. Save the account.
|
|
18
|
+
//
|
|
19
|
+
// The account will be validated and saved as a system account.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
23
|
+
|
|
24
|
+
@interface ACAccountCredential : NSObject
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWithOAuthToken:(NSString *)token tokenSecret:(NSString *)secret;
|
|
27
|
+
|
|
28
|
+
- (instancetype)initWithOAuth2Token:(NSString *)token
|
|
29
|
+
refreshToken:(NSString *)refreshToken
|
|
30
|
+
expiryDate:(NSDate *)expiryDate;
|
|
31
|
+
|
|
32
|
+
// This property is only valid for OAuth2 credentials
|
|
33
|
+
@property (copy, nonatomic) NSString *oauthToken;
|
|
34
|
+
|
|
35
|
+
@end
|