peachsim 0.1.2392 → 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/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 +15 -18
- 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 +1 -1
- 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 +15 -18
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +15 -18
- 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 +1 -1
- package/dist-lib/vite.cjs +1 -1
- 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 +20 -1
- 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 +12 -0
- package/package.json +1 -1
- package/src/kotlin-host.ts +14 -16
|
@@ -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
|
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/sdk.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/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;
|
|
@@ -104378,7 +104378,6 @@ function kotlinSources(root, skip = SKIP_DIRS) {
|
|
|
104378
104378
|
}
|
|
104379
104379
|
function entrySource(ids) {
|
|
104380
104380
|
return [
|
|
104381
|
-
"import android.os.Build",
|
|
104382
104381
|
"import kotlin.js.JsAny",
|
|
104383
104382
|
"import kotlin.js.Promise",
|
|
104384
104383
|
"import kotlinx.coroutines.Dispatchers",
|
|
@@ -104397,13 +104396,7 @@ function entrySource(ids) {
|
|
|
104397
104396
|
"@OptIn(kotlin.js.ExperimentalJsExport::class)",
|
|
104398
104397
|
"@JsExport",
|
|
104399
104398
|
"fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
104400
|
-
|
|
104401
|
-
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
104402
|
-
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
104403
|
-
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
104404
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
104405
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
104406
|
-
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
104399
|
+
...configureDeviceSource,
|
|
104407
104400
|
"}",
|
|
104408
104401
|
"",
|
|
104409
104402
|
"@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)",
|
|
@@ -104791,13 +104784,7 @@ async function expoKotlinArtifact(root, moduleRoot, origin, modules) {
|
|
|
104791
104784
|
"}",
|
|
104792
104785
|
"",
|
|
104793
104786
|
"@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
104794
|
-
|
|
104795
|
-
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
104796
|
-
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
104797
|
-
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
104798
|
-
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
104799
|
-
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
104800
|
-
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
104787
|
+
...configureDeviceSource,
|
|
104801
104788
|
" PeachExpoRuntime.configureProcessLocale(locale)",
|
|
104802
104789
|
"}",
|
|
104803
104790
|
"",
|
|
@@ -105380,7 +105367,6 @@ async function compileKotlin(input, origin) {
|
|
|
105380
105367
|
bindings.push(binding.id.name);
|
|
105381
105368
|
}
|
|
105382
105369
|
}
|
|
105383
|
-
if (bindings.length !== 967) throw new Error("pinned Skiko binding count changed");
|
|
105384
105370
|
const names = [
|
|
105385
105371
|
"awaitSkiko",
|
|
105386
105372
|
"loadedWasm",
|
|
@@ -105563,7 +105549,7 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
105563
105549
|
}
|
|
105564
105550
|
return true;
|
|
105565
105551
|
}
|
|
105566
|
-
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;
|
|
105567
105553
|
var init_kotlin_host = __esm({
|
|
105568
105554
|
"src/kotlin-host.ts"() {
|
|
105569
105555
|
"use strict";
|
|
@@ -105596,6 +105582,17 @@ var init_kotlin_host = __esm({
|
|
|
105596
105582
|
"__tests__",
|
|
105597
105583
|
"scripts"
|
|
105598
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
|
+
];
|
|
105599
105596
|
BUILD_FORMAT = 22;
|
|
105600
105597
|
builds = /* @__PURE__ */ new Map();
|
|
105601
105598
|
toolScans = /* @__PURE__ */ new Map();
|
|
@@ -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;
|
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;
|
|
@@ -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;
|
|
@@ -194,6 +194,24 @@ export type CanvasMapTransform = {
|
|
|
194
194
|
y: number;
|
|
195
195
|
scale: number;
|
|
196
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
|
+
};
|
|
197
215
|
export type CanvasMapPanLimits = {
|
|
198
216
|
minX: number;
|
|
199
217
|
maxX: number;
|
|
@@ -224,7 +242,7 @@ export type CanvasMapCommand = 'fit' | 'actual-size' | {
|
|
|
224
242
|
} | {
|
|
225
243
|
kind: 'view-screen';
|
|
226
244
|
screenId: string;
|
|
227
|
-
} | {
|
|
245
|
+
} | CanvasMapInspectCommand | {
|
|
228
246
|
kind: 'enter';
|
|
229
247
|
screenId: string | null;
|
|
230
248
|
};
|
|
@@ -233,6 +251,7 @@ export declare function getCanvasMapData(): CanvasMapData;
|
|
|
233
251
|
export declare function subscribeCanvasMapData(listener: () => void): () => void;
|
|
234
252
|
export declare function setCanvasMapData(next: CanvasMapData): void;
|
|
235
253
|
export declare function reportCanvasMapDataApplied(rev: CanvasMapData['rev']): void;
|
|
254
|
+
export declare function reportCanvasMapInspectTarget(requestId: number, target: CanvasMapInspectTarget | null): void;
|
|
236
255
|
export declare function reportCanvasMapTransform(transform: CanvasMapTransform, limits?: CanvasMapPanLimits): void;
|
|
237
256
|
export declare function reportCanvasMapTap(tap: CanvasMapTap): void;
|
|
238
257
|
export declare function reportCanvasMapSelection(screenId: string | null): void;
|
|
@@ -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';
|
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',
|