mongodb / stitch-ios-sdk

Apache License 2.0
42 stars 25 forks source link

Integrate with project that has Objective-C code #151

Closed long1eu closed 5 years ago

long1eu commented 5 years ago

Any docs on how to implement this in an ObjC project?

jsflax commented 5 years ago

There is no reliable way to do this at the moment. Our modules can be imported into Objective-C without issue, but none of our classes or methods are actually exposed.

long1eu commented 5 years ago

Would it be hard to get them exposed?

jsflax commented 5 years ago

It wouldn't necessarily be difficult, but we haven't done the research to check if it is doable.

Our modules were structured with only Swift in mind. While adding the @objc flag all over the codebase is simple enough, it would likely have side effects that would need to be solved, especially given our reliance on other libraries (including the Swift Mongo Driver).

All that said, there are future plans to make an Obj-C compatible SDK.

long1eu commented 5 years ago

I just spent a day trying to integrate it. Full of bitter I say with all my heart that I hate Everything related to stitch. Thanks.

long1eu commented 5 years ago

is there a rest endpoint that i can call with the custom jwt?