Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Swift Package Manager support [SDK-2118] #646

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Nov 19, 2020

Changes

This PR adds support for the Swift Package Manager (SPM). The Package.swift file defines 2 targets: Lock for the library code and a test target for the tests.
No public APIs were added or modified.

References

Testing

The changes were tested manually as follows:

  • New apps were created
  • Lock.swift was added to these apps
  • A username/password login was performed

Those tests were executed with:

  • SPM and Xcode 12 on macOS Catalina + BigSur
  • CocoaPods and Xcode 12 on macOS Catalina + BigSur
  • Carthage and Xcode 11 on macOS Catalina
  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@Widcket Widcket requested a review from a team as a code owner November 19, 2020 05:01
@Widcket Widcket requested a review from cocojoe November 19, 2020 05:02
@Widcket
Copy link
Contributor Author

Widcket commented Nov 19, 2020

@cocojoe when you review it, can you please remove the old CI checks that were re-enabled by the automation script? The only CircleCI job that should remain is ci/circleci: build-and-test-swift-5_2.

@@ -55,11 +56,10 @@ class CountryTableViewControllerSpec: QuickSpec {

it("should return cell info for Argentina") {
let index = IndexPath(item: 8, section: 0)
expect(tableView.cellForRow(at: index)?.textLabel?.text) == "Argentina"
expect(tableView.cellForRow(at: index)?.detailTextLabel?.text) == "+54"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are failing on master with Xcode 12.

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Widcket Widcket merged commit 88f9f93 into master Dec 1, 2020
@Widcket Widcket deleted the feature/spm-support branch December 1, 2020 13:24
@Widcket Widcket added this to the 2.21.0 milestone Dec 4, 2020
@Widcket Widcket mentioned this pull request Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swift Package Manager support [SDK-2118]
2 participants