peachsim 0.1.1808 → 0.1.1812
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 -2
- package/cli/app-bundle-resources.ts +15 -2
- package/cli/cloud-box-artifact.ts +115 -0
- package/cli/cloud-client.ts +148 -76
- package/cli/cloud-dispatch.ts +4 -4
- package/cli/cloud-session.ts +60 -22
- package/cli/commands/box.ts +8 -2
- package/cli/commands/compat.ts +7 -4
- package/cli/commands/control.ts +69 -3
- package/cli/commands/coverage.ts +14 -4
- package/cli/commands/daemon.ts +41 -0
- package/cli/commands/no-bridge-hint.ts +9 -0
- package/cli/commands/package.ts +31 -56
- package/cli/commands/platform.ts +71 -60
- package/cli/commands/preview.ts +73 -24
- package/cli/commands/record.ts +10 -2
- package/cli/commands/screenshot.ts +17 -60
- package/cli/commands/setup.ts +3 -1
- package/cli/commands/three-mode.ts +22 -12
- package/cli/commands/upload.ts +2 -1
- package/cli/desktop-companion.ts +6 -1
- package/cli/drivers/desktop.ts +4 -1
- package/cli/main.ts +12 -2
- package/cli/metro-bundle-assets.ts +14 -4
- package/cli/outbound-endpoints.ts +7 -3
- package/cli/output-redaction.ts +38 -0
- package/cli/privacy.ts +2 -2
- package/cli/recording-access.ts +5 -0
- package/cli/remote-project-bundle.ts +83 -0
- package/cli/shell-init.ts +7 -11
- package/cli/telemetry.ts +41 -4
- package/cli/usage-error.ts +3 -0
- package/cli/ws-bridge.ts +42 -6
- 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 +42897 -40755
- package/dist-lib/capture-contract.cjs +7 -8
- package/dist-lib/capture-contract.mjs +7 -8
- 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 +13 -7
- package/dist-lib/dev-bundle-resolution.cjs +10 -4
- package/dist-lib/expo-swift-bundle.cjs +15889 -15553
- package/dist-lib/expo-swift-metadata.cjs +2 -1
- package/dist-lib/expo-swift-metadata.mjs +2 -1
- package/dist-lib/home-paths.cjs +2 -33
- package/dist-lib/host/bridge-host.cjs +20891 -18714
- package/dist-lib/host/fetch-proxy-handler.cjs +10 -11
- 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 +620 -553
- 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 +57 -28
- package/dist-lib/native-app-identity-project.cjs +47 -14
- package/dist-lib/native-app-identity-project.mjs +55 -20
- 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 +27 -26
- package/dist-lib/public-origins-lib.json +104 -81
- 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 +30700 -24410
- package/dist-lib/swift-compile.cjs +336 -222
- package/dist-lib/swift-compile.mjs +378 -263
- package/dist-lib/swift-package.cjs +19 -7
- package/dist-lib/swift-package.mjs +16 -6
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +49 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +19213 -18937
- package/dist-lib/vite.cjs +11 -12
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -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/CoreTelephony.framework/Headers/CTCall.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +12 -50
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +2 -8
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +62 -0
- package/sdk/ios/usr/include/dispatch.modulemap +22 -0
- package/sdk/ios/usr/include/module.modulemap +8 -3
- package/sdk/ios/usr/include/net/if.h +24 -0
- package/sdk/ios/usr/include/sys/time.h +1 -1
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/sdk/ios/wasm/include/fcntl.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +2 -0
- package/sdk/ios/wasm/include/unistd.h +2 -2
- package/skills/contrast/SKILL.md +2 -2
- package/src/bundle-channel.mjs +9 -72
- package/src/capture-contract.ts +12 -9
- package/src/desktop-host-delivery.ts +16 -2
- package/src/dev-bundle-resolution.ts +12 -3
- package/src/expo-native-workspace.ts +113 -46
- package/src/expo-swift-host.ts +17 -12
- package/src/expo-swift-ready.ts +4 -1
- package/src/expoSwiftContract.ts +1 -0
- package/src/home-paths.ts +4 -48
- package/src/host/bridge-host.ts +1 -0
- package/src/installed-native-libraries.ts +2 -8
- package/src/metro-project-root.ts +2 -1
- package/src/native-bundles.ts +122 -0
- package/src/native-static-libraries.ts +65 -8
- package/src/nitro-adapter.lock.json +272 -272
- package/src/nitro-bundle.ts +2 -2
- package/src/nitro-compile.ts +68 -28
- package/src/nitro-source.ts +24 -6
- package/src/nitro-superset.lock.json +94 -34
- package/src/nitroContract.ts +3 -0
- package/src/podspec-sources.ts +1966 -0
- package/src/storageSnapshotContract.ts +40 -0
- package/src/swift-compile.ts +77 -26
- package/src/swift-design-time.ts +18 -1
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-distribution.ts +9 -6
- package/src/swift-host.ts +1 -2
- package/src/swift-link-roots.ts +13 -2
- package/src/swift-objc-compile.ts +12 -0
- package/src/swift-objc-standin.ts +321 -114
- package/src/swift-package-manifest.ts +4 -3
- package/src/swift-package.ts +31 -4
- package/src/swift-root-lock.ts +11 -0
- package/src/swift-shared-sdk.ts +10 -9
- package/src/swift-source-pods.ts +2 -2
- package/src/swift-standins.ts +40 -143
- package/src/swift-toolchain.ts +59 -0
- package/src/swift-wasm-prune.ts +53 -21
- package/src/turbo-bundle.ts +4 -5
- package/src/turbo-codegen-intake.ts +111 -108
- package/src/turbo-compile.ts +63 -33
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +171 -76
- package/src/wasm-optimize.ts +31 -2
- package/src/xcode-project.ts +65 -15
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -185,7 +185,7 @@ var import_node_module = require("node:module");
|
|
|
185
185
|
var import_node_path2 = require("node:path");
|
|
186
186
|
|
|
187
187
|
// runtime-companion.json
|
|
188
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
188
|
+
var runtime_companion_default = { abi: 1, sha256: "77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7", file: "node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs" };
|
|
189
189
|
|
|
190
190
|
// src/runtime-assets.ts
|
|
191
191
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -257,7 +257,7 @@ function readDaemonLockfile() {
|
|
|
257
257
|
const bytesRead = import_node_fs.default.readSync(fd, buf, 0, DAEMON_LOCKFILE_MAX_BYTES, 0);
|
|
258
258
|
const raw = buf.subarray(0, bytesRead).toString("utf8");
|
|
259
259
|
const parsed = JSON.parse(raw);
|
|
260
|
-
if (parsed && parsed.schema === 1 && typeof parsed.pid === "number" && typeof parsed.bridgePort === "number" && typeof parsed.runtimePort === "number" && typeof parsed.startedAt === "number" && typeof parsed.heartbeatAt === "number" && (parsed.servedRuntimes === void 0 || Array.isArray(parsed.servedRuntimes) && parsed.servedRuntimes.every((version) => typeof version === "string"))) {
|
|
260
|
+
if (parsed && parsed.schema === 1 && typeof parsed.pid === "number" && typeof parsed.bridgePort === "number" && typeof parsed.runtimePort === "number" && typeof parsed.startedAt === "number" && typeof parsed.heartbeatAt === "number" && (parsed.cliVersion === void 0 || typeof parsed.cliVersion === "string") && (parsed.servedRuntimes === void 0 || Array.isArray(parsed.servedRuntimes) && parsed.servedRuntimes.every((version) => typeof version === "string"))) {
|
|
261
261
|
return parsed;
|
|
262
262
|
}
|
|
263
263
|
return null;
|
|
@@ -1007,7 +1007,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1007
1007
|
"clevertap-react-native",
|
|
1008
1008
|
"expo-dynamic-app-icon",
|
|
1009
1009
|
"expo-health-connect",
|
|
1010
|
-
"expo-in-app-updates",
|
|
1011
1010
|
"expo-mesh-gradient",
|
|
1012
1011
|
"expo-modules-core",
|
|
1013
1012
|
"expo-superwall",
|
|
@@ -1026,7 +1025,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1026
1025
|
"react-native-app-clip",
|
|
1027
1026
|
"react-native-avoid-softinput",
|
|
1028
1027
|
"react-native-azure-auth",
|
|
1029
|
-
"react-native-background-actions",
|
|
1030
1028
|
"react-native-bare-kit",
|
|
1031
1029
|
"react-native-bluetooth-classic",
|
|
1032
1030
|
"react-native-bluetooth-state-manager",
|
|
@@ -1712,6 +1710,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
1712
1710
|
"react-native-installed-app-checker",
|
|
1713
1711
|
"react-native-is-detox",
|
|
1714
1712
|
"react-native-is-keyboard-connected",
|
|
1713
|
+
"react-native-is-maestro",
|
|
1715
1714
|
"react-native-keyboard-input",
|
|
1716
1715
|
"react-native-khipu",
|
|
1717
1716
|
"react-native-klarna-inapp-sdk",
|
|
@@ -3756,12 +3755,6 @@ var COMPAT_STUBS = {
|
|
|
3756
3755
|
runtimeTier: "none",
|
|
3757
3756
|
buildResolvers: ["vite"]
|
|
3758
3757
|
},
|
|
3759
|
-
expoInAppUpdates: {
|
|
3760
|
-
specifier: "expo-in-app-updates",
|
|
3761
|
-
stubFile: "noop-sdks-extra/expo-in-app-updates.ts",
|
|
3762
|
-
runtimeTier: "none",
|
|
3763
|
-
buildResolvers: ["vite"]
|
|
3764
|
-
},
|
|
3765
3758
|
expoSuperwall: {
|
|
3766
3759
|
specifier: "expo-superwall",
|
|
3767
3760
|
stubFile: "noop-sdks-extra/expo-superwall.ts",
|
|
@@ -4245,6 +4238,12 @@ async function fetchDevManifest(baseUrl, pageOrigin, options = {}) {
|
|
|
4245
4238
|
}
|
|
4246
4239
|
}
|
|
4247
4240
|
}
|
|
4241
|
+
async function metroRequestFailure(request, url, response) {
|
|
4242
|
+
const detail = (await response.text()).trim().slice(0, 2e3);
|
|
4243
|
+
return new Error(
|
|
4244
|
+
`Metro ${request} request failed: HTTP ${response.status} at ${url}/${detail ? `: ${detail}` : ""}`
|
|
4245
|
+
);
|
|
4246
|
+
}
|
|
4248
4247
|
|
|
4249
4248
|
// src/kotlinDiscoveryContract.ts
|
|
4250
4249
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4746,7 +4745,7 @@ async function resolveMetroProjectRoot(bundleUrl, manifestProjectRoot, options =
|
|
|
4746
4745
|
}
|
|
4747
4746
|
if (typeof root === "string" && root.length > 0) return root;
|
|
4748
4747
|
} else if (res.status !== 404 && res.status !== 405) {
|
|
4749
|
-
throw
|
|
4748
|
+
throw await metroRequestFailure("project root", origin, res);
|
|
4750
4749
|
}
|
|
4751
4750
|
if (servedManifest || !metroRunning) return null;
|
|
4752
4751
|
const port = Number(new URL(origin).port);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -135,6 +135,10 @@ export interface TimingConfig {
|
|
|
135
135
|
delay?: number;
|
|
136
136
|
useNativeDriver?: boolean;
|
|
137
137
|
graph?: boolean;
|
|
138
|
+
keyframes?: {
|
|
139
|
+
inputRange: number[];
|
|
140
|
+
outputRange: number[];
|
|
141
|
+
};
|
|
138
142
|
}
|
|
139
143
|
export declare function setLockstepCaptureActive(active: boolean): void;
|
|
140
144
|
export declare function timing(value: AnimatedValue, config: TimingConfig): Animation;
|
|
@@ -124,6 +124,7 @@ export declare function isNativeAnimationGraphNode(value: unknown, limits: {
|
|
|
124
124
|
maxDepth: number;
|
|
125
125
|
maxCollection: number;
|
|
126
126
|
}, depth?: number): value is NativeAnimationGraphNode;
|
|
127
|
+
export declare function samplePiecewiseLinear(input: number, inputRange: number[], outputRange: number[], clamp: boolean): number;
|
|
127
128
|
export declare function cubicBezierAxisAt(t: number, p1: number, p2: number): number;
|
|
128
129
|
export declare const CUBIC_BEZIER_IDENTITY_X1: number;
|
|
129
130
|
export declare const CUBIC_BEZIER_IDENTITY_X2: number;
|
|
@@ -3,3 +3,4 @@ export declare function expoConfigFromManifest(manifest: unknown): Record<string
|
|
|
3
3
|
export declare function resolvedExpoAppIconUrl(config: Record<string, unknown> | null, platform: string, bundleUrl: string): string | undefined;
|
|
4
4
|
export declare function setExpoAppIconArtwork(artwork: NativeAppIconArtwork | undefined): void;
|
|
5
5
|
export declare function getExpoAppIconArtwork(): NativeAppIconArtwork | undefined;
|
|
6
|
+
export declare function presentLoopbackHostMetadata(manifest: unknown): unknown;
|
|
@@ -362,7 +362,7 @@ export declare function looksLikeSvgBytes(bytes: Uint8Array): boolean;
|
|
|
362
362
|
export declare const queuedImageLoads: Set<SootSimNode>;
|
|
363
363
|
export declare function queueImageLoad(node: SootSimNode): void;
|
|
364
364
|
export declare function kickQueuedImageLoads(): void;
|
|
365
|
-
export declare function hasImageLoadInFlight(): boolean;
|
|
365
|
+
export declare function hasImageLoadInFlight(root?: SootSimNode): boolean;
|
|
366
366
|
export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext): void;
|
|
367
367
|
export declare function drawsLiveImage(node: SootSimNode): boolean;
|
|
368
368
|
export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
|
|
@@ -252,6 +252,13 @@ export interface WorkletHostValueUpdate {
|
|
|
252
252
|
}
|
|
253
253
|
export declare function registerWorkletHostValueCodec<T extends object, D>(name: string, codec: WorkletHostValueCodec<T, D>): void;
|
|
254
254
|
export declare function markWorkletHostValue<T extends object>(target: T, codec: string): T;
|
|
255
|
+
export interface PackedWorkletHostValue {
|
|
256
|
+
codec: string;
|
|
257
|
+
data: unknown;
|
|
258
|
+
}
|
|
259
|
+
export declare function isWorkletHostValue(value: unknown): value is object;
|
|
260
|
+
export declare function packWorkletHostValue(value: object, carrier?: WorkletRuntime): PackedWorkletHostValue;
|
|
261
|
+
export declare function unpackWorkletHostValue(packed: PackedWorkletHostValue): object;
|
|
255
262
|
export interface CustomSerializableRegistration {
|
|
256
263
|
name: string;
|
|
257
264
|
determine: (value: object) => boolean;
|
|
@@ -743,7 +750,7 @@ export declare class WorkletRuntime {
|
|
|
743
750
|
readDecodedSlot(id: number): number | null | undefined;
|
|
744
751
|
private storeSlot;
|
|
745
752
|
writeSlot(id: number, value: unknown, skipNotify?: boolean): boolean;
|
|
746
|
-
writeSlotsSeqlocked(versionSlot: number, writes: readonly number[], notifyLocal?: boolean, notifyPeer?: boolean): void;
|
|
753
|
+
writeSlotsSeqlocked(versionSlot: number, writes: readonly number[], notifyLocal?: boolean, notifyPeer?: boolean, wake?: boolean): void;
|
|
747
754
|
readDemandEpoch(): number;
|
|
748
755
|
waitForSlotDemand(expected: number): PromiseLike<unknown> | null;
|
|
749
756
|
private bumpDemandEpoch;
|
|
@@ -6,7 +6,8 @@ export interface SootSimElectronBridge {
|
|
|
6
6
|
homeAppStorage?(bundleUrl: string): Promise<PeachHomeStorageValue[]>;
|
|
7
7
|
captureScreen(full?: boolean): Promise<string | null>;
|
|
8
8
|
captureVideo(): Promise<unknown>;
|
|
9
|
-
presentationMode?: 'window' | 'grid';
|
|
9
|
+
presentationMode?: 'window' | 'grid' | 'workspace';
|
|
10
|
+
onPresentationModeChange?(callback: () => void): () => void;
|
|
10
11
|
getPlatform?(): string;
|
|
11
12
|
shouldOfferCliInstall?(): Promise<boolean>;
|
|
12
13
|
installCli?(): Promise<{
|
|
@@ -117,6 +117,7 @@ export interface TabBarMinimizeState {
|
|
|
117
117
|
export interface BottomTabBarProps {
|
|
118
118
|
tabs: readonly BottomTabBarItem[];
|
|
119
119
|
activeIndex: number;
|
|
120
|
+
nativeFamily?: 'uikit' | 'swiftui';
|
|
120
121
|
hidden?: boolean;
|
|
121
122
|
visibilityAnimationEnabled?: boolean;
|
|
122
123
|
onTabPress: (index: number) => boolean | void;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7","file":"node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs"}
|
|
@@ -19,7 +19,7 @@ CORETELEPHONY_EXTERN NSString * const CTCallStateConnected __OSX_AVAILABLE_BUT_
|
|
|
19
19
|
CORETELEPHONY_EXTERN NSString * const CTCallStateDisconnected __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_NA, __MAC_NA, __IPHONE_4_0, __IPHONE_10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCall.h> properties");
|
|
20
20
|
|
|
21
21
|
CORETELEPHONY_CLASS_DEPRECATED(4_0, 10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCall.h> properties")
|
|
22
|
-
@interface CTCall : NSObject
|
|
22
|
+
PEACH_SWIFT_CLASS(CoreTelephony) @interface CTCall : NSObject
|
|
23
23
|
{
|
|
24
24
|
@private
|
|
25
25
|
NSString *_callState;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
NS_ASSUME_NONNULL_BEGIN
|
|
17
17
|
|
|
18
18
|
CORETELEPHONY_CLASS_DEPRECATED(4_0, 10_0, "Obsolete and will be a useless stub before final removal. Replaced by <CallKit/CXCallObserver.h>")
|
|
19
|
-
@interface CTCallCenter : NSObject
|
|
19
|
+
PEACH_SWIFT_CLASS(CoreTelephony) @interface CTCallCenter : NSObject
|
|
20
20
|
|
|
21
21
|
/*
|
|
22
22
|
* currentCalls
|
|
@@ -33,7 +33,7 @@ API_AVAILABLE(ios(12.1)) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(m
|
|
|
33
33
|
@end
|
|
34
34
|
|
|
35
35
|
CORETELEPHONY_CLASS_AVAILABLE(7_0) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(macos, tvos)
|
|
36
|
-
@interface CTSubscriber : NSObject
|
|
36
|
+
PEACH_SWIFT_CLASS(CoreTelephony) @interface CTSubscriber : NSObject
|
|
37
37
|
|
|
38
38
|
/*
|
|
39
39
|
* carrierToken
|
package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
NS_ASSUME_NONNULL_BEGIN
|
|
17
17
|
|
|
18
18
|
CORETELEPHONY_CLASS_AVAILABLE(6_0) API_UNAVAILABLE(macCatalyst, watchos) API_UNAVAILABLE(macos, tvos)
|
|
19
|
-
@interface CTSubscriberInfo : NSObject
|
|
19
|
+
PEACH_SWIFT_CLASS(CoreTelephony) @interface CTSubscriberInfo : NSObject
|
|
20
20
|
|
|
21
21
|
+ (NSArray<CTSubscriber *> *)subscribers
|
|
22
22
|
API_AVAILABLE(ios(12.1))
|
|
@@ -804,7 +804,7 @@ typedef NS_OPTIONS(NSUInteger, NSBinarySearchingOptions) {
|
|
|
804
804
|
- (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag;
|
|
805
805
|
|
|
806
806
|
/* Reads array stored in NSPropertyList format from the specified url. */
|
|
807
|
-
- (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
807
|
+
- (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_REFINED_FOR_SWIFT;
|
|
808
808
|
/* Reads array stored in NSPropertyList format from the specified url. */
|
|
809
809
|
+ (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_SWIFT_UNAVAILABLE("Use initializer instead");
|
|
810
810
|
|
|
@@ -559,7 +559,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
559
559
|
/// The dictionary representation in the file identified by `url` must contain only property list objects (``NSString``, ``NSData``, ``NSDate``, ``NSNumber``, ``NSArray``, or ``NSDictionary`` objects). For more details, see [Property List Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html#//apple_ref/doc/uid/10000048i). The objects contained by this dictionary are immutable, even if the dictionary is mutable.
|
|
560
560
|
///
|
|
561
561
|
/// In Swift, this initializer throws if there is an error loading the URL, or if the contents of the resource are an invalid representation of a dictionary.
|
|
562
|
-
- (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
562
|
+
- (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) NS_REFINED_FOR_SWIFT;
|
|
563
563
|
|
|
564
564
|
/// Creates a dictionary using the keys and values found in a resource specified by a given URL.
|
|
565
565
|
///
|
|
@@ -11,7 +11,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
11
11
|
|
|
12
12
|
/// An immutable collection of values representing different aspects of an item for an extension to act upon.
|
|
13
13
|
API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
|
|
14
|
-
@interface NSExtensionItem : NSObject<NSCopying, NSSecureCoding>
|
|
14
|
+
PEACH_SWIFT_CLASS(PeachFoundation) @interface NSExtensionItem : NSObject<NSCopying, NSSecureCoding>
|
|
15
15
|
|
|
16
16
|
/// An optional title for the item.
|
|
17
17
|
@property(nullable, copy, NS_NONATOMIC_IOSONLY) NSAttributedString *attributedTitle;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
|
|
10
|
+
#import <AVFoundation/AVFoundation.h>
|
|
11
|
+
#import <AVFoundation/AVMediaSelectionGroup.h>
|
|
12
|
+
#import <AVFoundation/AVMediaSelection.h>
|
|
13
|
+
#import <AVFoundation/AVMediaFormat.h>
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
@class MPNowPlayingInfoLanguageOption, MPNowPlayingInfoLanguageOptionGroup;
|
|
18
|
+
|
|
19
|
+
/// Category for creating language options from AV types
|
|
20
|
+
@interface AVMediaSelectionOption (MPNowPlayingInfoLanguageOptionAdditions)
|
|
21
|
+
|
|
22
|
+
/// Will create a language option from the AVMediaSelectionOption
|
|
23
|
+
/// Returns nil if the AVMediaSelectionOption does not represent an Audible or Legible selection option.
|
|
24
|
+
- (nullable MPNowPlayingInfoLanguageOption *)makeNowPlayingInfoLanguageOption;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
// -----------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
@interface AVMediaSelectionGroup (MPNowPlayingInfoLanguageOptionAdditions)
|
|
31
|
+
|
|
32
|
+
/// Will create a language option group from the AVMediaSelectionGroup
|
|
33
|
+
/// Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing
|
|
34
|
+
/// Audible or Legible selection options will be ignored.
|
|
35
|
+
- (MPNowPlayingInfoLanguageOptionGroup *)makeNowPlayingInfoLanguageOptionGroup;
|
|
36
|
+
|
|
37
|
+
@end
|
|
38
|
+
|
|
39
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AVPlayerItem+MPAdditions.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2022 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <AVFoundation/AVPlayerItem.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
MP_UNAVAILABLE_BEGIN(watchos, macos)
|
|
14
|
+
|
|
15
|
+
@interface AVPlayerItem (MPAdditions)
|
|
16
|
+
|
|
17
|
+
/// The current now playing info for the player item.
|
|
18
|
+
/// Setting the info to nil will clear it.
|
|
19
|
+
@property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *nowPlayingInfo MP_API(ios(16.0), tvos(16.0));
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
MP_UNAVAILABLE_END
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
26
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPContentItem.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class MPMediaItemArtwork;
|
|
14
|
+
|
|
15
|
+
/// MPContentItem represents high-level metadata for a particular media item for
|
|
16
|
+
/// representation outside the client application. Examples of media items that a
|
|
17
|
+
/// developer might want to represent include song files, streaming audio URLs,
|
|
18
|
+
/// or radio stations.
|
|
19
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2))
|
|
20
|
+
API_UNAVAILABLE(watchos)
|
|
21
|
+
@interface MPContentItem : NSObject
|
|
22
|
+
|
|
23
|
+
/// Designated initializer. A unique identifier is required to identify the item
|
|
24
|
+
/// for later use.
|
|
25
|
+
- (instancetype)initWithIdentifier:(NSString *)identifier NS_DESIGNATED_INITIALIZER;
|
|
26
|
+
|
|
27
|
+
/// A unique identifier for this content item. (Required)
|
|
28
|
+
@property (nonatomic, copy, readonly) NSString *identifier;
|
|
29
|
+
|
|
30
|
+
/// A title for this item. Usually this would be the track name, if representing
|
|
31
|
+
/// a song, the episode name of a podcast, etc.
|
|
32
|
+
@property (nonatomic, copy, nullable) NSString *title;
|
|
33
|
+
|
|
34
|
+
/// A subtitle for this item. If this were representing a song, this would
|
|
35
|
+
/// usually be the artist or composer.
|
|
36
|
+
@property (nonatomic, copy, nullable) NSString *subtitle;
|
|
37
|
+
|
|
38
|
+
/// Artwork for this item. Examples of artwork for a content item are the album
|
|
39
|
+
/// cover for a song, or a movie poster for a movie.
|
|
40
|
+
@property (nonatomic, strong, nullable) MPMediaItemArtwork *artwork;
|
|
41
|
+
|
|
42
|
+
/// Represents the current playback progress of the item.
|
|
43
|
+
/// 0.0 = not watched/listened/viewed, 1.0 = fully watched/listened/viewed
|
|
44
|
+
/// Default is -1.0 (no progress indicator shown)
|
|
45
|
+
@property (nonatomic, assign) float playbackProgress;
|
|
46
|
+
|
|
47
|
+
/// Represents whether this content item is streaming content, i.e. from the cloud
|
|
48
|
+
/// where the content is not stored locally.
|
|
49
|
+
@property (nonatomic, assign, getter = isStreamingContent) BOOL streamingContent MP_API(ios(10.0), tvos(10.0), macos(10.12.2));
|
|
50
|
+
|
|
51
|
+
/// Represents whether this content item is explicit content
|
|
52
|
+
@property (nonatomic, assign, getter = isExplicitContent) BOOL explicitContent MP_API(ios(10.0), tvos(10.0), macos(10.12.2));
|
|
53
|
+
|
|
54
|
+
/// Represents whether the content item is a container that may contain other
|
|
55
|
+
/// content items, e.g. an album or a playlist.
|
|
56
|
+
@property (nonatomic, assign, getter = isContainer) BOOL container;
|
|
57
|
+
|
|
58
|
+
/// Represents whether the content item is actionable from a playback
|
|
59
|
+
/// perspective. Albums are playable, for example, because selecting an album
|
|
60
|
+
/// for playback means the app should play each song in the album in order. An
|
|
61
|
+
/// example of a content item that may not be playable is a genre, since an app
|
|
62
|
+
/// experience typically doesn't involve selecting an entire genre for playback.
|
|
63
|
+
@property (nonatomic, assign, getter = isPlayable) BOOL playable;
|
|
64
|
+
|
|
65
|
+
@end
|
|
66
|
+
|
|
67
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPError.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
MP_EXTERN NSString * const MPErrorDomain MP_API(ios(9.3), tvos(9.0), watchos(5.0), macos(10.12.2));
|
|
14
|
+
|
|
15
|
+
// error codes for the MPErrorDomain
|
|
16
|
+
typedef NS_ENUM(NSInteger, MPErrorCode) {
|
|
17
|
+
MPErrorUnknown = 0,
|
|
18
|
+
// the user has not granted permission for this request.
|
|
19
|
+
MPErrorPermissionDenied = 1,
|
|
20
|
+
// the user has not enabled this capability
|
|
21
|
+
MPErrorCloudServiceCapabilityMissing = 2,
|
|
22
|
+
// the device could not connect to the network
|
|
23
|
+
MPErrorNetworkConnectionFailed = 3,
|
|
24
|
+
// the id could not be found in the current storefront
|
|
25
|
+
MPErrorNotFound = 4,
|
|
26
|
+
// the request is not supported (ex: trying to add items to a smart playlist)
|
|
27
|
+
MPErrorNotSupported = 5,
|
|
28
|
+
// the request was cancelled before it could complete
|
|
29
|
+
MPErrorCancelled MP_API(ios(10.1), tvos(10.1), watchos(5.0), macos(10.14.2)) = 6,
|
|
30
|
+
MPErrorRequestTimedOut MP_API(ios(10.3), tvos(10.3), watchos(5.0), macos(10.14.2)) = 7,
|
|
31
|
+
} MP_API(ios(9.3), tvos(9.0), watchos(5.0), macos(10.14.2));
|
|
32
|
+
|
|
33
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPMediaEntity.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2010 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class MPMediaLibrary;
|
|
14
|
+
|
|
15
|
+
typedef uint64_t MPMediaEntityPersistentID;
|
|
16
|
+
|
|
17
|
+
// An MPMediaEntity represents an abstract member of an MPMediaLibrary.
|
|
18
|
+
// Concrete subclasses are MPMediaItem and MPMediaItemCollection.
|
|
19
|
+
|
|
20
|
+
MP_API(ios(4.2), tvos(14.0))
|
|
21
|
+
API_UNAVAILABLE(watchos, macos)
|
|
22
|
+
@interface MPMediaEntity : NSObject <NSSecureCoding>
|
|
23
|
+
|
|
24
|
+
// Returns YES for properties which can be used to construct MPMediaPropertyPredicates.
|
|
25
|
+
+ (BOOL)canFilterByProperty:(NSString *)property;
|
|
26
|
+
|
|
27
|
+
// Executes a provided block with the fetched values for the given item properties, or nil if no value is available for a property.
|
|
28
|
+
// In some cases, enumerating the values for multiple properties can be more efficient than fetching each individual property with -valueForProperty:.
|
|
29
|
+
- (void)enumerateValuesForProperties:(NSSet<NSString *> *)properties usingBlock:(void (^)(NSString *property, id value, BOOL *stop))block
|
|
30
|
+
MP_API(ios(4.0))
|
|
31
|
+
API_UNAVAILABLE(tvos, watchos, macos);
|
|
32
|
+
|
|
33
|
+
// Read-only support for Objective-C subscripting syntax with MPMediaEntity property constants.
|
|
34
|
+
- (nullable id)objectForKeyedSubscript:(id)key
|
|
35
|
+
MP_API(ios(8.0), tvos(14.0))
|
|
36
|
+
API_UNAVAILABLE(watchos, macos);
|
|
37
|
+
|
|
38
|
+
// Returns the value for the given entity property.
|
|
39
|
+
// MPMediaItem and MPMediaPlaylist have their own properties
|
|
40
|
+
- (nullable id)valueForProperty:(NSString *)property;
|
|
41
|
+
|
|
42
|
+
#pragma mark - Properties
|
|
43
|
+
|
|
44
|
+
MP_EXTERN NSString * const MPMediaEntityPropertyPersistentID // filterable
|
|
45
|
+
MP_API(ios(4.2), tvos(9.0), macos(10.12.2))
|
|
46
|
+
API_UNAVAILABLE(watchos);
|
|
47
|
+
@property (nonatomic, readonly) MPMediaEntityPersistentID persistentID
|
|
48
|
+
MP_API(ios(7.0), tvos(14.0))
|
|
49
|
+
API_UNAVAILABLE(watchos, macos);
|
|
50
|
+
|
|
51
|
+
@end
|
|
52
|
+
|
|
53
|
+
NS_ASSUME_NONNULL_END
|