I've just been playing with the native json implementation from the Labs. I got it working OK when I use Gideros player on my desktop (and it is so much quicker
), but I have no idea if or how to use it with the Gideros player on my phone. Is it possible and, if so, how do you do it?
Thanks,
Pete
Comments
on iOS you need to change gdr_initialize(..., false) to gdr_initialize(..., true) inside AppDelegate.m
you can check more about player with custom plugins here:
http://docs.giderosmobile.com/deployment.html
It seemed to need the jni folder contents copying across as well as the libs contents. This isn't mentioned in the labs instructions and, if it does need to be copied, it might be a good idea to add it.
The bit I got stuck on was where to add System.loadLibrary("json"); to the main activity - I wasn't sure what main activity that was referring to and pretty quickly found out it wasn't anything to do with main.lua! Once I'd found where it went then it all worked fine, both the player and a build of the app.
Thanks for your help.
What exactly is that true at gdr_initialize(..., true) ?
I didn't change it, and it seems working for me, so i wonder what is that.
@tkhnoman it is a gideros initialization function on iOS.
if you pass false, it will read the assets and behave like your exported app,
if you pass true, it will ignore the assets and behave like player (with all the installed plugins)
Likes: ianchia
I always add all the plugin into Gideros iOS player that already exist, since we can do that way.
But i think this would be useful when developing with GameCenter and such.
Thanks.