Skip to content

Commit

Permalink
Merge pull request #52 from Rallista/fix/write-swift-package-issue
Browse files Browse the repository at this point in the history
fix: corrects wrong var in write_xcframework_spm script
  • Loading branch information
Archdoog authored Oct 22, 2024
2 parents ae26090 + d4b5bda commit 3e5c187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var binaryTarget: Target = .binaryTarget(
)

// CI will replace the nils with the actual values when building a release
let version: String = ""
let version: String = "0.1.4"
let binaryURL: String =
"https://github.com/Rallista/valhalla-mobile/releases/download/\(version)/valhalla-wrapper.xcframework.zip"
let binaryChecksum: String = "55cc42fb0aa758f65e320155b1c612a2a830fe1d0fcbad62f0c040ec4c00705e"
Expand Down
2 changes: 1 addition & 1 deletion scripts/write_xcframework_spm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Release URL: ${artifact_url}"
# sed -i '' "s|^let useLocalBinary: Bool = .*|let useLocalBinary: Bool = false|" Package.swift

# Replace `let version` line with the new binary url for the release artifact in Package.swift
sed -i '' "s|^let version: String = .*|let version: String = \"$version\"|" Package.swift
sed -i '' "s|^let version: String = .*|let version: String = \"$release_tag\"|" Package.swift

# Replace let binaryChecksum: String? = nil with the new binary checksum for the release artifact in Package.swift
sed -i '' "s|^let binaryChecksum: String = .*|let binaryChecksum: String = \"$xcframework_checksum\"|" Package.swift

0 comments on commit 3e5c187

Please sign in to comment.