BranchMetrics / sdk-release

TUNE iOS, Android, and Windows native SDKs
https://developers.tune.com/sdk/quick-starts/
GNU General Public License v3.0
55 stars 46 forks source link

SDK Obj-C headers lack Swift annotations #30

Closed PatInANutshell closed 7 years ago

PatInANutshell commented 7 years ago

Xcode will treat the lack of annotations as implicitly unwrapped optionals, which will cause exceptions if you pass in nil, which in many cases is a valid value for properties or arguments. It also forces calls to treat new instances as optional when they don't need to be.

ghost commented 7 years ago

I think this is a dupe of https://github.com/TuneOSS/sdk-release/issues/27, or at least I hope to solve them both at the same time