Skip to content

Commit a1ff2db

Browse files
committed
Cleaning up
1 parent 4416ba1 commit a1ff2db

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

packages/host/src/node/cli/android.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ const ANDROID_ARCHITECTURES = [
1919
export async function linkAndroidDir({
2020
modulePath,
2121
naming,
22-
platform,
2322
}: LinkModuleOptions): Promise<LinkModuleResult> {
2423
const libraryName = getLibraryName(modulePath, naming);
25-
const outputPath = getLinkedModuleOutputPath(platform, modulePath, naming);
24+
const outputPath = getLinkedModuleOutputPath("android", modulePath, naming);
2625

2726
await fs.promises.rm(outputPath, { recursive: true, force: true });
2827
await fs.promises.cp(modulePath, outputPath, { recursive: true });

packages/host/src/node/cli/apple.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,6 @@ export function determineFrameworkSlice(): {
482482
}
483483

484484
export async function linkXcframework({
485-
platform,
486485
modulePath,
487486
naming,
488487
outputPath: outputParentPath,
@@ -502,12 +501,7 @@ export async function linkXcframework({
502501

503502
const info = await readXcframeworkInfo(path.join(modulePath, "Info.plist"));
504503

505-
// TODO: Assert the existence of environment variables injected by Xcodebuild
506-
// TODO: Pick and assert the existence of the right framework slice based on the environment variables
507-
// TODO: Link the framework into the output path
508-
509504
const expectedSlice = determineFrameworkSlice();
510-
511505
const framework = info.AvailableLibraries.find((framework) => {
512506
return (
513507
expectedSlice.platform === framework.SupportedPlatform &&

packages/host/src/node/cli/link-modules.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type LinkModulesOptions = {
3030

3131
export type LinkModuleOptions = Omit<
3232
LinkModulesOptions,
33-
"fromPath" | "linker"
33+
"fromPath" | "linker" | "platform"
3434
> & {
3535
modulePath: string;
3636
};
@@ -95,7 +95,6 @@ export async function linkModules({
9595
return await linker({
9696
modulePath: originalPath,
9797
naming,
98-
platform,
9998
});
10099
} catch (error) {
101100
if (error instanceof SpawnFailure) {

packages/host/src/node/cli/xcode-helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import assert from "node:assert";
22
import path from "node:path";
33
import fs from "node:fs";
4-
import cp from "node:child_process";
54

65
// Using xmldom here because this is what @expo/plist uses internally and we might as well re-use it here.
76
// Types come from packages/host/types/xmldom.d.ts (path mapping in tsconfig.node.json) to avoid pulling in lib "dom".

0 commit comments

Comments
 (0)