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

[MVP] Switching to a swift command line tool #1718

Merged
merged 69 commits into from
Jul 3, 2024

Conversation

goergisn
Copy link
Contributor

@goergisn goergisn commented Jun 17, 2024

Summary

  • Introducing a swift command line tool to generate a diff between 2 versions of the Checkout SDK

Output

Without public changes

Screenshot 2024-06-21 at 15 01 15

With public changes (Shortened for the sake of showcasing)

Screenshot 2024-06-21 at 16 33 07

TODO for a future PR

  • Full Unittest Coverage
  • Complete Documentation

github-actions[bot]
github-actions bot previously approved these changes Jun 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Jun 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Jun 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Jun 21, 2024
nauaros
nauaros previously approved these changes Jun 26, 2024
atmamont
atmamont previously approved these changes Jun 27, 2024
Copy link
Contributor

@atmamont atmamont left a comment

Choose a reason for hiding this comment

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

Great stuff Alex,
a few nitpicks from me, more like questions to think about rather than fixes.
I didn't review the diff part, assuming it's the same as in the previous PRs

"Cartfile"
]

let fileExtensionIgnoreList: Set<String> = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't these two sets be combined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, not too happy with these lists either - would have to replace it with a regex - I added a TODO to tackle in another PR

let destinationFilePath = destinationDirectoryPath.appending("/\(fileName)")

// Using shell here as it's faster than the FileManager
shell.execute("cp -a \(sourceFilePath) \(destinationFilePath)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we sanitize user input anywhere? I quickly scanned changes and didn't find it right away.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No there is no explicit sanitization going on here but because of previous calls we know that the paths are valid file paths. Might want to revisit this decision though

@goergisn goergisn dismissed stale reviews from atmamont, nauaros, and github-actions[bot] via 11b29b7 June 27, 2024 10:40
github-actions[bot]
github-actions bot previously approved these changes Jun 27, 2024
Copy link
Contributor

github-actions bot commented Jul 2, 2024

✅ No changes detected

Comparing /Users/runner/work/adyen-ios/adyen-ios to https://github.com/Adyen/adyen-ios.git @ develop


Analyzed modules: Adyen, AdyenActions, AdyenCard, AdyenCashAppPay, AdyenComponents, AdyenDelegatedAuthentication, AdyenDropIn, AdyenEncryption, AdyenSession, AdyenSwiftUI, AdyenTwint, AdyenWeChatPay

Copy link

sonarqubecloud bot commented Jul 2, 2024

@goergisn goergisn requested review from atmamont and nauaros July 3, 2024 09:10
@goergisn goergisn merged commit 032ea01 into develop Jul 3, 2024
12 checks passed
@goergisn goergisn deleted the api_change_detection_swift_only branch July 3, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore a pull request that has chore changes that shouldn't be in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants