File tree Expand file tree Collapse file tree
packages/react-native/scripts/spm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -822,15 +822,6 @@ function expandSpmSourceGlobs(
822822 return micromatch ( walkSourceFiles ( sourcePath ) , patterns ) . sort ( ) ;
823823}
824824
825- /**
826- * Converts an autolinking.json dependency to an SPM target spec.
827- * Returns null if the dependency doesn't have iOS support.
828- *
829- * `swiftNameByNpm` maps each autolinked dep's npm name to its resolved Swift
830- * name (populated by expandSpmDependencies from the dep's podspec and
831- * `spm.name`). Every name this function emits comes from there — see
832- * requireSwiftName.
833- */
834825/**
835826 * The Swift name expandSpmDependencies resolved for `npmName`, or a hard error:
836827 * re-deriving one here would emit a reference nothing in the graph matches.
@@ -847,6 +838,15 @@ function requireSwiftName(
847838 return resolved ;
848839}
849840
841+ /**
842+ * Converts an autolinking.json dependency to an SPM target spec.
843+ * Returns null if the dependency doesn't have iOS support.
844+ *
845+ * `swiftNameByNpm` maps each autolinked dep's npm name to its resolved Swift
846+ * name (populated by expandSpmDependencies from the dep's podspec and
847+ * `spm.name`). Every name this function emits comes from there — see
848+ * requireSwiftName.
849+ */
850850function autolinkingDepToSpmTarget (
851851 depName /*: string */ ,
852852 dep /*: AutolinkedDep */ ,
You can’t perform that action at this time.
0 commit comments