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

Swift support #13

Open
victor-pavlychko opened this issue Sep 19, 2021 · 0 comments
Open

Swift support #13

victor-pavlychko opened this issue Sep 19, 2021 · 0 comments

Comments

@victor-pavlychko
Copy link

victor-pavlychko commented Sep 19, 2021

Hey Matt!

Some time ago, I was looking for a “user-friendly” way to browse changes in the SDK and started https://sdk.news. I built a simple crawler to collect the data from developer.apple.com 😱

Recently, I found your project and started experimenting with objc-diff and SwiftSyntax to implements swift API diffing.

My fork introduces the following changes:

  • converted the project to the swift package manage and slightly restructured the original app itself into separate modules: main, objc diffing, reporting
  • implemented syntax analyzer library based on SwiftSyntax
  • implemented swift diffing and integrated it into the project

The implementation has some quirks; specifically, I can think of the following limitations:

  • I only focused on swiftinterface files; multiple source files are not supported
  • I assumed that all type names are fully qualified which seems to be the case for swiftinterface files

This still early work, but looks like I can successfully generate diff for SwiftUI for iOS 15! Please let me know if you are interested in merging such changes upstream once I’m done with the functionality. Here is the link to my current changes — https://github.com/victor-pavlychko/objc-diff/pulls

Additionally, as I already have a domain, I would like to propose starting a GitHub team/project to publish diffs there 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant