peachsim 0.1.2705 → 0.1.2707
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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +138 -91
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-27KDOVNI.mjs → acorn-TWIHA3LV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-D36QDZK4.mjs → chunk-27XUVHT4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NLKBKTJ2.mjs → chunk-46RSD7AK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IYEQDJBX.mjs → chunk-4DEAP7UN.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-JHCOF6X5.mjs → chunk-5INSHFOP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U45MJNLE.mjs → chunk-6J3PF3XL.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-VXXNNOMC.mjs → chunk-DRYPO7NE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-E3HNI54O.mjs → chunk-EG4GPPJQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7D6KXPS7.mjs → chunk-FLPFWO3M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BN6HU4EZ.mjs → chunk-GVEPXHG7.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-G2MHVC53.mjs → chunk-KBWNHTU4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OD3EQFDZ.mjs → chunk-LA3OYMV2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6DGRQK2K.mjs → chunk-LPAZZQ54.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X54MWCU4.mjs → chunk-MJIUOMAU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-RYW4YL3O.mjs → chunk-N2PS4PWR.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WQCPB6D5.mjs → chunk-NMKOIZGB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-67FNVBOX.mjs → chunk-OEOQTLL7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LGK7W7DX.mjs → chunk-OLIH4NRJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CPOLHPFS.mjs → chunk-OP7IEEOR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GSW3A7T7.mjs → chunk-PP7IBQSE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QJYTYHGR.mjs → chunk-Q6L7U3GD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-VCQJ272Y.mjs → chunk-RG57WL4L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-E7KS4CSS.mjs → chunk-YBD5W3WD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RPQNSUFP.mjs → chunk-ZT4ZE4EM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LSVMY2GV.mjs → chunk-ZTYNI42S.mjs} +73 -32
- package/dist-lib/esm-chunks/{metro-layout-parser-3UI5PRMM.mjs → metro-layout-parser-AYK7542X.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-N22FAOIX.mjs → swift-package-prebuilt-VNYND5G3.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-OEC3NHLQ.mjs → swift-sdk-app-module-I24JHYNS.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-WA5L3FKO.mjs → swift-sdk-image-GYV3O3ZU.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-QMPMOSLR.mjs → swift-sdk-image-producer-B675THYP.mjs} +12 -6
- package/dist-lib/expo-swift-bundle.cjs +124 -77
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +150 -103
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- 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/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +165 -118
- package/dist-lib/swift-compile.cjs +83 -36
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-kit/src/materials/uikit-blur-material.d.ts +1 -1
- package/dist-types/packages/peach-kit/src/materials/variableBlurContract.d.ts +17 -0
- package/package.json +1 -1
- package/src/swift-compile.ts +108 -46
- package/src/swift-sdk-image-producer.ts +13 -2
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +0 -28
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface VariableBlurAppearance {
|
|
2
|
+
fillDarken: number;
|
|
3
|
+
fillLighten: number;
|
|
4
|
+
fillNormal: number;
|
|
5
|
+
plateColor: readonly [number, number, number];
|
|
6
|
+
plateOpacity: number;
|
|
7
|
+
}
|
|
8
|
+
export interface VariableBlurStyle {
|
|
9
|
+
radius: number;
|
|
10
|
+
fillRadius: number;
|
|
11
|
+
captureFactor?: number;
|
|
12
|
+
backdropGroup?: string;
|
|
13
|
+
light: VariableBlurAppearance;
|
|
14
|
+
dark: VariableBlurAppearance;
|
|
15
|
+
radiusMaskHex: string;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -6832,6 +6832,21 @@ function swiftFrameworkSlotRelease(slot: string): string | null {
|
|
|
6832
6832
|
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_RELEASE)
|
|
6833
6833
|
}
|
|
6834
6834
|
|
|
6835
|
+
// protect another caller's verified framework receipt long enough for a
|
|
6836
|
+
// producer's caller or iterative guest build to reuse it before restaging.
|
|
6837
|
+
const SWIFT_FRAMEWORK_HOT_RECEIPT_MS = 15 * 60 * 1000
|
|
6838
|
+
|
|
6839
|
+
function swiftFrameworkSlotHasReceipt(slot: string): boolean {
|
|
6840
|
+
try {
|
|
6841
|
+
return readdirSync(path.join(slot, 'products-ready')).some((entry) =>
|
|
6842
|
+
entry.endsWith('.json'),
|
|
6843
|
+
)
|
|
6844
|
+
} catch (error) {
|
|
6845
|
+
if (vanished(error)) return false
|
|
6846
|
+
throw error
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
6849
|
+
|
|
6835
6850
|
async function withSwiftFrameworkSlot<T>(
|
|
6836
6851
|
frameworkKey: string,
|
|
6837
6852
|
release: string,
|
|
@@ -6851,10 +6866,25 @@ async function withSwiftFrameworkSlot<T>(
|
|
|
6851
6866
|
mkdirSync(slot, { recursive: true })
|
|
6852
6867
|
return slot
|
|
6853
6868
|
})
|
|
6869
|
+
const own = (slot: string) =>
|
|
6870
|
+
swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot
|
|
6871
|
+
const slotMtimeMs = (slot: string) => {
|
|
6872
|
+
try {
|
|
6873
|
+
return statSync(slot).mtimeMs
|
|
6874
|
+
} catch (error) {
|
|
6875
|
+
if (vanished(error)) return 0
|
|
6876
|
+
throw error
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
const isRecentForeignReceipt = (slot: string, now: number) =>
|
|
6880
|
+
!own(slot) &&
|
|
6881
|
+
swiftFrameworkSlotHasReceipt(slot) &&
|
|
6882
|
+
now - slotMtimeMs(slot) < SWIFT_FRAMEWORK_HOT_RECEIPT_MS
|
|
6854
6883
|
const trySlot = (
|
|
6855
6884
|
slot: string,
|
|
6856
6885
|
mode: 'reuse' | 'extend' | 'restage',
|
|
6857
6886
|
logSelection?: () => void,
|
|
6887
|
+
allowHotForeign = true,
|
|
6858
6888
|
) => {
|
|
6859
6889
|
return withSwiftRootLock(
|
|
6860
6890
|
slot,
|
|
@@ -6863,6 +6893,15 @@ async function withSwiftFrameworkSlot<T>(
|
|
|
6863
6893
|
if (mode !== 'restage' && !matches) return
|
|
6864
6894
|
const allowWrite = mode !== 'reuse'
|
|
6865
6895
|
if (allowWrite && (await hasLiveSwiftRootReaders(slot, signal))) return
|
|
6896
|
+
// re-check recency under the lock so a queued stale rank cannot evict
|
|
6897
|
+
// a foreign receipt written while waiting when cold/empty slots exist.
|
|
6898
|
+
if (
|
|
6899
|
+
mode === 'restage' &&
|
|
6900
|
+
!matches &&
|
|
6901
|
+
!allowHotForeign &&
|
|
6902
|
+
isRecentForeignReceipt(slot, Date.now())
|
|
6903
|
+
)
|
|
6904
|
+
return
|
|
6866
6905
|
if (!matches) logSelection?.()
|
|
6867
6906
|
const value = await work(slot, lease, allowWrite)
|
|
6868
6907
|
if (value === undefined) return
|
|
@@ -6885,64 +6924,87 @@ async function withSwiftFrameworkSlot<T>(
|
|
|
6885
6924
|
}
|
|
6886
6925
|
const ready = await tryExactSlots()
|
|
6887
6926
|
if (ready) return ready.value
|
|
6888
|
-
const built = new Map(slots.map((slot) => [slot, statSync(slot).mtimeMs]))
|
|
6889
|
-
const own = (slot: string) =>
|
|
6890
|
-
swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot
|
|
6891
6927
|
const inputs = new Map(
|
|
6892
6928
|
swiftModuleInputFiles(moduleRoot).map((file) => [
|
|
6893
6929
|
file,
|
|
6894
6930
|
readFileSync(path.join(moduleRoot, file)),
|
|
6895
6931
|
]),
|
|
6896
6932
|
)
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
.
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
try {
|
|
6912
|
-
const candidate = path.join(source, file)
|
|
6913
|
-
if (
|
|
6914
|
-
statSync(candidate).size !== contents.length ||
|
|
6915
|
-
!readFileSync(candidate).equals(contents)
|
|
6916
|
-
)
|
|
6917
|
-
changes++
|
|
6918
|
-
} catch (error) {
|
|
6919
|
-
if (!vanished(error)) throw error
|
|
6933
|
+
const changesBySlotKey = new Map<string, number>()
|
|
6934
|
+
const changedInputsFor = (slot: string, slotKey: string) => {
|
|
6935
|
+
const cacheKey = `${slot}\0${slotKey}`
|
|
6936
|
+
const cached = changesBySlotKey.get(cacheKey)
|
|
6937
|
+
if (cached !== undefined) return cached
|
|
6938
|
+
let changes = 0
|
|
6939
|
+
const source = path.join(slot, 'source', 'packages', path.basename(moduleRoot))
|
|
6940
|
+
for (const [file, contents] of inputs) {
|
|
6941
|
+
try {
|
|
6942
|
+
const candidate = path.join(source, file)
|
|
6943
|
+
if (
|
|
6944
|
+
statSync(candidate).size !== contents.length ||
|
|
6945
|
+
!readFileSync(candidate).equals(contents)
|
|
6946
|
+
)
|
|
6920
6947
|
changes++
|
|
6921
|
-
|
|
6948
|
+
} catch (error) {
|
|
6949
|
+
if (!vanished(error)) throw error
|
|
6950
|
+
changes++
|
|
6922
6951
|
}
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6952
|
+
}
|
|
6953
|
+
changesBySlotKey.set(cacheKey, changes)
|
|
6954
|
+
return changes
|
|
6955
|
+
}
|
|
6956
|
+
// swiftc's swift-version hash invalidates every framework target when a slot
|
|
6957
|
+
// switches compiler release. keep each compiler release in its own slot and
|
|
6958
|
+
// preserve recent foreign verified receipts while cold or empty slots exist:
|
|
6959
|
+
// tier 0: own or cold same-release slot (nearest source, own first, LRU ties),
|
|
6960
|
+
// tier 1: empty slot,
|
|
6961
|
+
// tier 2: recent foreign verified receipt (LRU first, immediate restage if all hot),
|
|
6962
|
+
// tier 3: another release (LRU).
|
|
6963
|
+
const rankSlots = (now: number) =>
|
|
6964
|
+
slots
|
|
6965
|
+
.map((slot, index) => {
|
|
6966
|
+
const slotKey = swiftFrameworkSlotKey(slot)
|
|
6967
|
+
const mtimeMs = slotMtimeMs(slot)
|
|
6968
|
+
if (slotKey === null)
|
|
6969
|
+
return { slot, index, tier: 1, changes: Infinity, own: false, mtimeMs }
|
|
6970
|
+
if (swiftFrameworkSlotRelease(slot) !== release)
|
|
6971
|
+
return { slot, index, tier: 3, changes: Infinity, own: false, mtimeMs }
|
|
6972
|
+
const changes = changedInputsFor(slot, slotKey)
|
|
6973
|
+
const isOwn = own(slot)
|
|
6974
|
+
const hotForeign =
|
|
6975
|
+
!isOwn &&
|
|
6976
|
+
swiftFrameworkSlotHasReceipt(slot) &&
|
|
6977
|
+
now - mtimeMs < SWIFT_FRAMEWORK_HOT_RECEIPT_MS
|
|
6978
|
+
return { slot, index, tier: hotForeign ? 2 : 0, changes, own: isOwn, mtimeMs }
|
|
6979
|
+
})
|
|
6980
|
+
.sort((left, right) => {
|
|
6981
|
+
if (left.tier !== right.tier) return left.tier - right.tier
|
|
6982
|
+
if (left.tier === 0)
|
|
6983
|
+
return (
|
|
6984
|
+
left.changes - right.changes ||
|
|
6985
|
+
Number(right.own) - Number(left.own) ||
|
|
6986
|
+
left.mtimeMs - right.mtimeMs
|
|
6987
|
+
)
|
|
6988
|
+
if (left.tier === 1) return left.index - right.index
|
|
6989
|
+
if (left.tier === 2)
|
|
6990
|
+
return left.mtimeMs - right.mtimeMs || left.changes - right.changes
|
|
6991
|
+
return left.mtimeMs - right.mtimeMs
|
|
6992
|
+
})
|
|
6936
6993
|
let announced = false
|
|
6937
6994
|
for (;;) {
|
|
6938
6995
|
signal?.throwIfAborted()
|
|
6939
|
-
for (const { slot, tier, changes } of
|
|
6996
|
+
for (const { slot, tier, changes } of rankSlots(Date.now())) {
|
|
6940
6997
|
if (swiftFrameworkSlotKey(slot) === frameworkKey) continue
|
|
6941
|
-
const result = await trySlot(
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
)
|
|
6945
|
-
|
|
6998
|
+
const result = await trySlot(
|
|
6999
|
+
slot,
|
|
7000
|
+
'restage',
|
|
7001
|
+
() => {
|
|
7002
|
+
console.error(
|
|
7003
|
+
`[swift-framework-cache] ${path.basename(slot)} release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs.size}`,
|
|
7004
|
+
)
|
|
7005
|
+
},
|
|
7006
|
+
tier >= 2,
|
|
7007
|
+
)
|
|
6946
7008
|
if (result) return result.value
|
|
6947
7009
|
}
|
|
6948
7010
|
if (!announced) {
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
rmSync,
|
|
9
9
|
writeFileSync,
|
|
10
10
|
} from 'node:fs'
|
|
11
|
+
import os from 'node:os'
|
|
11
12
|
import path from 'node:path'
|
|
12
13
|
import { setTimeout as sleep } from 'node:timers/promises'
|
|
13
14
|
import { promisify } from 'node:util'
|
|
@@ -194,6 +195,17 @@ function producerSettled(directory: string): boolean {
|
|
|
194
195
|
return isRecord(value) && value.released === true
|
|
195
196
|
}
|
|
196
197
|
|
|
198
|
+
export function swiftSdkProducerCores(
|
|
199
|
+
admitted: number,
|
|
200
|
+
platform: NodeJS.Platform = process.platform,
|
|
201
|
+
hostCpus: number = os.availableParallelism(),
|
|
202
|
+
): number {
|
|
203
|
+
const floor = platform === 'linux' && hostCpus >= 64 ? 24 : 4
|
|
204
|
+
return Number.isSafeInteger(admitted) && admitted > 0
|
|
205
|
+
? Math.max(floor, admitted)
|
|
206
|
+
: floor
|
|
207
|
+
}
|
|
208
|
+
|
|
197
209
|
/** Runs a source SDK image build in a daemon-owned Linux scope; callers only observe it. */
|
|
198
210
|
export async function produceSwiftSdkImage(input: {
|
|
199
211
|
moduleRoot: string
|
|
@@ -267,8 +279,7 @@ export async function produceSwiftSdkImage(input: {
|
|
|
267
279
|
writeFileSync(next, launchId, { flag: 'wx' })
|
|
268
280
|
renameSync(next, current)
|
|
269
281
|
const admitted = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES)
|
|
270
|
-
const cores =
|
|
271
|
-
Number.isSafeInteger(admitted) && admitted > 0 ? Math.max(4, admitted) : 4
|
|
282
|
+
const cores = swiftSdkProducerCores(admitted)
|
|
272
283
|
const launched = await run(
|
|
273
284
|
'tm',
|
|
274
285
|
[
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { View, ViewProps } from 'react-native';
|
|
3
|
-
type SystemBlurStyle = 'systemUltraThinMaterial' | 'systemThinMaterial' | 'systemMaterial' | 'systemThickMaterial' | 'systemChromeMaterial';
|
|
4
|
-
export type BlurStyle = SystemBlurStyle | `${SystemBlurStyle}Light` | `${SystemBlurStyle}Dark` | 'extraLight' | 'light' | 'dark' | 'regular' | 'prominent';
|
|
5
|
-
export interface ProgressiveBlurViewProps extends ViewProps {
|
|
6
|
-
maxRadius: number;
|
|
7
|
-
direction: 'top' | 'bottom' | 'center';
|
|
8
|
-
startOffset?: number;
|
|
9
|
-
blurStyle?: BlurStyle;
|
|
10
|
-
ref?: Ref<View>;
|
|
11
|
-
}
|
|
12
|
-
interface VariableBlurAppearance {
|
|
13
|
-
fillDarken: number;
|
|
14
|
-
fillLighten: number;
|
|
15
|
-
fillNormal: number;
|
|
16
|
-
plateColor: readonly [number, number, number];
|
|
17
|
-
plateOpacity: number;
|
|
18
|
-
}
|
|
19
|
-
export interface VariableBlurStyle {
|
|
20
|
-
radius: number;
|
|
21
|
-
fillRadius: number;
|
|
22
|
-
captureFactor?: number;
|
|
23
|
-
backdropGroup?: string;
|
|
24
|
-
light: VariableBlurAppearance;
|
|
25
|
-
dark: VariableBlurAppearance;
|
|
26
|
-
radiusMaskHex: string;
|
|
27
|
-
}
|
|
28
|
-
export {};
|