File tree Expand file tree Collapse file tree 4 files changed +2
-11
lines changed
packages/host/src/node/cli Expand file tree Collapse file tree 4 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ const ANDROID_ARCHITECTURES = [
1919export 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 } ) ;
Original file line number Diff line number Diff line change @@ -482,7 +482,6 @@ export function determineFrameworkSlice(): {
482482}
483483
484484export 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 &&
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export type LinkModulesOptions = {
3030
3131export 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 ) {
Original file line number Diff line number Diff line change 11import assert from "node:assert" ;
22import path from "node:path" ;
33import 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".
You can’t perform that action at this time.
0 commit comments