@@ -45,6 +45,13 @@ struct MarketingVersion: ParsableCommand {
4545 try content. write ( toFile: url. path, atomically: true , encoding: . utf8)
4646 }
4747
48+ func runCarthageVersionUpdate( ) throws {
49+ let cartfileURL = projectPathURL. appendingPathComponent ( " Tests/Integration/Carthage/Cartfile " )
50+ try replaceLineContaining ( " binary \" https://api.mapbox.com/downloads/v2/carthage/mapbox-common/ " ,
51+ with: " binary \" https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json \" == \( marketingVersion) " ,
52+ in: cartfileURL)
53+ }
54+
4855 func runCocoaPodsVersionUpdate( ) throws {
4956 let podfileURL = projectPathURL. appendingPathComponent ( " Tests/Integration/CocoaPods/Podfile " )
5057 try replaceLineContaining ( " pod 'MapboxCommon' " ,
@@ -54,8 +61,8 @@ struct MarketingVersion: ParsableCommand {
5461
5562 func runSPMVersionUpdate( ) throws {
5663 let spmManifestURL = projectPathURL. appendingPathComponent ( " Tests/Integration/SPM/project.yml " )
57- try replaceLineContaining ( " branch: release/ v " ,
58- with: " branch: release/ v \( marketingVersion) " ,
64+ try replaceLineContaining ( " branch: v " ,
65+ with: " branch: v \( marketingVersion) " ,
5966 in: spmManifestURL)
6067 let spmPackageURL = projectPathURL. appendingPathComponent ( " Package.swift " )
6168 try replaceLineContaining ( " let version = " ,
@@ -78,6 +85,7 @@ struct MarketingVersion: ParsableCommand {
7885 mutating func run( ) throws {
7986 try runCocoaPodsVersionUpdate ( )
8087 try runSPMVersionUpdate ( )
88+ try runCarthageVersionUpdate ( )
8189
8290 if isPreRelease {
8391 print ( " Not updating README.md because this is a proper release. " )
0 commit comments