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

More App Store Version Localization APIs/models. #139

Merged
merged 9 commits into from
May 10, 2021
Merged

More App Store Version Localization APIs/models. #139

merged 9 commits into from
May 10, 2021

Conversation

@VaslD VaslD requested a review from AvdLee as a code owner April 16, 2021 08:01
@VaslD
Copy link
Contributor Author

VaslD commented Apr 16, 2021

Also restructured new files in Xcode project with virtual folders (Group without Folder) because there were just TOO MANY files in one place.

@VaslD VaslD marked this pull request as draft April 16, 2021 09:21
@SwiftLeeBot
Copy link
Collaborator

SwiftLeeBot commented Apr 16, 2021

Messages
📖

View more details on Bitrise

📖 AppStoreConnect-Swift-SDK: Executed 208 tests, with 0 failures (0 unexpected) in 1.102 (1.607) seconds

AppStoreConnect_Swift_SDK.framework: Coverage: 81.33

File Coverage
AppStoreVersionLocalizationUpdateRequest.swift 100.0%
DeleteAppStoreVersionLocalizations.swift 100.0%
ModifyAppStoreVersionLocalization.swift 100.0%
ReadAppStoreVersionLocalization.swift 83.33%
CreateAppStoreVersionLocalization.swift 100.0%
ListAppPreviewSets.swift 82.86%
AppStoreVersionLocalizationCreateRequest.swift 100.0%
ListAppScreenshotSets.swift 91.43%

AppStoreConnect-Swift-SDKTests.xctest: Coverage: 99.65

File Coverage
CreateAppStoreVersionLocalizationTests.swift 100.0%
ListAppPreviewSets.swift 100.0%
ReadAppStoreVersionLocalizationTests.swift 100.0%
ListAppScreenshotSetsTests.swift 100.0%
ModifyAppStoreVersionLocalizationTests.swift 100.0%
DeleteAppStoreVersionLocalizationsTests.swift 100.0%

Generated by 🚫 Danger Swift against 1359414

Copy link
Owner

@AvdLee AvdLee left a 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! 🙂

@AvdLee
Copy link
Owner

AvdLee commented Apr 19, 2021

@VaslD I now realise this is WIP. Let me know if I need to review something again.

@VaslD VaslD marked this pull request as ready for review April 19, 2021 08:12
@VaslD
Copy link
Contributor Author

VaslD commented Apr 19, 2021

@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.

@AvdLee
Copy link
Owner

AvdLee commented Apr 19, 2021

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!

Copy link
Owner

@AvdLee AvdLee left a 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!

@VaslD
Copy link
Contributor Author

VaslD commented Apr 19, 2021

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!

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?

@AvdLee
Copy link
Owner

AvdLee commented Apr 20, 2021

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! 🙂

@VaslD VaslD requested a review from AvdLee April 22, 2021 06:29
Copy link
Owner

@AvdLee AvdLee left a 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! 🚀

@AvdLee AvdLee merged commit 354e5ec into AvdLee:master May 10, 2021
@SwiftLeeBot
Copy link
Collaborator

Congratulations! 🎉 This was released as part of Release 1.5.0 🚀

Generated by GitBuddy

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

Successfully merging this pull request may close these issues.

3 participants