-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
More App Store Version Localization APIs/models. #139
Conversation
Also restructured new files in Xcode project with virtual folders (Group without Folder) because there were just TOO MANY files in one place. |
AppStoreConnect_Swift_SDK.framework: Coverage: 81.33
AppStoreConnect-Swift-SDKTests.xctest: Coverage: 99.65
Generated by 🚫 Danger Swift against 1359414 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your contribution! Especially restructuring the project, that always helps! 🙂
@VaslD I now realise this is WIP. Let me know if I need to review something again. |
I converted it to WIP because of linter check failures. They should be all fixed now. Also added App Preview Sets related APIs so everything in this chapter is available: https://developer.apple.com/documentation/appstoreconnectapi/app_metadata/app_store_version_localizations I did not write unit tests. I've been using these in a project so I think I can test them against Apple's production endpoints and correct any issue that may rise. |
Unfortunately, that's not really something we can build forward on. All endpoints have been tested so far IIRC and if we were to depend on real-life testing, we would never write unit tests anymore, right? ;-) It should be fairly easy to write those tests though! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the tests are added, it should be good to go!
Yeah... I was trying to say that I actively use this branch so I will fix any error that I encounter right away even without unit testing. I wasn't trying to use that as an excuse. Anyway, I looked at existing tests and it seemed they only mocked request URL building but not actual HTTP exchanges (by using fake or old responses). Did I get this right? That basically I only need to verify that the URLs constructed by new endpoints are correct? |
Exactly! 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for taking the time to write the tests after asking! Looks good to me! 🚀
Congratulations! 🎉 This was released as part of Release 1.5.0 🚀 Generated by GitBuddy |
These APIs are now available:
This API is already in master:
This API is not included because I do not know exactly what it does:https://developer.apple.com/documentation/appstoreconnectapi/list_all_app_preview_sets_for_an_app_store_version_localizationIt seems my app didn't make use of this App Store feature but I'll probably add it anyway in upcoming days.