Skip to content

Commit

Permalink
Update remote Swift packages annotations to match Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-pod committed Sep 28, 2023
1 parent de61027 commit d706292
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

##### Bug Fixes

* None.
* Update remote Swift packages annotations to match Xcode
[alexandre-pod](https://github.com/alexandre-pod)
[#920](https://github.com/CocoaPods/Xcodeproj/pull/920)


## 1.23.0 (2023-09-22)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class XCRemoteSwiftPackageReference < AbstractObject
#--------------------------------------#

def ascii_plist_annotation
" #{isa} \"#{File.basename(display_name)}\" "
" #{isa} \"#{File.basename(display_name,".git")}\" "
end

# @return [String] the name of the remote Swift package reference.
Expand Down
5 changes: 5 additions & 0 deletions spec/project/object/swift_package_remote_reference_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ module ProjectSpecs
@proxy.repositoryURL = 'github.com/swift/package'
@proxy.ascii_plist_annotation.should == ' XCRemoteSwiftPackageReference "package" '
end

it 'returns the ascii plist annotation without the .git extension of repositoryURL' do
@proxy.repositoryURL = 'github.com/swift/package.git'
@proxy.ascii_plist_annotation.should == ' XCRemoteSwiftPackageReference "package" '
end
end
end

0 comments on commit d706292

Please sign in to comment.