peachsim 0.1.2207 → 0.1.2209
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-diagnostics.ts +4 -4
- package/cli/bridge-flow-runner.ts +33 -33
- package/cli/browser-evals.ts +2 -2
- package/cli/commands/control.ts +1 -1
- package/cli/commands/cpu-profile.ts +5 -4
- package/cli/commands/debug.ts +3 -3
- package/cli/commands/diagnose.ts +2 -2
- package/cli/commands/flow.ts +7 -7
- package/cli/commands/inspect/core.ts +22 -22
- package/cli/commands/inspect/get-node.ts +2 -2
- package/cli/commands/inspect/shared.ts +2 -2
- package/cli/commands/inspect/wait-event.ts +1 -1
- package/cli/commands/inspect.ts +33 -33
- package/cli/commands/record-three.ts +17 -17
- package/cli/commands/record.ts +44 -40
- package/cli/commands/shell-boolean-mode.ts +1 -1
- package/cli/commands/slides.ts +5 -3
- package/cli/commands/three-mode.ts +3 -3
- package/cli/commands/upload.ts +8 -8
- package/cli/drivers/types.ts +1 -1
- package/cli/runtime-diagnostics.ts +2 -2
- package/cli/scene-video.ts +5 -3
- package/cli/send-to-box.ts +1 -1
- package/cli/ws-bridge.ts +3 -3
- 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 +448 -22
- 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 +4 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +436 -16
- 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 +449 -23
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +10 -10
- 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 +7 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +4 -4
- 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 -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 +23 -23
- package/dist-lib/sdk.mjs +23 -23
- package/dist-lib/skills.cjs +5176 -75
- package/dist-lib/swift-compile.cjs +98 -6
- package/dist-lib/swift-compile.mjs +98 -6
- 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 +351 -13
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +18 -0
- package/dist-types/packages/peach-engine/src/settings/store.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +27 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +1 -1
- package/sdk/ios/usr/include/ObjectiveC.apinotes +7 -0
- package/src/android-theme.ts +136 -2
- package/src/expo-swift-host.ts +90 -1
- package/src/generated/android-framework-text.json +4566 -0
- package/src/generated/android-framework-themes.json +11 -0
- package/src/kotlin-app.ts +24 -4
- package/src/kotlin-host.ts +9 -0
- package/src/nitro-adapter.lock.json +246 -246
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +120 -2
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-objc-standin.ts +9 -2
- package/src/swift-shared-sdk.ts +2 -1
- package/src/swift-standin-builtin-behavior.ts +248 -0
- package/src/swift-standin-emit.ts +2 -0
- package/src/swift-standins.ts +17 -5
- package/src/turbo-runtime.lock.json +17 -17
|
@@ -2189,6 +2189,17 @@
|
|
|
2189
2189
|
"windowMinWidthMinor": "@null"
|
|
2190
2190
|
}
|
|
2191
2191
|
},
|
|
2192
|
+
"Theme.DeviceDefault.AppLockActivity": {
|
|
2193
|
+
"parent": "Theme.DeviceDefault.Resolver",
|
|
2194
|
+
"items": {
|
|
2195
|
+
"android:windowIsFloating": "false",
|
|
2196
|
+
"android:windowBackground": "@android:color/transparent",
|
|
2197
|
+
"android:windowIsTranslucent": "true",
|
|
2198
|
+
"android:windowNoDisplay": "false",
|
|
2199
|
+
"android:windowDisablePreview": "true",
|
|
2200
|
+
"android:windowAnimationStyle": "@android:style/Animation.Activity"
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2192
2203
|
"Theme": {
|
|
2193
2204
|
"parent": null,
|
|
2194
2205
|
"items": {
|
package/src/kotlin-app.ts
CHANGED
|
@@ -10,12 +10,15 @@ import { readAndroidLayoutIds, type AndroidLayoutIds } from './android-layout-id
|
|
|
10
10
|
import { readAndroidStrings, type AndroidStringResources } from './android-strings'
|
|
11
11
|
import {
|
|
12
12
|
readResourceValues,
|
|
13
|
+
resolveTextAppearance,
|
|
13
14
|
resolveThemeAttribute,
|
|
14
15
|
resourceColor,
|
|
15
16
|
type ResourceValues,
|
|
17
|
+
type TextAppearance,
|
|
16
18
|
type ThemeSources,
|
|
17
19
|
} from './android-theme'
|
|
18
20
|
import { parseXml, type XmlElement } from './android-xml'
|
|
21
|
+
import frameworkText from './generated/android-framework-text.json' with { type: 'json' }
|
|
19
22
|
import frameworkThemes from './generated/android-framework-themes.json' with { type: 'json' }
|
|
20
23
|
import { isRecord } from './is-record'
|
|
21
24
|
import { composeBomVersions } from './kotlin-compose-bom'
|
|
@@ -47,6 +50,8 @@ export interface KotlinAppProject {
|
|
|
47
50
|
// the launched activity's window as its theme and target SDK configure it
|
|
48
51
|
// in a day and a night configuration
|
|
49
52
|
window: { day: KotlinWindowTheme; night: KotlinWindowTheme }
|
|
53
|
+
// a TextView's default color and size under the launched activity's theme
|
|
54
|
+
text: { day: TextAppearance; night: TextAppearance }
|
|
50
55
|
applicationClass: string | null
|
|
51
56
|
launcher: { name: string; targetClass: string }
|
|
52
57
|
// back reaches the activity through its window's back dispatch rather than
|
|
@@ -399,21 +404,32 @@ function defaultTheme(targetSdk: number): string {
|
|
|
399
404
|
return '@android:style/Theme.DeviceDefault.Light.DarkActionBar'
|
|
400
405
|
}
|
|
401
406
|
|
|
402
|
-
// a night configuration takes
|
|
403
|
-
//
|
|
407
|
+
// a night configuration takes what values-night and color-night redefine, in
|
|
408
|
+
// the app and the framework, over values.
|
|
404
409
|
function themeSources(moduleDir: string, night: boolean): ThemeSources {
|
|
405
410
|
const read = (qualifier: string) =>
|
|
406
411
|
readResourceValues(valuesFiles(moduleDir, qualifier))
|
|
407
412
|
const over = (base: ResourceValues, qualified: ResourceValues): ResourceValues => ({
|
|
408
413
|
styles: { ...base.styles, ...qualified.styles },
|
|
409
414
|
colors: { ...base.colors, ...qualified.colors },
|
|
415
|
+
dimens: { ...base.dimens, ...qualified.dimens },
|
|
416
|
+
stateColors: { ...base.stateColors, ...qualified.stateColors },
|
|
410
417
|
})
|
|
418
|
+
const framework = (
|
|
419
|
+
themes: Pick<ResourceValues, 'styles' | 'colors'>,
|
|
420
|
+
text: Omit<ResourceValues, 'colors'>,
|
|
421
|
+
): ResourceValues => ({
|
|
422
|
+
...text,
|
|
423
|
+
styles: { ...themes.styles, ...text.styles },
|
|
424
|
+
colors: themes.colors,
|
|
425
|
+
})
|
|
426
|
+
const android = framework(frameworkThemes, frameworkText)
|
|
411
427
|
return night
|
|
412
428
|
? {
|
|
413
|
-
android: over(
|
|
429
|
+
android: over(android, framework(frameworkThemes.night, frameworkText.night)),
|
|
414
430
|
app: over(read('values'), read('values-night')),
|
|
415
431
|
}
|
|
416
|
-
: { android
|
|
432
|
+
: { android, app: read('values') }
|
|
417
433
|
}
|
|
418
434
|
|
|
419
435
|
function valuesFiles(moduleDir: string, qualifier: string) {
|
|
@@ -774,6 +790,10 @@ export async function readKotlinApp(
|
|
|
774
790
|
day: readWindowTheme(theme, targetSdk, resources.day),
|
|
775
791
|
night: readWindowTheme(theme, targetSdk, resources.night),
|
|
776
792
|
},
|
|
793
|
+
text: {
|
|
794
|
+
day: resolveTextAppearance(theme ?? defaultTheme(targetSdk), resources.day),
|
|
795
|
+
night: resolveTextAppearance(theme ?? defaultTheme(targetSdk), resources.night),
|
|
796
|
+
},
|
|
777
797
|
applicationClass: applicationName ? className(applicationName) : null,
|
|
778
798
|
launcher: { name: launcherName, targetClass },
|
|
779
799
|
predictiveBack,
|
package/src/kotlin-host.ts
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
type ViewModelClass,
|
|
41
41
|
} from './kotlin-view-models'
|
|
42
42
|
import type { DayNight, DrawableFile } from './android-drawables'
|
|
43
|
+
import type { TextAppearance } from './android-theme'
|
|
43
44
|
import type { XmlElement } from './android-xml'
|
|
44
45
|
import type { ExpoKotlinModules } from './expo-kotlin-host'
|
|
45
46
|
import type { KotlinAppProject, KotlinWindowTheme } from './kotlin-app'
|
|
@@ -848,6 +849,13 @@ function windowTheme(window: KotlinWindowTheme): string[] {
|
|
|
848
849
|
]
|
|
849
850
|
}
|
|
850
851
|
|
|
852
|
+
// a TextView appearance: its ARGB, and its size split into number and unit
|
|
853
|
+
function themeText(text: TextAppearance): string {
|
|
854
|
+
const [, size, unit] = /^([\d.]+)([a-z]+)$/.exec(text.size) ?? []
|
|
855
|
+
if (!size || !unit) throw new Error(`unreadable text size ${text.size}`)
|
|
856
|
+
return ` android.content.res.ThemeText(${argb(text.color)}, ${size}f, ${literal(unit)}),`
|
|
857
|
+
}
|
|
858
|
+
|
|
851
859
|
// a pure Kotlin app: its module's sources, the Android platform actuals and
|
|
852
860
|
// the compose host, with an entry that cold-starts the resolved launcher
|
|
853
861
|
|
|
@@ -873,6 +881,7 @@ export async function kotlinAppArtifact(
|
|
|
873
881
|
` android.content.ComponentName(${literal(app.packageName)}, ${literal(app.launcher.targetClass)}),`,
|
|
874
882
|
...windowTheme(app.window.day),
|
|
875
883
|
...windowTheme(app.window.night),
|
|
884
|
+
...[app.text.day, app.text.night].map(themeText),
|
|
876
885
|
` { ${app.applicationClass ?? 'android.app.Application'}() },`,
|
|
877
886
|
` { ${app.launcher.targetClass}() },`,
|
|
878
887
|
` ${app.handlesUiMode},`,
|