peachsim 0.1.2555 → 0.1.2557
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 +65 -28
- 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-QGBERFP4.mjs → acorn-V3R7N3DL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-SGLUOFDE.mjs → chunk-2FDEFCSU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BD4GSBAX.mjs → chunk-5IIPWTU7.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-WPAVWBXZ.mjs → chunk-6LLBK46M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AEPG6X2A.mjs → chunk-6UFCQGIH.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-URVDUJR5.mjs → chunk-A4T2CSJ4.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-IBZRGZSN.mjs → chunk-ACTIO7HH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GBLCGD6K.mjs → chunk-B2QXNXK5.mjs} +37 -20
- package/dist-lib/esm-chunks/{chunk-ZQGHRQAL.mjs → chunk-B6DJM45J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3RGDV5BA.mjs → chunk-D2WS5SUW.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-7CBQLSCQ.mjs → chunk-EIA4DW74.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ITW6N6UY.mjs → chunk-F3YDWIEV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VJACCP4Q.mjs → chunk-H4GYRFKG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QF2DG3F6.mjs → chunk-H5SL2GCI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TK6RYBA4.mjs → chunk-I63OIXP3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DMF7FQTL.mjs → chunk-JZF7QUEJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NDKIELVM.mjs → chunk-K263OIUK.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-MM7ZNQTG.mjs → chunk-NMPUFKOR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GAT7GWIU.mjs → chunk-RRW2LY5Q.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-66UHDKT4.mjs → chunk-SILECIIP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WIWQQFLS.mjs → chunk-ZDUQVQVO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4EX7EPFU.mjs → chunk-ZGZPS6IS.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-5YNBQ6DG.mjs → metro-layout-parser-7XLFV5XW.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-NEY7UZFN.mjs → swift-package-prebuilt-CSC3H35V.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-LUXB65NO.mjs → swift-sdk-app-module-37UYJ4L2.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-ZOVAPHPJ.mjs → swift-sdk-image-RANLYVSR.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-BK4XV5UM.mjs → swift-sdk-image-producer-UFYLUYQU.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +64 -27
- 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 +67 -28
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- 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 +2 -2
- 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 +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- 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 +7 -7
- package/dist-lib/skills.cjs +67 -28
- package/dist-lib/swift-compile.cjs +26 -9
- package/dist-lib/swift-compile.mjs +10 -10
- 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 +5 -5
- 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/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.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-engine/src/settings/duo-fold.d.ts +2 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/swift-compile.ts +13 -4
- package/src/swift-distribution-mirror.ts +20 -5
- package/src/turbo-source.ts +35 -15
- package/src/widget-extension-bundle.ts +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2557 | (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,12 +1,12 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2557 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
parse
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-H5SL2GCI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__privateAdd,
|
|
7
7
|
__privateGet,
|
|
8
8
|
__publicField
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-I63OIXP3.mjs";
|
|
10
10
|
|
|
11
11
|
// src/worklet-kernel.ts
|
|
12
12
|
var Unsupported = class extends Error {
|
|
@@ -8,6 +8,8 @@ export interface DuoFoldDisplay {
|
|
|
8
8
|
presented(): DuoFoldFace | null;
|
|
9
9
|
frameToken(): number;
|
|
10
10
|
markDirty(): void;
|
|
11
|
+
waitForLayout(): Promise<void>;
|
|
12
|
+
coversArrivingDisplay?: () => boolean;
|
|
11
13
|
}
|
|
12
14
|
export declare const pageDuoFoldDisplay: DuoFoldDisplay;
|
|
13
15
|
export declare function installDuoFoldEngine(search: string, display: DuoFoldDisplay): void;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -8450,6 +8450,13 @@ async function compileSwiftProjectOnce(
|
|
|
8450
8450
|
)
|
|
8451
8451
|
}
|
|
8452
8452
|
const jobs = swiftCompilerJobs()
|
|
8453
|
+
const incrementalPreview =
|
|
8454
|
+
sdkImage !== undefined &&
|
|
8455
|
+
!guestGraph &&
|
|
8456
|
+
!options.project &&
|
|
8457
|
+
!input.optimize &&
|
|
8458
|
+
!input.unoptimized
|
|
8459
|
+
const perFile = input.unoptimized || incrementalPreview
|
|
8453
8460
|
const buildArgs = [
|
|
8454
8461
|
'build',
|
|
8455
8462
|
...(projectProcess?.cacheOptions ?? swiftPackageCacheOptions()),
|
|
@@ -8468,10 +8475,9 @@ async function compileSwiftProjectOnce(
|
|
|
8468
8475
|
: []),
|
|
8469
8476
|
'-c',
|
|
8470
8477
|
'release',
|
|
8471
|
-
...(input.unoptimized
|
|
8478
|
+
...(input.unoptimized ? ['-Xswiftc', '-Onone'] : []),
|
|
8479
|
+
...(perFile
|
|
8472
8480
|
? [
|
|
8473
|
-
'-Xswiftc',
|
|
8474
|
-
'-Onone',
|
|
8475
8481
|
'-Xswiftc',
|
|
8476
8482
|
'-no-whole-module-optimization',
|
|
8477
8483
|
'-Xswiftc',
|
|
@@ -8480,6 +8486,9 @@ async function compileSwiftProjectOnce(
|
|
|
8480
8486
|
String(jobs),
|
|
8481
8487
|
]
|
|
8482
8488
|
: []),
|
|
8489
|
+
...(incrementalPreview
|
|
8490
|
+
? ['-Xswiftc', '-incremental', '-Xswiftc', '-enable-batch-mode']
|
|
8491
|
+
: []),
|
|
8483
8492
|
// the mirror finds a changed sdk header's readers in their
|
|
8484
8493
|
// dependency files, which omit system headers by default
|
|
8485
8494
|
...(mirrorDistribution ? ['-Xswiftc', '-track-system-dependencies'] : []),
|
|
@@ -8489,7 +8498,7 @@ async function compileSwiftProjectOnce(
|
|
|
8489
8498
|
'-Xswiftc',
|
|
8490
8499
|
'-num-threads',
|
|
8491
8500
|
'-Xswiftc',
|
|
8492
|
-
String(
|
|
8501
|
+
String(perFile ? 1 : jobs),
|
|
8493
8502
|
...swiftReproducibleBuildFlags([
|
|
8494
8503
|
[path.dirname(options.toolchainBin), 'toolchain'],
|
|
8495
8504
|
[compileFrameworkRoot, 'framework'],
|
|
@@ -130,12 +130,27 @@ function invalidateDependents(root: string, mirror: string, files: string[]): vo
|
|
|
130
130
|
if (!entry.endsWith('.d')) continue
|
|
131
131
|
const dependencies = path.join(directory, entry)
|
|
132
132
|
if (!names(readFileSync(dependencies))) continue
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
const outputMap = path.join(directory, 'output-file-map.json')
|
|
134
|
+
if (existsSync(outputMap)) {
|
|
135
|
+
// swiftpm can link old objects without regenerating the removed module.
|
|
136
|
+
const outputs: unknown = JSON.parse(readFileSync(outputMap, 'utf8'))
|
|
137
|
+
if (!isRecord(outputs)) throw new Error('invalid SwiftPM output file map')
|
|
138
|
+
for (const output of Object.values(outputs)) {
|
|
139
|
+
if (!isRecord(output))
|
|
140
|
+
throw new Error('invalid SwiftPM output file map entry')
|
|
141
|
+
for (const field of ['object', 'swiftmodule']) {
|
|
142
|
+
const file = output[field]
|
|
143
|
+
if (typeof file === 'string' && path.dirname(file) === directory)
|
|
144
|
+
rmSync(file, { force: true })
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
rmSync(path.join(directory, `${name}.swiftmodule`), { force: true })
|
|
148
|
+
rmSync(path.join(modules, `${name}.swiftmodule`), { force: true })
|
|
149
|
+
break
|
|
150
|
+
}
|
|
151
|
+
// a clang unit's object sits beside its dependency file.
|
|
135
152
|
const object = `${dependencies.slice(0, -'.d'.length)}.o`
|
|
136
|
-
rmSync(
|
|
137
|
-
force: true,
|
|
138
|
-
})
|
|
153
|
+
rmSync(object, { force: true })
|
|
139
154
|
}
|
|
140
155
|
}
|
|
141
156
|
if (headersChanged)
|
package/src/turbo-source.ts
CHANGED
|
@@ -4394,6 +4394,12 @@ std::unordered_map<int, int> fabricTagAliases;
|
|
|
4394
4394
|
using FabricComponentView = UIView<RCTComponentViewProtocol>;
|
|
4395
4395
|
std::unordered_map<int, FabricComponentView *> fabricPeers;
|
|
4396
4396
|
std::unordered_map<int, std::vector<int>> fabricChildren;
|
|
4397
|
+
|
|
4398
|
+
react::ShadowView fabricShadow(UIView *view) {
|
|
4399
|
+
react::ShadowView shadow;
|
|
4400
|
+
shadow.tag = static_cast<react::Tag>(view.tag);
|
|
4401
|
+
return shadow;
|
|
4402
|
+
}
|
|
4397
4403
|
int nextFabricView = 1;
|
|
4398
4404
|
UITextField *fabricFocusField = nil;
|
|
4399
4405
|
bool fabricFocusActive = false;
|
|
@@ -5020,18 +5026,36 @@ ${
|
|
|
5020
5026
|
}
|
|
5021
5027
|
view.family->getEventEmitter()->setEnabled(false);
|
|
5022
5028
|
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
5029
|
+
react::ShadowViewMutationList mutations;
|
|
5030
|
+
for (const auto &[hostId, viewTag] : fabricTagAliases) {
|
|
5031
|
+
if (viewTag != tag) continue;
|
|
5032
|
+
for (const auto &[parent, children] : fabricChildren) {
|
|
5033
|
+
auto child = std::find(children.begin(), children.end(), hostId);
|
|
5034
|
+
if (child == children.end()) continue;
|
|
5035
|
+
mutations.push_back(react::ShadowViewMutation::RemoveMutation(
|
|
5036
|
+
fabricShadow(fabricPeers.at(parent)).tag, fabricShadow(descriptor.view),
|
|
5037
|
+
static_cast<int>(child - children.begin())));
|
|
5038
|
+
break;
|
|
5039
|
+
}
|
|
5040
|
+
}
|
|
5041
|
+
mutations.push_back(react::ShadowViewMutation::DeleteMutation(fabricShadow(descriptor.view)));
|
|
5042
|
+
const react::SurfaceTelemetry telemetry;
|
|
5043
|
+
const react::MountingTransaction transaction(
|
|
5044
|
+
-1, ++fabricTransactions, std::move(mutations), react::TransactionTelemetry{});
|
|
5045
|
+
fabricObservers.notifyObserversMountingTransactionWillMount(transaction, telemetry);
|
|
5023
5046
|
fabricObservers.unregisterViewComponentDescriptor(descriptor, -1);
|
|
5024
5047
|
for (const auto &[hostId, viewTag] : fabricTagAliases) {
|
|
5025
5048
|
if (viewTag != tag) continue;
|
|
5026
5049
|
detachFabricChildren(hostId);
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
if (
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5050
|
+
for (auto &[parent, children] : fabricChildren) {
|
|
5051
|
+
auto child = std::find(children.begin(), children.end(), hostId);
|
|
5052
|
+
if (child == children.end()) continue;
|
|
5053
|
+
[fabricPeers.at(parent) unmountChildComponentView:fabricPeers.at(hostId)
|
|
5054
|
+
index:child - children.begin()];
|
|
5055
|
+
children.erase(child);
|
|
5056
|
+
if (children.empty()) fabricChildren.erase(parent);
|
|
5057
|
+
break;
|
|
5033
5058
|
}
|
|
5034
|
-
if (parentId) detachFabricChildren(*parentId);
|
|
5035
5059
|
fabricPeers.erase(hostId);
|
|
5036
5060
|
}
|
|
5037
5061
|
descriptor.view._peachDrawsInFabricSlot = NO;
|
|
@@ -5048,6 +5072,7 @@ ${
|
|
|
5048
5072
|
if (it->second == tag) it = fabricTagAliases.erase(it);
|
|
5049
5073
|
else ++it;
|
|
5050
5074
|
}
|
|
5075
|
+
fabricObservers.notifyObserversMountingTransactionDidMount(transaction, telemetry);
|
|
5051
5076
|
return jsi::Value::undefined();
|
|
5052
5077
|
});
|
|
5053
5078
|
method("bindTag", 2, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
@@ -5099,27 +5124,22 @@ ${
|
|
|
5099
5124
|
// the mutations RCTMountingManager hands the views observing its
|
|
5100
5125
|
// transactions, such as a stack that pushes the screens mounted into it
|
|
5101
5126
|
react::ShadowViewMutationList mutations;
|
|
5102
|
-
auto shadow = [](UIView *view) {
|
|
5103
|
-
react::ShadowView shadow;
|
|
5104
|
-
shadow.tag = static_cast<react::Tag>(view.tag);
|
|
5105
|
-
return shadow;
|
|
5106
|
-
};
|
|
5107
5127
|
for (int parent : changedParents) {
|
|
5108
5128
|
const auto &previous = fabricChildren.at(parent);
|
|
5109
5129
|
const auto parentTag = static_cast<react::Tag>(fabricPeers.at(parent).tag);
|
|
5110
5130
|
for (size_t index = previous.size(); index > 0; --index)
|
|
5111
5131
|
mutations.push_back(react::ShadowViewMutation::RemoveMutation(
|
|
5112
|
-
parentTag,
|
|
5132
|
+
parentTag, fabricShadow(fabricPeers.at(previous[index - 1])), static_cast<int>(index - 1)));
|
|
5113
5133
|
}
|
|
5114
5134
|
for (const auto &[id, peer] : fabricPeers)
|
|
5115
|
-
if (!active.count(id) && peer.tag) mutations.push_back(react::ShadowViewMutation::DeleteMutation(
|
|
5135
|
+
if (!active.count(id) && peer.tag) mutations.push_back(react::ShadowViewMutation::DeleteMutation(fabricShadow(peer)));
|
|
5116
5136
|
for (const auto &[id, children] : next) {
|
|
5117
5137
|
auto mounted = fabricChildren.find(id);
|
|
5118
5138
|
if (mounted != fabricChildren.end() && mounted->second == children) continue;
|
|
5119
5139
|
const auto parentTag = static_cast<react::Tag>(fabricPeers.at(id).tag);
|
|
5120
5140
|
for (size_t index = 0; index < children.size(); ++index)
|
|
5121
5141
|
mutations.push_back(react::ShadowViewMutation::InsertMutation(
|
|
5122
|
-
parentTag,
|
|
5142
|
+
parentTag, fabricShadow(fabricPeers.at(children[index])), static_cast<int>(index)));
|
|
5123
5143
|
}
|
|
5124
5144
|
std::optional<react::MountingTransaction> transaction;
|
|
5125
5145
|
const react::SurfaceTelemetry telemetry;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { prebuiltExpoNative } from './expo-native-prebuilt'
|
|
1
2
|
import { prepareNativeAppRoot } from './expo-native-workspace'
|
|
2
3
|
import { compiledModuleRequestHandler } from './nitro-bundle'
|
|
3
4
|
import { swiftDistributionRoot } from './swift-distribution'
|
|
@@ -18,6 +19,9 @@ export async function compileWidgetExtension(
|
|
|
18
19
|
appRoot: string,
|
|
19
20
|
origin: string,
|
|
20
21
|
): Promise<{ metadata: SwiftEntryOptions } | null> {
|
|
22
|
+
// a published template build has no WidgetKit extension, and the workspace
|
|
23
|
+
// that would show one is the pod install the published build replaces
|
|
24
|
+
if (await prebuiltExpoNative(appRoot, undefined)) return null
|
|
21
25
|
const projectRoot = await prepareNativeAppRoot(appRoot)
|
|
22
26
|
const workspace = installedXcodeWorkspace(projectRoot)
|
|
23
27
|
if (!workspace) return null
|