peachsim 0.1.2391 → 0.1.2393
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/canvas.ts +92 -22
- 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 +22 -24
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +7 -6
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +22 -24
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +6 -5
- 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 +14 -17
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6 -5
- package/dist-lib/native-app-identity-project.cjs +5 -4
- package/dist-lib/native-app-identity-project.mjs +5 -4
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +27 -24
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6 -5
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +34 -6
- package/dist-types/packages/peach-engine/src/render-worker/canvas-item-inspection.d.ts +22 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +13 -6
- package/package.json +1 -1
- package/src/kotlin-host.ts +14 -16
- package/src/xcode-project.ts +4 -2
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -40512,7 +40512,7 @@ var swiftCoverageProvenance;
|
|
|
40512
40512
|
var init_provenance = __esm({
|
|
40513
40513
|
"src/swift-coverage/provenance.ts"() {
|
|
40514
40514
|
"use strict";
|
|
40515
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"
|
|
40515
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
40516
40516
|
}
|
|
40517
40517
|
});
|
|
40518
40518
|
|
|
@@ -66175,7 +66175,8 @@ ${output2}`
|
|
|
66175
66175
|
"IntentDefinitionCompiled",
|
|
66176
66176
|
definition2.split(import_node_path62.default.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
|
|
66177
66177
|
);
|
|
66178
|
-
|
|
66178
|
+
const compiledDefinition = import_node_path62.default.join(compiled, import_node_path62.default.basename(definition2));
|
|
66179
|
+
import_node_fs64.default.rmSync(compiledDefinition, { force: true });
|
|
66179
66180
|
import_node_fs64.default.mkdirSync(compiled, { recursive: true });
|
|
66180
66181
|
(0, import_node_child_process37.execFileSync)(
|
|
66181
66182
|
"xcrun",
|
|
@@ -66195,7 +66196,7 @@ ${output2}`
|
|
|
66195
66196
|
timeout: runScriptTimeoutMs
|
|
66196
66197
|
}
|
|
66197
66198
|
);
|
|
66198
|
-
resources.add(
|
|
66199
|
+
resources.add(compiledDefinition);
|
|
66199
66200
|
projectInputs.add(definition2);
|
|
66200
66201
|
for (const file of walkFiles(output2)) {
|
|
66201
66202
|
allSources.add(file);
|
|
@@ -69949,7 +69950,7 @@ var init_swift_standin_digest = __esm({
|
|
|
69949
69950
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
69950
69951
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
69951
69952
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
69952
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
69953
|
+
STANDIN_SOURCE_DIGEST = true ? "d3634d39daaca9d92cbb73d545026970866d7467c4b2204d29159968b18764f6" : standinSourceDigest();
|
|
69953
69954
|
}
|
|
69954
69955
|
});
|
|
69955
69956
|
|
|
@@ -70444,7 +70445,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
70444
70445
|
servedExpoSwift: () => servedExpoSwift
|
|
70445
70446
|
});
|
|
70446
70447
|
function expoNativeCompilerDigestValue() {
|
|
70447
|
-
return true ? "
|
|
70448
|
+
return true ? "3022ef80adeb28e25608cc6c658c6c03913af6b9402344105bb26fc421feb609" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
70448
70449
|
}
|
|
70449
70450
|
function readSources(value) {
|
|
70450
70451
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -93251,7 +93252,7 @@ var init_nitro_superset = __esm({
|
|
|
93251
93252
|
init_nitroContract();
|
|
93252
93253
|
init_swift_standin_digest();
|
|
93253
93254
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
93254
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
93255
|
+
NITRO_COMPILER_DIGEST = true ? "414025291e65d05d709c42a761fad73cc8cde67ac890990e17b1c20c53fe5fa3" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
93255
93256
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
93256
93257
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
93257
93258
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -104377,7 +104378,6 @@ function kotlinSources(root, skip = SKIP_DIRS) {
|
|
|
104377
104378
|
}
|
|
104378
104379
|
function entrySource(ids) {
|
|
104379
104380
|
return [
|
|
104380
|
-
"import android.os.Build",
|
|
104381
104381
|
"import kotlin.js.JsAny",
|
|
104382
104382
|
"import kotlin.js.Promise",
|
|
104383
104383
|
"import kotlinx.coroutines.Dispatchers",
|
|
@@ -104396,13 +104396,7 @@ function entrySource(ids) {
|
|
|
104396
104396
|
"@OptIn(kotlin.js.ExperimentalJsExport::class)",
|
|
104397
104397
|
"@JsExport",
|
|
104398
104398
|
"fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
104399
|
-
|
|
104400
|
-
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
104401
|
-
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
104402
|
-
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
104403
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
104404
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
104405
|
-
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
104399
|
+
...configureDeviceSource,
|
|
104406
104400
|
"}",
|
|
104407
104401
|
"",
|
|
104408
104402
|
"@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)",
|
|
@@ -104790,13 +104784,7 @@ async function expoKotlinArtifact(root, moduleRoot, origin, modules) {
|
|
|
104790
104784
|
"}",
|
|
104791
104785
|
"",
|
|
104792
104786
|
"@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
104793
|
-
|
|
104794
|
-
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
104795
|
-
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
104796
|
-
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
104797
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
104798
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
104799
|
-
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
104787
|
+
...configureDeviceSource,
|
|
104800
104788
|
" PeachExpoRuntime.configureProcessLocale(locale)",
|
|
104801
104789
|
"}",
|
|
104802
104790
|
"",
|
|
@@ -105379,7 +105367,6 @@ async function compileKotlin(input, origin) {
|
|
|
105379
105367
|
bindings.push(binding.id.name);
|
|
105380
105368
|
}
|
|
105381
105369
|
}
|
|
105382
|
-
if (bindings.length !== 967) throw new Error("pinned Skiko binding count changed");
|
|
105383
105370
|
const names = [
|
|
105384
105371
|
"awaitSkiko",
|
|
105385
105372
|
"loadedWasm",
|
|
@@ -105562,7 +105549,7 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
105562
105549
|
}
|
|
105563
105550
|
return true;
|
|
105564
105551
|
}
|
|
105565
|
-
var import_node_child_process63, import_node_crypto70, import_node_fs129, import_node_module23, import_node_path132, import_node_util21, import_acorn3, run10, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal4, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
|
|
105552
|
+
var import_node_child_process63, import_node_crypto70, import_node_fs129, import_node_module23, import_node_path132, import_node_util21, import_acorn3, run10, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal4, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
|
|
105566
105553
|
var init_kotlin_host = __esm({
|
|
105567
105554
|
"src/kotlin-host.ts"() {
|
|
105568
105555
|
"use strict";
|
|
@@ -105595,6 +105582,17 @@ var init_kotlin_host = __esm({
|
|
|
105595
105582
|
"__tests__",
|
|
105596
105583
|
"scripts"
|
|
105597
105584
|
]);
|
|
105585
|
+
configureDeviceSource = [
|
|
105586
|
+
" android.os.Build.setDevice(model, release, apiLevel)",
|
|
105587
|
+
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
105588
|
+
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
105589
|
+
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
105590
|
+
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) {",
|
|
105591
|
+
' dalvik.system.RuntimeHooks.setTimeZoneIdSupplier { android.os.SystemProperties.get("persist.sys.timezone") }',
|
|
105592
|
+
" } else {",
|
|
105593
|
+
" java.util.TimeZone.setDefault(null)",
|
|
105594
|
+
" }"
|
|
105595
|
+
];
|
|
105598
105596
|
BUILD_FORMAT = 22;
|
|
105599
105597
|
builds = /* @__PURE__ */ new Map();
|
|
105600
105598
|
toolScans = /* @__PURE__ */ new Map();
|
|
@@ -118515,6 +118513,7 @@ var init_meta = __esm({
|
|
|
118515
118513
|
"peach canvas freeze <id>",
|
|
118516
118514
|
"peach canvas live <id>",
|
|
118517
118515
|
"peach canvas camera --at x,y --scale <n>",
|
|
118516
|
+
"peach canvas camera --path <file>",
|
|
118518
118517
|
"peach canvas remove <id | map name>",
|
|
118519
118518
|
"peach canvas list",
|
|
118520
118519
|
"peach canvas push",
|
|
@@ -118555,6 +118554,10 @@ var init_meta = __esm({
|
|
|
118555
118554
|
),
|
|
118556
118555
|
option("--center x,y", "view: the canvas point to center"),
|
|
118557
118556
|
option("--scale <n>", "zoom for view --center or camera"),
|
|
118557
|
+
option(
|
|
118558
|
+
"--path <file>",
|
|
118559
|
+
"camera keyframes as a JSON array of {ms,x,y,scale}, starting at 0 ms"
|
|
118560
|
+
),
|
|
118558
118561
|
option("--file <path>", "working file, defaults to peach-canvas.json")
|
|
118559
118562
|
],
|
|
118560
118563
|
examples: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -26946,7 +26946,7 @@ var import_node_fs35 = require("node:fs");
|
|
|
26946
26946
|
var import_node_path35 = require("node:path");
|
|
26947
26947
|
|
|
26948
26948
|
// src/swift-coverage/provenance.ts
|
|
26949
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"
|
|
26949
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
26950
26950
|
|
|
26951
26951
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
26952
26952
|
var import_node_fs34 = require("node:fs");
|
|
@@ -31752,7 +31752,8 @@ ${output2}`
|
|
|
31752
31752
|
"IntentDefinitionCompiled",
|
|
31753
31753
|
definition2.split(import_node_path41.default.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
|
|
31754
31754
|
);
|
|
31755
|
-
|
|
31755
|
+
const compiledDefinition = import_node_path41.default.join(compiled, import_node_path41.default.basename(definition2));
|
|
31756
|
+
import_node_fs40.default.rmSync(compiledDefinition, { force: true });
|
|
31756
31757
|
import_node_fs40.default.mkdirSync(compiled, { recursive: true });
|
|
31757
31758
|
(0, import_node_child_process24.execFileSync)(
|
|
31758
31759
|
"xcrun",
|
|
@@ -31772,7 +31773,7 @@ ${output2}`
|
|
|
31772
31773
|
timeout: runScriptTimeoutMs
|
|
31773
31774
|
}
|
|
31774
31775
|
);
|
|
31775
|
-
resources.add(
|
|
31776
|
+
resources.add(compiledDefinition);
|
|
31776
31777
|
projectInputs.add(definition2);
|
|
31777
31778
|
for (const file of walkFiles(output2)) {
|
|
31778
31779
|
allSources.add(file);
|
|
@@ -34139,7 +34140,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
34139
34140
|
return hash.digest("hex");
|
|
34140
34141
|
}
|
|
34141
34142
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34142
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34143
|
+
var STANDIN_SOURCE_DIGEST = true ? "d3634d39daaca9d92cbb73d545026970866d7467c4b2204d29159968b18764f6" : standinSourceDigest();
|
|
34143
34144
|
|
|
34144
34145
|
// src/swift-standins.ts
|
|
34145
34146
|
var import_node_child_process32 = require("node:child_process");
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3244
3244
|
var init_swift_standin_digest = __esm({
|
|
3245
3245
|
"src/swift-standin-digest.ts"() {
|
|
3246
3246
|
"use strict";
|
|
3247
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3247
|
+
STANDIN_SOURCE_DIGEST = true ? "d3634d39daaca9d92cbb73d545026970866d7467c4b2204d29159968b18764f6" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -3715,7 +3715,7 @@ var swiftCoverageProvenance;
|
|
|
3715
3715
|
var init_provenance = __esm({
|
|
3716
3716
|
"src/swift-coverage/provenance.ts"() {
|
|
3717
3717
|
"use strict";
|
|
3718
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"
|
|
3718
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
3719
3719
|
}
|
|
3720
3720
|
});
|
|
3721
3721
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2393 | (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;
|
|
@@ -177,6 +177,7 @@ export type CanvasMapData = {
|
|
|
177
177
|
labelSize?: number;
|
|
178
178
|
artboardControls: 'play' | 'none';
|
|
179
179
|
panPointers: 1 | 2;
|
|
180
|
+
moveItems?: boolean;
|
|
180
181
|
tapToSelect?: boolean;
|
|
181
182
|
liveScreenId?: string;
|
|
182
183
|
selectedScreenId?: string;
|
|
@@ -185,6 +186,7 @@ export type CanvasMapData = {
|
|
|
185
186
|
view?: {
|
|
186
187
|
id: string;
|
|
187
188
|
transform: CanvasMapTransform;
|
|
189
|
+
screenId?: string;
|
|
188
190
|
};
|
|
189
191
|
};
|
|
190
192
|
export type CanvasMapTransform = {
|
|
@@ -192,6 +194,24 @@ export type CanvasMapTransform = {
|
|
|
192
194
|
y: number;
|
|
193
195
|
scale: number;
|
|
194
196
|
};
|
|
197
|
+
export type CanvasMapInspectTarget = {
|
|
198
|
+
screenId: string;
|
|
199
|
+
query: import('../../render-worker/canvas-item-inspection.d.ts').CanvasItemInspectQuery;
|
|
200
|
+
};
|
|
201
|
+
export type CanvasMapInspection = import('../../render-worker/canvas-item-inspection.d.ts').CanvasItemInspection & {
|
|
202
|
+
screenId: string;
|
|
203
|
+
};
|
|
204
|
+
export type CanvasMapInspectRequest = {
|
|
205
|
+
x: number;
|
|
206
|
+
y: number;
|
|
207
|
+
} | {
|
|
208
|
+
screenId: string;
|
|
209
|
+
query: import('../../render-worker/canvas-item-inspection.d.ts').CanvasItemEdit;
|
|
210
|
+
};
|
|
211
|
+
export type CanvasMapInspectCommand = CanvasMapInspectRequest & {
|
|
212
|
+
kind: 'inspect-item';
|
|
213
|
+
requestId: number;
|
|
214
|
+
};
|
|
195
215
|
export type CanvasMapPanLimits = {
|
|
196
216
|
minX: number;
|
|
197
217
|
maxX: number;
|
|
@@ -220,6 +240,9 @@ export type CanvasMapCommand = 'fit' | 'actual-size' | {
|
|
|
220
240
|
scale: number;
|
|
221
241
|
animate?: boolean;
|
|
222
242
|
} | {
|
|
243
|
+
kind: 'view-screen';
|
|
244
|
+
screenId: string;
|
|
245
|
+
} | CanvasMapInspectCommand | {
|
|
223
246
|
kind: 'enter';
|
|
224
247
|
screenId: string | null;
|
|
225
248
|
};
|
|
@@ -228,15 +251,20 @@ export declare function getCanvasMapData(): CanvasMapData;
|
|
|
228
251
|
export declare function subscribeCanvasMapData(listener: () => void): () => void;
|
|
229
252
|
export declare function setCanvasMapData(next: CanvasMapData): void;
|
|
230
253
|
export declare function reportCanvasMapDataApplied(rev: CanvasMapData['rev']): void;
|
|
254
|
+
export declare function reportCanvasMapInspectTarget(requestId: number, target: CanvasMapInspectTarget | null): void;
|
|
231
255
|
export declare function reportCanvasMapTransform(transform: CanvasMapTransform, limits?: CanvasMapPanLimits): void;
|
|
232
256
|
export declare function reportCanvasMapTap(tap: CanvasMapTap): void;
|
|
233
257
|
export declare function reportCanvasMapSelection(screenId: string | null): void;
|
|
234
|
-
export
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
258
|
+
export type CanvasMapMove = {
|
|
259
|
+
positions: {
|
|
260
|
+
screenId: string;
|
|
261
|
+
x: number;
|
|
262
|
+
y: number;
|
|
263
|
+
}[];
|
|
264
|
+
rev?: number;
|
|
265
|
+
dragging?: true;
|
|
266
|
+
};
|
|
267
|
+
export declare function reportCanvasMapMove(move: CanvasMapMove): void;
|
|
240
268
|
export declare function reportCanvasMapGroupMove(move: CanvasMapGroupMove): void;
|
|
241
269
|
export declare function reportCanvasMapEntered(screenId: string | null): void;
|
|
242
270
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SootSimInspectInfo } from '../../../peach-globals/src/index.d.ts';
|
|
2
|
+
export type CanvasItemEdit = {
|
|
3
|
+
kind: 'style';
|
|
4
|
+
key: string;
|
|
5
|
+
changes: {
|
|
6
|
+
nodeId: number;
|
|
7
|
+
value: unknown;
|
|
8
|
+
}[];
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'similar';
|
|
11
|
+
nodeId: number;
|
|
12
|
+
};
|
|
13
|
+
export type CanvasItemInspectQuery = {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
} | CanvasItemEdit;
|
|
17
|
+
export type CanvasItemInspection = {
|
|
18
|
+
device: string;
|
|
19
|
+
appearance: 'light' | 'dark';
|
|
20
|
+
textScale: number;
|
|
21
|
+
elements: SootSimInspectInfo[];
|
|
22
|
+
};
|
|
@@ -117,6 +117,10 @@ export type AppLoadRequest = {
|
|
|
117
117
|
args?: string[];
|
|
118
118
|
};
|
|
119
119
|
export type HostToWorker = {
|
|
120
|
+
type: 'canvasItemInspect';
|
|
121
|
+
requestId: number;
|
|
122
|
+
query: import('./canvas-item-inspection.d.ts').CanvasItemInspectQuery;
|
|
123
|
+
} | {
|
|
120
124
|
type: 'nativeAppIdentityResult';
|
|
121
125
|
requestId: number;
|
|
122
126
|
error?: string;
|
|
@@ -600,6 +604,14 @@ export type HostEngineStats = EngineStats & {
|
|
|
600
604
|
hostVsyncScheduled?: boolean;
|
|
601
605
|
};
|
|
602
606
|
export type WorkerToHost = {
|
|
607
|
+
type: 'canvasItemInspected';
|
|
608
|
+
requestId: number;
|
|
609
|
+
inspection: import('./canvas-item-inspection.d.ts').CanvasItemInspection | null;
|
|
610
|
+
} | {
|
|
611
|
+
type: 'canvasMapInspectTarget';
|
|
612
|
+
requestId: number;
|
|
613
|
+
target: import('../ios/apps/canvas-map-data.d.ts').CanvasMapInspectTarget | null;
|
|
614
|
+
} | {
|
|
603
615
|
type: 'exitApp';
|
|
604
616
|
} | import('./native-widgetContract.d.ts').NativeWidgetHomeCommand | {
|
|
605
617
|
type: 'nativeAppIdentity';
|
|
@@ -629,12 +641,7 @@ export type WorkerToHost = {
|
|
|
629
641
|
screenId: string | null;
|
|
630
642
|
} | {
|
|
631
643
|
type: 'canvasMapMove';
|
|
632
|
-
move:
|
|
633
|
-
screenId: string;
|
|
634
|
-
x: number;
|
|
635
|
-
y: number;
|
|
636
|
-
rev?: number;
|
|
637
|
-
};
|
|
644
|
+
move: import('../ios/apps/canvas-map-data.d.ts').CanvasMapMove;
|
|
638
645
|
} | {
|
|
639
646
|
type: 'canvasMapGroupMove';
|
|
640
647
|
move: import('../ios/apps/canvas-map-data.d.ts').CanvasMapGroupMove;
|
package/package.json
CHANGED
package/src/kotlin-host.ts
CHANGED
|
@@ -113,6 +113,18 @@ export function kotlinSources(
|
|
|
113
113
|
return sources.sort()
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
const configureDeviceSource = [
|
|
117
|
+
' android.os.Build.setDevice(model, release, apiLevel)',
|
|
118
|
+
' java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))',
|
|
119
|
+
' dev.peach.android.ProcessSettings.configure(settings)',
|
|
120
|
+
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
121
|
+
' if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) {',
|
|
122
|
+
' dalvik.system.RuntimeHooks.setTimeZoneIdSupplier { android.os.SystemProperties.get("persist.sys.timezone") }',
|
|
123
|
+
' } else {',
|
|
124
|
+
' java.util.TimeZone.setDefault(null)',
|
|
125
|
+
' }',
|
|
126
|
+
]
|
|
127
|
+
|
|
116
128
|
// the process's entry: One's android host (HybridOneNativeModules) finds a
|
|
117
129
|
// package's dispatch by its class name, checks the contract hash, and runs
|
|
118
130
|
// the call as a coroutine on the main dispatcher; a thrown error rejects as
|
|
@@ -121,7 +133,6 @@ export function kotlinSources(
|
|
|
121
133
|
// are a table here.
|
|
122
134
|
function entrySource(ids: string[]): string {
|
|
123
135
|
return [
|
|
124
|
-
'import android.os.Build',
|
|
125
136
|
'import kotlin.js.JsAny',
|
|
126
137
|
'import kotlin.js.Promise',
|
|
127
138
|
'import kotlinx.coroutines.Dispatchers',
|
|
@@ -140,13 +151,7 @@ function entrySource(ids: string[]): string {
|
|
|
140
151
|
'@OptIn(kotlin.js.ExperimentalJsExport::class)',
|
|
141
152
|
'@JsExport',
|
|
142
153
|
'fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {',
|
|
143
|
-
|
|
144
|
-
' java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))',
|
|
145
|
-
' dev.peach.android.ProcessSettings.configure(settings)',
|
|
146
|
-
' // the engine reports the device zone apart; android keeps it in persist.sys.timezone',
|
|
147
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
148
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
149
|
-
' if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)',
|
|
154
|
+
...configureDeviceSource,
|
|
150
155
|
'}',
|
|
151
156
|
'',
|
|
152
157
|
'@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)',
|
|
@@ -762,13 +767,7 @@ export async function expoKotlinArtifact(
|
|
|
762
767
|
'}',
|
|
763
768
|
'',
|
|
764
769
|
'@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {',
|
|
765
|
-
|
|
766
|
-
' java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))',
|
|
767
|
-
' dev.peach.android.ProcessSettings.configure(settings)',
|
|
768
|
-
' // the engine reports the device zone apart; android keeps it in persist.sys.timezone',
|
|
769
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
770
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
771
|
-
' if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)',
|
|
770
|
+
...configureDeviceSource,
|
|
772
771
|
' PeachExpoRuntime.configureProcessLocale(locale)',
|
|
773
772
|
'}',
|
|
774
773
|
'',
|
|
@@ -1481,7 +1480,6 @@ async function compileKotlin(
|
|
|
1481
1480
|
bindings.push(binding.id.name)
|
|
1482
1481
|
}
|
|
1483
1482
|
}
|
|
1484
|
-
if (bindings.length !== 967) throw new Error('pinned Skiko binding count changed')
|
|
1485
1483
|
const names = [
|
|
1486
1484
|
'awaitSkiko',
|
|
1487
1485
|
'loadedWasm',
|
package/src/xcode-project.ts
CHANGED
|
@@ -1440,7 +1440,9 @@ function targetMembers(
|
|
|
1440
1440
|
'IntentDefinitionCompiled',
|
|
1441
1441
|
definition.split(path.sep).findLast((part) => part.endsWith('.lproj')) ?? '',
|
|
1442
1442
|
)
|
|
1443
|
-
|
|
1443
|
+
// definitions in one localization share this directory
|
|
1444
|
+
const compiledDefinition = path.join(compiled, path.basename(definition))
|
|
1445
|
+
fs.rmSync(compiledDefinition, { force: true })
|
|
1444
1446
|
fs.mkdirSync(compiled, { recursive: true })
|
|
1445
1447
|
// runner-toolchain-platform: darwin
|
|
1446
1448
|
execFileSync(
|
|
@@ -1461,7 +1463,7 @@ function targetMembers(
|
|
|
1461
1463
|
timeout: runScriptTimeoutMs,
|
|
1462
1464
|
},
|
|
1463
1465
|
)
|
|
1464
|
-
resources.add(
|
|
1466
|
+
resources.add(compiledDefinition)
|
|
1465
1467
|
projectInputs.add(definition)
|
|
1466
1468
|
for (const file of walkFiles(output)) {
|
|
1467
1469
|
allSources.add(file)
|