BlueRiverInteractive / robovm-ios-bindings

[Deprecated] New bindings: https://github.com/robovm/robovm-robopods. A collection of third party bindings for RoboVM iOS
Apache License 2.0
162 stars 101 forks source link

GameCenter binding does now compile with RoboVM 1.9 #185

Open titovmaxim opened 8 years ago

titovmaxim commented 8 years ago

The app does not compile since update to RoboVM 1.9. The reason is that the following methods are missing: GKLocalPlayer.getLocalPlayer().authenticate GKLeaderboard.loadCategories

obigu commented 8 years ago

Some methods have been deprecated in iOS9. If you don't need to support iOS 6.0, you can just get rid of the conditionals in GameCenterManager for dealing with iOS 6 specific case.

titovmaxim commented 8 years ago

@obigu thanks, it is clear. But what if one need support of iOS 6.0? Or it is generally deprecated now and such support is not needed?

obigu commented 8 years ago

That's up to you really. In my opinion it's not worth it but you can always handle it and display a message that Game Center is not supported for these specific devices. Apple, unlike Google for instance, has a strategy of deprecating and not making it easy for developers to give support to old OS versions to push everybody to always be using the latest versions and it kinda works as old iOS market share is quite small. It's something Apple customers know and easiest thing is to just follow. It's very reasonable to set minimum OS supported version to 7 nowadays.

titovmaxim commented 8 years ago

@obigu thanks again. Of course I have adapted the binding to work for iOS >= 6. So I have no problems with it. The original issue is quite simple - the binding can not be complied under RoboVM 1.9. Disregarding compatibility. May be it is better to update the binding? That's all.