-
-
Notifications
You must be signed in to change notification settings - Fork 875
Don't use NSURLCache API not available in Catalyst #1469
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
Don't use NSURLCache API not available in Catalyst #1469
Conversation
Hi @toto, some of the test seem to be passing now. Is this ready for review as far as you’re concerned? |
Functionally it should be done (I have a catalyst app using this code). I will look into the tests some more but it can be reviewed. |
Cool, I haven’t used used Catalyst so not in the best position to review. @parse-community/ios-osx anyone willing & able to review this? |
I am in no position to review officially but the changes look good to me and match my original pull request #1460. I have not had a chance to test the app id prefix removal but looks good as well and is definitely required to make push notifications work. |
I fixed the macOS tests. It seems Xcode 11 defaults to parallel tests, which some of the filesystem based tests don't really like. Also the address sanatizer causes crashes during tests so I disabled it. It's a bit strange since it does not seem to be a problem in real world usage from what I can tell. |
At some (not to distant point) I guess we need to move to the non-legacy build system. Which from a few tests does not seem a smooth transition for the test suite. |
For some reason the travis integration failed when travis ran jazzy. Which is weird because the jazzy script shouldnt run on that test.
This is where it times out. |
Strange. I was wondering what jazzy was doing. In other news. I think we need to add a bit of docs regarding catalyst. The change here fixes the bundle identifier in the default configuration. However it is possible |
I think that is a great Idea. I'd be interested in hearing about Carthage because right now I'm having issues with and getting builds and dependencies to match up because of what Xcode 11 environment converting targets to use Catalyst automatically. In fact we are working right now on our own fork of Bolts because its main build doesn't work with catalyst and we cant simply use the Bolts/Task submodule. So we are having to figure out how to make this work with Carthage when building with Circle and Travis. In fact, if you wouldn't mind could you take a look at the issue here? Although this is for the ParseLiveQuery iOS sdk but this same issue is keeping us from doing releases on the iOS Parse repo as well. Any advice would be helpful. This currently is keeping us from doing releases. I'm going to go ahead and approve this and we can merge it in. None of the reasons builds failed had anything to do with your code. |
@noobs2ninjas Sure I will take a look at parse-community/ParseLiveQuery-iOS-OSX#210 |
Hey @toto I didnt realize another pull request was out for this same issue right before you did your pull request. If you want to catch the branch up and see if theres anything you can do to improve feel free. |
4b916b7
to
200fb1d
Compare
@noobs2ninjas I bought up the branch to |
Thanks @toto! |
Sorry if this is a redundant question, but I promise I looked. When will the release that this feature is in be released? Where do I find the project's release schedule for future reference? Thanks! |
We don’t have a release schedule. It would be good to get a release out soon - @drdaz @noobs2ninjas - I think we’re ready for a release? I believe the release build is still broken so we may require a manual publish to cocoa pods. |
Hello! I'll try and get the cocoapods build fixed during the week, then there should be nothing standing in the way of a release. I'm also pretty close to having an implementation of Sign in with Apple working in ParseUI, so maybe we can sneak that in 🙂 |
Changes
NSURLCache
on catalystmaccatalyst.
prefix from bundle ID before registeringPFInstallation
The deprecated API allows the parse SDK to be linked for Mac Catalyst apps and the Xcode 11 SDKs (iOS 13, macOS 10.15, etc.) in general.
In addition to this it also removes the
maccatalyst.
prefix added by Catalyst from the bundle ID. The reasoning is that a Catalyst app should be treated as a iOS App just running on the Mac in all regards. If this is not done some things will not work (e.g. sending push notifications fails since thetopic
is wrong (usingmaccatalyst.com.example.app
instead ofcom.example.app
which is correct. If the SDK user wants to distinguish Catalyst installationschannels
are a better choice.