peachsim 0.1.1866 → 0.1.1868
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 +14 -6
- 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 +13 -5
- 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 +14 -6
- 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 +1 -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 +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 +14 -6
- 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 +5 -4
- 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/engine/node.d.ts +1 -0
- package/package.json +1 -1
- package/src/expo-swift-host.ts +9 -0
- package/src/swift-standin-emit.ts +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1868 | (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.1868 | (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.1868 | (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.1868 | (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.1868 | (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.1868 | (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;
|
|
@@ -41516,7 +41516,8 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
|
|
|
41516
41516
|
});
|
|
41517
41517
|
for (const kase of cases) {
|
|
41518
41518
|
const memberId = `${id}-${kase.leaf}`;
|
|
41519
|
-
const
|
|
41519
|
+
const written = /^`?[A-Za-z_]\w*`?/.exec(kase.text)[0];
|
|
41520
|
+
const rest = kase.text.slice(written.length);
|
|
41520
41521
|
symbols.push({
|
|
41521
41522
|
kind: { identifier: "swift.enum.case" },
|
|
41522
41523
|
identifier: { precise: memberId },
|
|
@@ -41524,7 +41525,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
|
|
|
41524
41525
|
declarationFragments: [
|
|
41525
41526
|
{ kind: "keyword", spelling: "case" },
|
|
41526
41527
|
{ kind: "text", spelling: " " },
|
|
41527
|
-
{ kind: "identifier", spelling:
|
|
41528
|
+
{ kind: "identifier", spelling: written },
|
|
41528
41529
|
...rest ? [{ kind: "text", spelling: rest }] : []
|
|
41529
41530
|
],
|
|
41530
41531
|
accessLevel: "public"
|
|
@@ -58551,7 +58552,7 @@ var init_swift_standin_digest = __esm({
|
|
|
58551
58552
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
58552
58553
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
58553
58554
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
58554
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
58555
|
+
STANDIN_SOURCE_DIGEST = true ? "465652fca6da92d6cc515592df22e2be806c1dac3eedbda9ad005f9e644c5c4f" : standinSourceDigest();
|
|
58555
58556
|
}
|
|
58556
58557
|
});
|
|
58557
58558
|
|
|
@@ -59262,7 +59263,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
59262
59263
|
init_swift_native_pin();
|
|
59263
59264
|
init_xcode_project();
|
|
59264
59265
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
59265
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
59266
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "c784b9659a69bcaa7d004cfe1c8592ec9abe2c460b7789418774103583ca5f94" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
59266
59267
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
59267
59268
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
59268
59269
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -74288,6 +74289,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
74288
74289
|
const boundaryName = sourceBoundary === appRoot ? "app root" : "module root";
|
|
74289
74290
|
const directories2 = /* @__PURE__ */ new Set();
|
|
74290
74291
|
const sources = /* @__PURE__ */ new Set();
|
|
74292
|
+
const nativeSources = /* @__PURE__ */ new Set();
|
|
74291
74293
|
const resolveSource = (file) => {
|
|
74292
74294
|
let target;
|
|
74293
74295
|
try {
|
|
@@ -74320,6 +74322,8 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
74320
74322
|
walk3(file, binary2 || framework);
|
|
74321
74323
|
continue;
|
|
74322
74324
|
}
|
|
74325
|
+
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
|
|
74326
|
+
nativeSources.add(import_node_path75.default.relative(ios, file));
|
|
74323
74327
|
if (!target.isFile() || !child.name.endsWith(".swift")) continue;
|
|
74324
74328
|
const source = linked ?? resolveSource(file);
|
|
74325
74329
|
if (sources.has(source)) continue;
|
|
@@ -74367,6 +74371,10 @@ ${import_node_fs78.default.readFileSync(source, "utf8")}`;
|
|
|
74367
74371
|
} else {
|
|
74368
74372
|
walk3(ios);
|
|
74369
74373
|
walkFrameworks(canonical);
|
|
74374
|
+
if (nativeSources.size > 0 && !prepareNative)
|
|
74375
|
+
report(
|
|
74376
|
+
`${packageName}: ${namespace} has Objective-C or C sources (${[...nativeSources].sort()[0]}), which compile only from a CocoaPods workspace a Mac prepares; not compiled`
|
|
74377
|
+
);
|
|
74370
74378
|
}
|
|
74371
74379
|
const podspec = import_node_fs78.default.existsSync(ios) ? import_node_fs78.default.readdirSync(ios).find((name3) => name3.endsWith(".podspec")) : void 0;
|
|
74372
74380
|
const absentFrameworks = [];
|
|
@@ -77029,7 +77037,7 @@ var init_nitro_superset = __esm({
|
|
|
77029
77037
|
init_swift_standin_digest();
|
|
77030
77038
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
77031
77039
|
packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path83.join)(root, "package.json"), "utf8")).version;
|
|
77032
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
77040
|
+
NITRO_COMPILER_DIGEST = true ? "9e8f2e869315f2a7a16dab926557389374f4eb889f211cba1e99904208de6df8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
77033
77041
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
77034
77042
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
77035
77043
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1868 | (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.1868 | (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.1868 | (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.1868 | (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.1868 | (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.1868 | (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;
|
|
@@ -6083,7 +6083,8 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
|
|
|
6083
6083
|
});
|
|
6084
6084
|
for (const kase of cases) {
|
|
6085
6085
|
const memberId = `${id}-${kase.leaf}`;
|
|
6086
|
-
const
|
|
6086
|
+
const written = /^`?[A-Za-z_]\w*`?/.exec(kase.text)[0];
|
|
6087
|
+
const rest = kase.text.slice(written.length);
|
|
6087
6088
|
symbols.push({
|
|
6088
6089
|
kind: { identifier: "swift.enum.case" },
|
|
6089
6090
|
identifier: { precise: memberId },
|
|
@@ -6091,7 +6092,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
|
|
|
6091
6092
|
declarationFragments: [
|
|
6092
6093
|
{ kind: "keyword", spelling: "case" },
|
|
6093
6094
|
{ kind: "text", spelling: " " },
|
|
6094
|
-
{ kind: "identifier", spelling:
|
|
6095
|
+
{ kind: "identifier", spelling: written },
|
|
6095
6096
|
...rest ? [{ kind: "text", spelling: rest }] : []
|
|
6096
6097
|
],
|
|
6097
6098
|
accessLevel: "public"
|
|
@@ -24892,7 +24893,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
24892
24893
|
return hash.digest("hex");
|
|
24893
24894
|
}
|
|
24894
24895
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
24895
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
24896
|
+
var STANDIN_SOURCE_DIGEST = true ? "465652fca6da92d6cc515592df22e2be806c1dac3eedbda9ad005f9e644c5c4f" : standinSourceDigest();
|
|
24896
24897
|
|
|
24897
24898
|
// src/swift-standins.ts
|
|
24898
24899
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1868 | (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.1868 | (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;
|
|
@@ -74,6 +74,7 @@ export declare function markWireNodeChanged(node?: SootSimNode | SootSimTextNode
|
|
|
74
74
|
export declare function setStyleChangeListener(listener: (node: SootSimNode) => void): void;
|
|
75
75
|
export declare function hasUnownedLiveAnimatedStyle(node: SootSimNode): boolean;
|
|
76
76
|
export declare function refreshLiveAnimatedSceneGeometry(node: SootSimNode): void;
|
|
77
|
+
export declare function propsPaintChange(previous: Record<string, unknown>, next: Record<string, unknown>): PaintChange;
|
|
77
78
|
export declare function batchStyleWrites(node: object, write: () => void): void;
|
|
78
79
|
export declare function markWireStyleChanged(node: SootSimNode, paintChange?: PaintChange): void;
|
|
79
80
|
export declare function hasInterfaceStyleNodes(root: SootSimNode): boolean;
|
package/package.json
CHANGED
package/src/expo-swift-host.ts
CHANGED
|
@@ -1271,6 +1271,7 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1271
1271
|
const boundaryName = sourceBoundary === appRoot ? 'app root' : 'module root'
|
|
1272
1272
|
const directories = new Set<string>()
|
|
1273
1273
|
const sources = new Set<string>()
|
|
1274
|
+
const nativeSources = new Set<string>()
|
|
1274
1275
|
const resolveSource = (file: string) => {
|
|
1275
1276
|
let target: string
|
|
1276
1277
|
try {
|
|
@@ -1310,6 +1311,8 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1310
1311
|
walk(file, binary || framework)
|
|
1311
1312
|
continue
|
|
1312
1313
|
}
|
|
1314
|
+
if (!binary && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
|
|
1315
|
+
nativeSources.add(path.relative(ios, file))
|
|
1313
1316
|
if (!target.isFile() || !child.name.endsWith('.swift')) continue
|
|
1314
1317
|
const source = linked ?? resolveSource(file)
|
|
1315
1318
|
if (sources.has(source)) continue
|
|
@@ -1373,6 +1376,12 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1373
1376
|
} else {
|
|
1374
1377
|
walk(ios)
|
|
1375
1378
|
walkFrameworks(canonical)
|
|
1379
|
+
// this path compiles Swift alone; a Swift file reaching the pod's own
|
|
1380
|
+
// Objective-C or C types would fail with errors that name no cause.
|
|
1381
|
+
if (nativeSources.size > 0 && !prepareNative)
|
|
1382
|
+
report(
|
|
1383
|
+
`${packageName}: ${namespace} has Objective-C or C sources (${[...nativeSources].sort()[0]}), which compile only from a CocoaPods workspace a Mac prepares; not compiled`,
|
|
1384
|
+
)
|
|
1376
1385
|
}
|
|
1377
1386
|
// a module compiled from its own source declares its iOS floor in its
|
|
1378
1387
|
// podspec; CocoaPods builds the pod at that floor.
|
|
@@ -562,7 +562,8 @@ export function synthesizedInterfaceEnums(
|
|
|
562
562
|
for (const kase of cases) {
|
|
563
563
|
const memberId = `${id}-${kase.leaf}`
|
|
564
564
|
// the leaf is a prefix; the rest rides verbatim.
|
|
565
|
-
const
|
|
565
|
+
const written = /^`?[A-Za-z_]\w*`?/.exec(kase.text)![0]
|
|
566
|
+
const rest = kase.text.slice(written.length)
|
|
566
567
|
symbols.push({
|
|
567
568
|
kind: { identifier: 'swift.enum.case' },
|
|
568
569
|
identifier: { precise: memberId },
|
|
@@ -570,7 +571,7 @@ export function synthesizedInterfaceEnums(
|
|
|
570
571
|
declarationFragments: [
|
|
571
572
|
{ kind: 'keyword', spelling: 'case' },
|
|
572
573
|
{ kind: 'text', spelling: ' ' },
|
|
573
|
-
{ kind: 'identifier', spelling:
|
|
574
|
+
{ kind: 'identifier', spelling: written },
|
|
574
575
|
...(rest ? [{ kind: 'text', spelling: rest }] : []),
|
|
575
576
|
],
|
|
576
577
|
accessLevel: 'public',
|