-
Notifications
You must be signed in to change notification settings - Fork 85
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 #68 #70
Fix #68 #70
Conversation
Looks great! One added side-effect of your change is that the Objective-C runtime is no longer necessary to build the SDK which opens up nice possibilities for building on Linux in the future. Would you be able to remove the |
Sure thing. Unfortunately my fix wasn't complete, I forgot to transfer the context in However, in the meantime: Is |
wowzas. I can't believe I never noticed that space was not being assiged. Updating the
|
An added test asserting the the space is not nil on the client would be nice as well. |
The Client object is passed as Map.context instead of using objc_setAssociatedObject. Also the locale resolution has been fixed.
…letion block is called.
I've spent ~8h debugging and fixing and stretched the consent of my project manager already quite a bit, so I've to leave the test implementation to the paid employee ;-) It turned out that the default locale fallback was a bit of a mess, too. BTW, maybe the This patch applied on your 0.4.1 release is working for us now. We still got issues with the unreleased 0.5.0, but we're going to ignore that for now. |
Hey @sebastianludwig, it turns out locale handling was my next task even before your and your colleague opened these new issues yesterday and today. I'm a bit confused as to how you'd like to proceed. Did you want to make the changes to the |
Internally we're working with If you also want to fix the Before we switch to |
Ok. If things are working on your end, I think it makes sense to merge this PR and then I'lll move forward with adding more tests and also continuing to improve logic around locales. I will also update contentful-persistence.swift as soon as the work on locales is done here and then ping you guys to do some testing. I think it will be too much work to fork a maintenance branch for the If it's alright with you, I'll be tagging you both you and @tapwork in the changelog for the next release. Merging this PR will automatically close the referenced issue #68. Is that ok? |
Fix by passing the Client object as
Map.context
instead of usingobjc_setAssociatedObject
.