Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
New iOS player - Dropbox, Load previously loaded projects without IDE — Gideros Forum

New iOS player - Dropbox, Load previously loaded projects without IDE

SimpleLoopSimpleLoop Member
edited December 2012 in General questions
Wasn't sure quite where to put this.

This started as a personal project for me as I have Textastic on my iPhone and iPad and therefore can write apps using Gideros on my mobile devices when I am away from my computer and sync them using Dropbox back to my computer.

The main problem I had with this was not being able to see what I was making while I wrote it and therefore would spend a while debugging them and tweaking things when I got back to my computer.

Therefore I decided to see if it would be possible to modify the Gideros player app to load apps directly from Dropbox.
So I started on this, I looked into the basic file system behind the Gideros player app and it didn't seem too complicated but I am sure there is a lot more going on then I can see.

I noticed that if I am going to add dropbox support the gui will have to be completely changed as we will need a way to download it from dropbox into the player then load it.

While looking into the filesystem I noticed that all of the apps I had loaded into the player previously were still in there and so I thought why not let us access them too. This would be great say if you were out somewhere and were saying you were working on this awesome app and wanted to show someone but you hadn't build it as an app yet so it wasn't on your phone and you didn't have your computer near to load it up.

So what I have done so far is I have redesigned and implemented my new UI into the player app.

I have added 2 buttons along the top one for the normal IDE which will just load the player as normal ready for debugging.
@atilim it would be great if I could get this to automatically go to the normal player view if it detects a signal from the IDE like when it loads normally.

and one for dropbox login which will log you into dropbox using the dropbox framework and standard iOS dropbox dialogs.
@atilim may need a lil help with how the md5.txt would be generated when downloading them from dropbox and loading the app once it is downloaded but I think the rest of it I can figure out.

And last of all I have added a table with all the apps that are currently saved into the player app in it.
again @atilim a lil help on how I might load the apps when they are tapped in the table view would be great :) and this would also allow me to load them when downloaded from dropbox.

The only other thing I thought could cause a problem is the debugger as there wouldn't be one, so I was thinking maybe if there was a way I could hook the error message then when it is loaded locally I could just print it into a text field on another view then you could even debug on the device which would be awesome.

I will attach a screenshot of my new UI so I can get feedback on it.
It is all written in XCode and is a modification of the original player app, I have added no images to the project everything seen is drawn in code to keep the size of the player itself nice and low.

@atilim hope you or someone else can help out with this as I think it would be really cool to be able to develop and test fully on the device you're actually building for. And it could also be used in conjunction with another iOS device so you could write on an iPad say and see the changes etc on an iPhone. And could add an auto reload that detects changes on the files on dropbox and reloads the player automatically.

Sorry about the long post :P
Thanks for any help anyone can give me :)
iOS Simulator Screen shot 25 Dec 2012 18.43.30.png
320 x 480 - 40K
iOS Simulator Screen shot 26 Dec 2012 02.36.16.png
320 x 480 - 32K
iOS Simulator Screen shot 26 Dec 2012 03.20.03.png
768 x 1024 - 64K
iOS Simulator Screen shot 26 Dec 2012 03.22.49.png
768 x 1024 - 112K

Likes: 1dot44mb, Mells

+1 -1 (+2 / -0 )Share on Facebook

Comments

Sign In or Register to comment.