peachsim 0.1.2401 → 0.1.2402
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/bridge-flow-runner.ts +1 -1
- package/cli/cloud-client.ts +4 -1
- package/cli/commands/box.ts +6 -0
- package/cli/commands/map.ts +1 -0
- package/cli/commands/platform.ts +2 -0
- package/cli/commands/stream.ts +2 -0
- package/cli/outbound-endpoints.ts +3 -3
- package/cli/run-registry.ts +25 -27
- 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 +23 -17
- 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 +4 -4
- 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 +48 -17
- 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 +3 -3
- 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 +15 -9
- 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 +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +59 -56
- 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 +114 -78
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +3 -3
- 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/engine/font-config.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +13 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +6 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +8 -4
- package/src/android-gradle-sources.ts +14 -8
- package/src/androidGradleContract.ts +2 -0
- package/src/nitro-adapter.lock.json +232 -232
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +19 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2402 | (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;
|
|
@@ -13760,7 +13760,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13760
13760
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13761
13761
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13762
13762
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13763
|
-
var compilerSourceDigest = true ? "
|
|
13763
|
+
var compilerSourceDigest = true ? "3401ceef036de73ad328223d7bbbc23ebbacba2bd1d1828ccc30bd44955cb161" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13764
13764
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13765
13765
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
13766
13766
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2402 | (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);
|
|
@@ -13748,7 +13748,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13748
13748
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13749
13749
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13750
13750
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13751
|
-
var compilerSourceDigest = true ? "
|
|
13751
|
+
var compilerSourceDigest = true ? "3401ceef036de73ad328223d7bbbc23ebbacba2bd1d1828ccc30bd44955cb161" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13752
13752
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13753
13753
|
const hash = createHash14("sha256");
|
|
13754
13754
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2402 | (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.2402 | (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.2402 | (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.2402 | (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.2402 | (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;
|
|
@@ -18675,7 +18675,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18675
18675
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18676
18676
|
var MULTI_MANIFEST_VERSION = 69;
|
|
18677
18677
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18678
|
-
var compilerSourceDigest = true ? "
|
|
18678
|
+
var compilerSourceDigest = true ? "3401ceef036de73ad328223d7bbbc23ebbacba2bd1d1828ccc30bd44955cb161" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18679
18679
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18680
18680
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18681
18681
|
hash.update(`swift-compile
|
|
@@ -34139,7 +34139,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
34139
34139
|
return hash.digest("hex");
|
|
34140
34140
|
}
|
|
34141
34141
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34142
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34142
|
+
var STANDIN_SOURCE_DIGEST = true ? "2e7f1f173feffee6e539b11d8cd6fa9540f7418a23e3563c8b2d9aa747495bd6" : standinSourceDigest();
|
|
34143
34143
|
|
|
34144
34144
|
// src/swift-standins.ts
|
|
34145
34145
|
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.2402 | (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 ? "2e7f1f173feffee6e539b11d8cd6fa9540f7418a23e3563c8b2d9aa747495bd6" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -4962,7 +4962,7 @@ var init_swift_compile = __esm({
|
|
|
4962
4962
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4963
4963
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4964
4964
|
).join("");
|
|
4965
|
-
compilerSourceDigest = true ? "
|
|
4965
|
+
compilerSourceDigest = true ? "3401ceef036de73ad328223d7bbbc23ebbacba2bd1d1828ccc30bd44955cb161" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4966
4966
|
C_WORDS = new Set(
|
|
4967
4967
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
4968
4968
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2402 | (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;
|
|
@@ -20,6 +20,10 @@ export declare const SF_PRO_GRADED_FONT_FAMILY = "SF Pro Graded";
|
|
|
20
20
|
export declare const SF_COMPACT_FONT_FAMILY = "SF Compact";
|
|
21
21
|
export declare const NEW_YORK_FONT_FAMILY = ".NewYork";
|
|
22
22
|
export declare const SF_MONO_FONT_FAMILY = "SF Mono";
|
|
23
|
+
export declare const ANDROID_ROBOTO_ALIASES: ReadonlyMap<string, {
|
|
24
|
+
weight: number;
|
|
25
|
+
width: number;
|
|
26
|
+
}>;
|
|
23
27
|
export declare function resolveSystemNamedFace(fontFamily: string | undefined, fontWeight: unknown, fontStyle: unknown): SystemNamedFace | null;
|
|
24
28
|
export declare const ANDROID_FONT_FAMILY = "Roboto";
|
|
25
29
|
export declare const ANDROID_EMOJI_FONT_FAMILY = "Noto Color Emoji";
|
|
@@ -82,6 +82,7 @@ export type CanvasMapScreenshotContent = {
|
|
|
82
82
|
export type CanvasMapAppContent = {
|
|
83
83
|
kind: 'app';
|
|
84
84
|
appId: string;
|
|
85
|
+
instanceId?: string;
|
|
85
86
|
bundleUrl?: string;
|
|
86
87
|
launchMetadata?: string;
|
|
87
88
|
url?: string;
|
|
@@ -101,6 +102,8 @@ export type CanvasMapScreen = {
|
|
|
101
102
|
width: number;
|
|
102
103
|
height: number;
|
|
103
104
|
status: CanvasMapScreenStatus;
|
|
105
|
+
playable?: boolean;
|
|
106
|
+
capture?: Blob;
|
|
104
107
|
note?: string;
|
|
105
108
|
bg?: string;
|
|
106
109
|
deviceModel?: string;
|
|
@@ -196,6 +199,7 @@ export type CanvasMapTransform = {
|
|
|
196
199
|
};
|
|
197
200
|
export type CanvasMapInspectTarget = {
|
|
198
201
|
screenId: string;
|
|
202
|
+
instanceId: string;
|
|
199
203
|
query: import('../../render-worker/canvas-item-inspection.d.ts').CanvasItemInspectQuery;
|
|
200
204
|
};
|
|
201
205
|
export type CanvasMapInspection = import('../../render-worker/canvas-item-inspection.d.ts').CanvasItemInspection & {
|
|
@@ -254,6 +258,15 @@ export declare function reportCanvasMapDataApplied(rev: CanvasMapData['rev']): v
|
|
|
254
258
|
export declare function reportCanvasMapInspectTarget(requestId: number, target: CanvasMapInspectTarget | null): void;
|
|
255
259
|
export declare function reportCanvasMapTransform(transform: CanvasMapTransform, limits?: CanvasMapPanLimits): void;
|
|
256
260
|
export declare function reportCanvasMapTap(tap: CanvasMapTap): void;
|
|
261
|
+
export type CanvasMapPlaybackEvent = {
|
|
262
|
+
action: 'canvas-map-play';
|
|
263
|
+
screenId: string;
|
|
264
|
+
} | {
|
|
265
|
+
action: 'canvas-map-app-route';
|
|
266
|
+
runId: string;
|
|
267
|
+
path: string;
|
|
268
|
+
};
|
|
269
|
+
export declare function reportCanvasMapPlayback(event: CanvasMapPlaybackEvent): void;
|
|
257
270
|
export declare function reportCanvasMapSelection(screenId: string | null): void;
|
|
258
271
|
export type CanvasMapMove = {
|
|
259
272
|
positions: {
|
|
@@ -526,7 +526,7 @@ export type NativeUIRequest = NativeUIRequestBody & {
|
|
|
526
526
|
remoteSurfaceId?: AuxAppSurfaceId;
|
|
527
527
|
};
|
|
528
528
|
export type HostNativeUIRequest = Extract<NativeUIRequest, {
|
|
529
|
-
kind: `webview.${string}` |
|
|
529
|
+
kind: `webview.${string}` | `systemBars.${string}`;
|
|
530
530
|
}>;
|
|
531
531
|
export declare function isHostNativeUIRequest(request: NativeUIRequest): request is HostNativeUIRequest;
|
|
532
532
|
export type NativeWidgetServiceRequest = Extract<NativeUIRequest, {
|
|
@@ -809,6 +809,11 @@ type NativeUIRequestBody = import('../capture/nativeScreenCaptureContract.d.ts')
|
|
|
809
809
|
kind: 'systemBars.update';
|
|
810
810
|
appId: string | null;
|
|
811
811
|
patch: AndroidSystemBarsPatch;
|
|
812
|
+
} | {
|
|
813
|
+
kind: 'systemBars.dialog';
|
|
814
|
+
appId: string | null;
|
|
815
|
+
order: number;
|
|
816
|
+
attached: boolean;
|
|
812
817
|
} | {
|
|
813
818
|
kind: 'burnt.toast';
|
|
814
819
|
spec: BurntToastSpec;
|
|
@@ -49,6 +49,7 @@ export interface NativeAppItemMount extends NativeWidgetIdentity {
|
|
|
49
49
|
bundleUrl?: string;
|
|
50
50
|
launchMetadata?: string;
|
|
51
51
|
url?: string;
|
|
52
|
+
observeRoute?: boolean;
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export declare function isNativeAppItemMount(mount: NativeWidgetMount): mount is NativeAppItemMount;
|
|
@@ -127,6 +128,11 @@ export type NativeWidgetHomeReply = NativeWidgetHomeResult | {
|
|
|
127
128
|
type: 'nativeWidgetHomeLaunch';
|
|
128
129
|
requestId: number;
|
|
129
130
|
identity: NativeWidgetIdentity;
|
|
131
|
+
} | {
|
|
132
|
+
type: 'nativeWidgetHomeRoute';
|
|
133
|
+
requestId: number;
|
|
134
|
+
identity: NativeWidgetIdentity;
|
|
135
|
+
path: string;
|
|
130
136
|
} | {
|
|
131
137
|
type: 'nativeWidgetHomeStatusBar';
|
|
132
138
|
requestId: number;
|
|
@@ -604,6 +604,9 @@ export type HostEngineStats = EngineStats & {
|
|
|
604
604
|
hostVsyncScheduled?: boolean;
|
|
605
605
|
};
|
|
606
606
|
export type WorkerToHost = {
|
|
607
|
+
type: 'nativeAppItemRoute';
|
|
608
|
+
path: string;
|
|
609
|
+
} | {
|
|
607
610
|
type: 'canvasItemInspected';
|
|
608
611
|
requestId: number;
|
|
609
612
|
inspection: import('./canvas-item-inspection.d.ts').CanvasItemInspection | null;
|
|
@@ -633,6 +636,9 @@ export type WorkerToHost = {
|
|
|
633
636
|
presentation: import('../engine/image-loader.d.ts').ImageLoaderStats['liveFramePresentation'];
|
|
634
637
|
perf: import('../engine/image-loader.d.ts').ImageLoaderStats['liveFramePerf'];
|
|
635
638
|
renderDensity: number;
|
|
639
|
+
} | {
|
|
640
|
+
type: 'canvasMapPlayback';
|
|
641
|
+
event: import('../ios/apps/canvas-map-data.d.ts').CanvasMapPlaybackEvent;
|
|
636
642
|
} | {
|
|
637
643
|
type: 'canvasMapSelect';
|
|
638
644
|
screenId: string | null;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ FOUNDATION_EXPORT NSValueTransformerName const NSSecureUnarchiveFromDataTransfor
|
|
|
31
31
|
|
|
32
32
|
/// An abstract class used to transform values from one representation to another.
|
|
33
33
|
API_AVAILABLE(macos(10.3), ios(3.0), watchos(2.0), tvos(9.0))
|
|
34
|
-
@interface NSValueTransformer : NSObject {
|
|
34
|
+
PEACH_SWIFT_CLASS(PeachFoundation) @interface NSValueTransformer : NSObject {
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/// Registers the provided value transformer with a given identifier.
|
|
@@ -67,7 +67,7 @@ API_AVAILABLE(macos(10.3), ios(3.0), watchos(2.0), tvos(9.0))
|
|
|
67
67
|
///
|
|
68
68
|
/// For an example of subclassing ``NSSecureUnarchiveFromDataTransformer``, see <doc://com.apple.documentation/documentation/coredata/handling-different-data-types-in-core-data>, which has a `ColorToDataTransformer` class that transforms <doc://com.apple.documentation/documentation/uikit/uicolor> to ``NSData`` and the reverse, to support archiving instances of <doc://com.apple.documentation/documentation/uikit/uicolor>.
|
|
69
69
|
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
70
|
-
@interface NSSecureUnarchiveFromDataTransformer : NSValueTransformer
|
|
70
|
+
PEACH_SWIFT_CLASS(PeachFoundation) @interface NSSecureUnarchiveFromDataTransformer : NSValueTransformer
|
|
71
71
|
|
|
72
72
|
/// The list of allowable classes which the top-level object in the archive must conform to on encoding and decoding.
|
|
73
73
|
///
|
|
@@ -1987,11 +1987,13 @@ Typedefs:
|
|
|
1987
1987
|
SwiftName: UIAccessibilityCustomRotor.Search
|
|
1988
1988
|
# Swift 4.2 New
|
|
1989
1989
|
- Name: UIApplicationOpenExternalURLOptionsKey
|
|
1990
|
-
SwiftName:
|
|
1990
|
+
SwiftName: UIApplicationOpenExternalURLOptionsKey
|
|
1991
|
+
SwiftWrapper: struct
|
|
1991
1992
|
- Name: UINibOptionsKey
|
|
1992
1993
|
SwiftName: UINib.OptionsKey
|
|
1993
1994
|
- Name: UIPageViewControllerOptionsKey
|
|
1994
|
-
SwiftName:
|
|
1995
|
+
SwiftName: UIPageViewControllerOptionsKey
|
|
1996
|
+
SwiftWrapper: struct
|
|
1995
1997
|
- Name: UIImagePickerControllerInfoKey
|
|
1996
1998
|
SwiftName: UIImagePickerController.InfoKey
|
|
1997
1999
|
- Name: UIScrollViewDecelerationRate
|
|
@@ -3391,11 +3393,13 @@ SwiftVersions:
|
|
|
3391
3393
|
SwiftName: UIWindowLevel
|
|
3392
3394
|
SwiftWrapper: none
|
|
3393
3395
|
- Name: UIApplicationOpenExternalURLOptionsKey
|
|
3394
|
-
|
|
3396
|
+
SwiftName: UIApplicationOpenExternalURLOptionsKey
|
|
3397
|
+
SwiftWrapper: struct
|
|
3395
3398
|
- Name: UINibOptionsKey
|
|
3396
3399
|
SwiftWrapper: none
|
|
3397
3400
|
- Name: UIPageViewControllerOptionsKey
|
|
3398
|
-
|
|
3401
|
+
SwiftName: UIPageViewControllerOptionsKey
|
|
3402
|
+
SwiftWrapper: struct
|
|
3399
3403
|
- Name: UIImagePickerControllerInfoKey
|
|
3400
3404
|
SwiftWrapper: none
|
|
3401
3405
|
- Name: UIAccessibilityAssistiveTechnologyIdentifier
|
|
@@ -58,10 +58,12 @@ gradle.projectsEvaluated {
|
|
|
58
58
|
}
|
|
59
59
|
def kotlin = project.tasks.findByName('compile' + variant.name.capitalize() + 'Kotlin')
|
|
60
60
|
def kotlinSources = kotlin == null ? project.files() : kotlin.sources
|
|
61
|
-
def
|
|
61
|
+
def javac = project.tasks.named('compile' + variant.name.capitalize() + 'JavaWithJavac').get()
|
|
62
|
+
def javaSources = javac.source
|
|
62
63
|
def query = project.tasks.register(request.task) {
|
|
63
64
|
dependsOn(generators)
|
|
64
65
|
dependsOn(kotlinSources.buildDependencies, javaSources.buildDependencies)
|
|
66
|
+
if (request.includeJavaClasspath) dependsOn(javac.classpath.buildDependencies)
|
|
65
67
|
doLast {
|
|
66
68
|
def files = (kotlinSources.files + javaSources.files).unique()
|
|
67
69
|
def unknown = files.find { !it.name.endsWith('.kt') && !it.name.endsWith('.java') }
|
|
@@ -90,7 +92,10 @@ gradle.projectsEvaluated {
|
|
|
90
92
|
targetSdk:library ? null : variant.targetSdk.apiLevel,
|
|
91
93
|
kotlin:files.findAll { it.name.endsWith('.kt') }.collect { it.absolutePath }.sort(),
|
|
92
94
|
java:files.findAll { it.name.endsWith('.java') }.collect { it.absolutePath }.sort(),
|
|
93
|
-
dependencies:dependencies
|
|
95
|
+
dependencies:dependencies,
|
|
96
|
+
javaClasspath:request.includeJavaClasspath
|
|
97
|
+
? javac.classpath.files.findAll { it.exists() }.collect { it.absolutePath }
|
|
98
|
+
: null
|
|
94
99
|
])
|
|
95
100
|
}
|
|
96
101
|
}
|
|
@@ -104,7 +109,7 @@ export async function resolveAndroidGradleSources(
|
|
|
104
109
|
request: AndroidGradleSourceRequest,
|
|
105
110
|
): Promise<AndroidGradleSources[]> {
|
|
106
111
|
let { root } = request
|
|
107
|
-
const { projects: projectDirs, variant } = request
|
|
112
|
+
const { projects: projectDirs, variant, includeJavaClasspath = false } = request
|
|
108
113
|
if (projectDirs.length === 0) return []
|
|
109
114
|
if (!path.isAbsolute(root) || projectDirs.some((dir) => !path.isAbsolute(dir)))
|
|
110
115
|
throw new Error('Android Gradle source selection requires absolute project paths')
|
|
@@ -117,7 +122,7 @@ export async function resolveAndroidGradleSources(
|
|
|
117
122
|
const task = `peachAndroidSources${randomBytes(8).toString('hex')}`
|
|
118
123
|
const script = path.join(work, 'sources.gradle')
|
|
119
124
|
const encoded = Buffer.from(
|
|
120
|
-
JSON.stringify({ root, projects, variant, output: work, task }),
|
|
125
|
+
JSON.stringify({ root, projects, variant, includeJavaClasspath, output: work, task }),
|
|
121
126
|
).toString('base64')
|
|
122
127
|
fs.writeFileSync(script, modelQuery.replace('__PEACH_REQUEST__', encoded))
|
|
123
128
|
try {
|
|
@@ -159,13 +164,13 @@ export async function resolveAndroidGradleSources(
|
|
|
159
164
|
value.targetSdk <= 0))
|
|
160
165
|
)
|
|
161
166
|
throw new Error('Gradle printed an invalid Android project source model')
|
|
162
|
-
const
|
|
167
|
+
const paths = (field: 'kotlin' | 'java' | 'javaClasspath'): string[] => {
|
|
163
168
|
const list = value[field]
|
|
164
169
|
if (
|
|
165
170
|
!Array.isArray(list) ||
|
|
166
171
|
!list.every((file) => typeof file === 'string' && path.isAbsolute(file))
|
|
167
172
|
)
|
|
168
|
-
throw new Error(`Gradle printed invalid Android ${field}
|
|
173
|
+
throw new Error(`Gradle printed invalid Android ${field} paths`)
|
|
169
174
|
return list.map(String)
|
|
170
175
|
}
|
|
171
176
|
if (!Array.isArray(value.dependencies))
|
|
@@ -199,8 +204,9 @@ export async function resolveAndroidGradleSources(
|
|
|
199
204
|
applicationId: value.applicationId,
|
|
200
205
|
namespace: value.namespace,
|
|
201
206
|
targetSdk: value.targetSdk,
|
|
202
|
-
kotlin:
|
|
203
|
-
java:
|
|
207
|
+
kotlin: paths('kotlin'),
|
|
208
|
+
java: paths('java'),
|
|
209
|
+
...(includeJavaClasspath ? { javaClasspath: paths('javaClasspath') } : {}),
|
|
204
210
|
dependencies,
|
|
205
211
|
}
|
|
206
212
|
})
|
|
@@ -2,6 +2,7 @@ export interface AndroidGradleSourceRequest {
|
|
|
2
2
|
root: string
|
|
3
3
|
projects: readonly string[]
|
|
4
4
|
variant: string
|
|
5
|
+
includeJavaClasspath?: boolean
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export interface AndroidGradleSources {
|
|
@@ -13,6 +14,7 @@ export interface AndroidGradleSources {
|
|
|
13
14
|
targetSdk: number | null
|
|
14
15
|
kotlin: string[]
|
|
15
16
|
java: string[]
|
|
17
|
+
javaClasspath?: string[]
|
|
16
18
|
dependencies: AndroidGradleDependency[]
|
|
17
19
|
}
|
|
18
20
|
|