Gravatar-SDK-iOS icon indicating copy to clipboard operation
Gravatar-SDK-iOS copied to clipboard

[POC] Script to compare API of 2 versions of the SDK

Open AliSoftware opened this issue 6 months ago • 3 comments

This is a POC to play with swift api-digester / swift package diagnose-api-breaking-changes commands that I learned about today.

My hope was to experiment if we could use those commands to e.g. detecting breaking changes in the API between versions, in order to help us decide on major version bump during new releases, or generating automated API changelogs, etc.

As I explored the commands I figured maybe it could be useful, so I created this Draft PR not particularly with the intent of it being merged, but rather just to be able to save my script and experiment somewhere instead of keeping it on my Mac.

References

Example output

Running ./compare-api.sh 3.2.0-rc.1 from this branch:

image

Running /.compare-api.sh 2.1.1 3.0.0:

image

AliSoftware avatar May 30 '25 11:05 AliSoftware

1 Error
:no_entry_sign: You need to add at least one label to this PR

Generated by :no_entry_sign: Danger

dangermattic avatar May 30 '25 11:05 dangermattic

@andrewdmontgomery I figured you might be curious about this 🙂 Also shared some info about the idea in internal post paaHJt-8vX-p2

AliSoftware avatar May 30 '25 11:05 AliSoftware

App Icon📲 You can test the changes from this Pull Request in Gravatar Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar Prototype Build
Build Number2406
VersionPR #773
Bundle IDcom.automattic.gravatar-sdk-demo-uikit.prototype-build
Commitd3081e6d71f36f64c26bb15c89a7220c5380161f
Installation URL4qurbi1b6sq3g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

wpmobilebot avatar May 30 '25 11:05 wpmobilebot