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

Fix unit tests and Array<Never> related bugs #17

Merged
merged 8 commits into from
Mar 26, 2024
Merged

Conversation

apporc
Copy link
Collaborator

@apporc apporc commented Mar 19, 2024

issues:
crashing on anchor-mobile-ios
greymass/anchor#1365

this is a try to fix the chaos `Never` introduced inside this library,
there is a high chance change below is the final source.
swiftlang/swift#64899

At least unit test passes after it removed.
There are also some resulting issues fixed in this commit too.
Issue is: now fileUrl generate random file urls for the same request,
cause the digest of request body is random.

There is a breaking change in swift Foundation's JSONEncoder,
sortedKeys needed now.

For detail, check here: https://developer.apple.com/forums/thread/735895
Copy link
Collaborator

@dafuga dafuga left a comment

Choose a reason for hiding this comment

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

We'll want to make sure to test this properly, but the code looks good to me 👍 Thanks for working on this 🙏

Copy link
Collaborator

@dafuga dafuga left a comment

Choose a reason for hiding this comment

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

Code looks good, but since the issue was happening on iOS 15 and 16, I think we should make sure that the crash has disappeared from those versions before we merge this into master.

@dafuga dafuga merged commit 4dd389c into master Mar 26, 2024
2 checks passed
@dafuga dafuga deleted the apporc_working branch March 26, 2024 17:45
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.

2 participants