Skip to content

Commit

Permalink
Update CLI and template for new setup
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer committed Nov 6, 2023
1 parent ab331c8 commit 78eb2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/util/spm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function generatePackageFile(
const index = parseInt(lineIndex)


if (line[index].includes('dependencies: [') && line[index+1].includes('.package(name: "Capacitor"')) {
if (line[index].includes('dependencies: [') && line[index+1].includes('.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")')) {
let tempIndex = index+1
while (!line[tempIndex].includes('],')) {
const swiftPack = readSwiftPackage(line[tempIndex])
Expand All @@ -70,7 +70,7 @@ export async function generatePackageFile(
}
}

if (line[index].includes('.package(name: "Capacitor"')) {
if (line[index].includes('.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")')) {
textToWrite += line[index] + ',\n';
for (const swiftPlugin of swiftPluginList) {
const name = readSwiftPackage(swiftPlugin) ?? ""
Expand Down

0 comments on commit 78eb2c4

Please sign in to comment.