!!!Native iPhone App!!! (I'm getting closer :-))

dave8401

Joined: 2009-06-01
Posts: 129
Posted: Fri, 2010-11-26 01:51

All,

My intend with g3Mobile is to provide a nice browsing experience on the iPhone.
g3Mobile comes with some basic features to handle our gallery3 installations: upload, add/modify/delete.

Functionality:

  • Basic Login/logout
  • Tableview & Thumbview to browse the gallery
  • Create albums
  • Modify albums
  • Reordering of album / images per drag&drop
  • Delete functionality for albums and photos
  • Image upload from library & camera (w/ optional caption)
  • Full offline support
  • Full caching to boost performance
  • Async. load of album & images
  • Simple slideshow (basic)
  • Add/deletion of Comments (basic)


For testers: How do I get it?

  • You must have at least iOS version (4.3)
  • You need to be on the latest gallery3 version (3.0.2)
  • You must have the Rest-module enabled
  • All you need to do is to PM me an email address that you are checking on your iPhone.
    You will receive an email from http://testflightapp.com that allows you to register your device.
    Once done, I will push the latest version to you.


Status:

  • Main development done. Main memory-leaks addressed.
  • Code clean-up & inline-documentation in progress.


Coding:


Community:
If you want to contribute please do let me know! In particular I'm looking for:

  • Coding: iPhone developer(s), who could review and improve the quality of the code
  • Design: Somebody who prepares a logo for the app Done! A very big 'thank you' to neven!
  • Gallery3: Somebody who enhances user_rest so that we can get more user-data

BR,
David

 
neven

Joined: 2006-09-19
Posts: 16
Posted: Sat, 2010-11-27 04:54

Hey David,

You are welcome to use the logo I originally designed for Android. It may do well to have some consistency in the Gallery brand for mobile devices.

[img]http://www.gdl3d.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=342&g2_serialNumber=4[/img]

I have added 3 separate logos in the zip file linked below. "G", "G2", & "G3". I feel the "G" says it all, unless you are really trying show compatibility. They are in a layered Adobe PSD with shadows, and standard PNG with full alpha, and are high-resolution for easy downsizing. Let me know if you need assistance in resizing to an exact spec.

I don't have an iPhone, but great going on getting an app compatible with Gallery3!

http://dl.dropbox.com/u/169436/Gallery_iPhone_Android_logos.zip

Cheers,

-Dan

http://www.gdl3d.com/

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2010-11-27 22:53

That is so cool. I can't wait to try it out. I need to zip up the code I've written and share it as well.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sun, 2010-11-28 19:30

Thanks Dave! I added a link to this to:

http://codex.gallery2.org/Category:Gallery_3:Other_Clients

PM me your shipping info and t-shirt size if you'd like a Gallery t-shirt!

____
http://ckdake.com/ - If you found my help useful, please consider donating to Gallery.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Sun, 2010-12-05 14:24

Just to subscribe.

 
aligature

Joined: 2008-10-23
Posts: 5
Posted: Mon, 2010-12-06 04:08

I love the goal of this project. I've always wanted a better gallery interface for my iphone. I'm having a small issues building your project however. It looks like the project is set to link in the Three20 libraries dynamically and statically for some reason. Here's the error output I'm getting. I'm guessing that I just need to get rid of the -lextThree20JSON+YAJL and other link options, but I can't figure out how to do it.

Any advice? Thanks!

Quote:
Ld build/Debug-iphonesimulator/Gallery3.app/Gallery3 normal i386
cd /Users/andy/Downloads/Gallery3
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/andy/Downloads/Gallery3/build/Debug-iphonesimulator -F/Users/andy/Downloads/Gallery3/build/Debug-iphonesimulator -filelist /Users/andy/Downloads/Gallery3/build/Gallery3.build/Debug-iphonesimulator/Gallery3.build/Objects-normal/i386/Gallery3.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -lsqlite3 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lextThree20JSON+YAJL -lThree20 -lThree20Core -lThree20Network -lThree20Style -lThree20UI -lThree20UICommon -lThree20UINavigator -framework QuartzCore /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20Core-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20Network-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20Style-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20UI-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20UICommon-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libThree20UINavigator-Xcode3.2.5.a /Users/andy/Downloads/Gallery3/Three20/Build/Products/Debug-iphonesimulator/libextThree20JSON+YAJL-Xcode3.2.2.a -o /Users/andy/Downloads/Gallery3/build/Debug-iphonesimulator/Gallery3.app/Gallery3

ld: library not found for -lextThree20JSON+YAJL
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Thu, 2010-12-23 19:58

sorry for getting back late ... too much work in the last 3 weeks.

@aligature: would you mind zipping up your parent-folder and sending it to me? i will have a look and let you know what to do.

@all: git-repo is online in a few minutes

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Thu, 2010-12-23 20:37

As promised the code is now available on github!!!
Just clone/fork-away and have fun.

GIT: git://github.com/dave8401/g3Mobile.git

 
genzeb

Joined: 2011-01-03
Posts: 2
Posted: Mon, 2011-01-03 18:01

@dave8401 Great job! A gallery3 iPhone/iPad app was going to be my next project, but I am glad you beat me to it. I have your code mostly building except for two errors:

1) three20 build expects Three20.bundle to be located in "g3Mobile/../../iPhone/three20/src/" (I can resolve this issue by creating the folder and placing the bundle there, but I would rather fix the underlying reason why it's looking in ../../iPhone).

2) The second issue is more serious. There always seems to be duplication symbols. Doing clean doesn't seem to help (another duplicate symbol pops up). Here is one of them:

Quote:
ld: duplicate symbol _OBJC_IVAR_$_TTURLJSONResponse._rootObject in /Users/ET/Development/iOS/Source/three20/Build/Products/Debug-iphonesimulator/libextThree20JSON+SBJSON-Xcode3.2.5.a(TTURLJSONResponse.o) and /Users/ET/Development/iOS/Source/three20/Build/Products/Debug-iphonesimulator/libextThree20JSON+YAJL-Xcode3.2.5.a(TTURLJSONResponse.o)
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

I've Xcode 3.2.5 w/ iOS 4.2.

Everything else builds fine.

Lastly, may I ask what your plan is (i.e. release date, collaboration, paid/free app, etc.).

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Mon, 2011-01-03 18:16

genzeb, great to get some feedback, thanks.

ad 1) Are u using the latest git-code? I'll check it out right now and reply back.

ad 2) I'm somewhere half through getting this done (not soo beautiful, but working). Collaboration: anyone welcome, when you know what you are doing I'll give you rights to push code to the repo. If the app is going to be good, we can think what to do, but for now I'm more looking towards a free app.

You can pm me anytime, then we can talk about howto get this job done.

BR,
David

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Mon, 2011-01-03 19:43

@genzeb: the issues you reported above are fixed. seems some of my rename / move exercises caused some side-effects ;).

Now it should compile:

mkdir test;
cd test;
git clone git://github.com/dave8401/g3Mobile.git;
git clone git://github.com/facebook/three20.git;

open g3Mobile.xcodeproj and hit Build & Deploy

BR,
David

 
genzeb

Joined: 2011-01-03
Posts: 2
Posted: Tue, 2011-01-04 02:24

Thanks. That works without any errors (once the YAJL JSON category, NSObject+YAJL, is added). I am yet to figure out why no images load after a successful (I think) login, however. I will take a look and keep you posted (I would like it to support view-only access without logging in). Thanks again for taking the time to update the repo.

Ephraim

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Tue, 2011-01-04 18:03

Can u give me a link to your gallery (send me the details and I will check)?

You need a recent gallery3 as the app uses the tree resource to fetch items.

So far user/password is required, but that should be easy to change.

 
opel70

Joined: 2002-11-07
Posts: 79
Posted: Wed, 2011-01-05 22:17

I know that this is still in development, but wondering whether you have a timeframe for submitting it to the App Store. An iPhone app is probably the main item I am waiting for before moving to G3, as that is the only way my mom uses the gallery.

Tim Musa
http://www.musaland.com/gallery2/
PHP Info: http://www.musaland.com/phpGedView/pgvinfo.php?action=phpinfo

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Fri, 2011-01-07 13:57

Thanks Tim for the interest.

I can't commit myself bringing out the app. I know that at least Bharat is working on another one. I'm pretty new to everything on the iPhone and the way I do this app is certainly not the best possible way (however it's working fine for me :)).

How about this:
1. You get your images into a temporary G3 installation (you have to use the latest version from git!). The import shouldn't be so much effort.
2. Once you have it there, I'll try to provision a test-version of the app and give it to you.

This way I get a tester (who's hopefully patient) and you an app for your iPhone.
Anyone else who's interested pls. contact me.

BR,
David

 
ulfthomas1

Joined: 2006-10-27
Posts: 15
Posted: Fri, 2011-01-07 14:07

Hi David,

I seem to get the impression that you are looking for more testers and I would be delighted to help. If I may. :)

I've currently moved my entire gallery2 (16k photos) to the latest G3 from git (didn't want to yet, but server crash forced it).

I also use an Iphone and would absolutely love to assist in testing.

Regards,

Ulf Thomas

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Fri, 2011-01-07 18:07

@ Thomas: awesome; I need to do some more cleanups and expect to have a first version within 1 week from now.

I'm regularly testing with my own gallery but i have not that much photos (~3k).

Would you mind providing me meanwhile url and a username/password with readonly(!) access (just PM me)?

Thanks,
David

 
xtrem57

Joined: 2010-01-02
Posts: 13
Posted: Sun, 2011-02-13 12:26

Hi Dave !

I just found that you are developping what I need for my gallery3 !

How could I test your app ?
I don't have a Mac...

Thanks for developping that kind of module for Gallery ;)

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Sun, 2011-02-13 15:25

Hi xtrem57,

If you're interested in testing my app please send me the identifier of your iPhone.
It must be an identifier that's exactly 40 characters long.

You can do this via iTunes (this does work in Windows as well):

Quote:
Connect your device to your Mac and launch iTunes.
In iTunes, select your device in the ‘Devices’ section and navigate to the Summary tab.
Click on the Serial Number label to reveal the Identifier field and the 40 character UDID.
Press Command+C to copy the UDID to your clipboard.

Thanks,
David

 
big23boyttu

Joined: 2009-08-31
Posts: 7
Posted: Wed, 2011-02-16 17:52

David, I have sent you a PM.

Thanks,
-Keith

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-02-23 11:47

All,

Last week I spend quite a lot of time on improving my app based on feedback that I got so far. I will try to compile a working test version soon.

So far the biggest issue is the rest-handler: So far I coded this one on my own but realize now that this is not the right way to go. It works, but is a huge code overload and will limit us in the future.

My requirements in a nutshell:

  • Assistance in parsing the JSON. Ideally transparent mapping to local objects.
  • Transparent caching for performance reasons and to keep the app working while offline
  • Sync/async. mode of operations
  • Nice to have: integration into three20 (TTModel)

Does someone have hands-on experience with a good library that could help?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2011-02-23 17:50

I used HTTPRiot (http://labratrevenge.com/httpriot/docs/) in my app. It was pretty easy to work with
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-02-23 18:46

Can HTTPRiot cache requests?

Bharat, I shared my state of the app some time back.
Could you maybe say 1 - 2 sentences about yours? What did you different? How much ahead are you :)? Are you close to a release on the app-store?

Thanks,
David

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2011-02-23 18:54

Sorry, I've been quiet on mine because I've made no advancements on it in the past 3 months. I'll try to remember to tar it up and send you a copy tonight. It's nowhere close to prime time, but perhaps the REST code would be of value to you.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-02-23 19:11

Would be very kind of you. In my one the rest part is very weak (really not proud of this ;)).

OK, you have seen my one and the approach, where do you see the biggest short-coming (don't be shy)?

FYI:
I did understand that displaying thumbs might not be the best for albums. So meanwhile I added another view (tableview).
This one has a thumbnail to the left and uses the right side for title, description, ... .

Right now you can just switch in the settings between them, but my plan is to combine them: have the tableview for albums (and mixed ones) and given that there are only photos display the thumbnail-view.

 
heiv

Joined: 2009-11-23
Posts: 43
Posted: Mon, 2011-02-28 10:10

@neven : Thanks for the logos, I used the G3_LOGO for the plugin I wrote for Wordpress.


Plugin Wordpress / Gallery 3 => http://www.heiv.fr/projets/plugin-wordpress-gallery-3/

 
kumarudaya

Joined: 2011-01-21
Posts: 20
Posted: Wed, 2011-03-09 04:52

I am interested in testing the app. Should i send my iphone identifier to you?

I checked out the code and will provide my feedback. Thanks.

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-03-09 08:02

@ kumarudaya: Wait a few more days. I need to merge in 1 more important change and will provide inline comments for the relevant sections.
Really busy right now, but will try to get this done on the weekend. Thanks.

 
kumarudaya

Joined: 2011-01-21
Posts: 20
Posted: Thu, 2011-03-10 00:41

@dave8401: Thank you and appreciate it.

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-03-30 18:32

They brave and patient ones of you can give it a try (only the ones who gave me their uuids).

You should have a recent iPhone with iOS 4.3 (haven't tested anything else as of now).
You will need a recent g3 install (with the tree-resource).
If you want to play around with the comments you further should install the slightly modified user_rest module (from here)

Basically it should work like this:

  • Get the app from here
  • Drag it onto iTunes (and it should get added to your apps)
  • Sync your iPhone and get the App installed
  • Enter the settings and provide your url & a user & password
  • Start browsing your albums and photos. If you want to do something on the album or photo tab the cell a bit longer and you will be provided a context menu.

If you have issues with getting the App to run, do not use this threat to complain, but contact me offline with url & user & password and I will make it work. Ok?

Let me know what you think. Definitely not perfect, but a start.

My time is very limited, so if somebody wants to help out welcome to the team :).

BR,
David

 
OC2PS
OC2PS's picture

Joined: 2010-09-08
Posts: 428
Posted: Tue, 2011-03-15 03:57

I assume the app allows browsing the galleries. In that case, it may make sense to allow admins to change the app name & icons - essentially this would mean that for potentially every G3 installation there can be an app in AppStore
(I am thinking of app use by end-users rather than gallery admins...)

SoosKriszta
Csillamvilag.com

Bodypainting, Facepainting, Glitter, Henna
Materials, Courses, Resources

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Tue, 2011-03-15 07:13

@sooskriszta: Short answer: No I don't think so.

I'm all but experienced, but cannot imaging how this could work out.
Name & icons are backed into every App. So when you want to change either of them there's quite a lot knowledge about build and packaging required.

Each of them would have to go through the approval process of Apple separately and each of them would have to be maintained!
I do not think that's feasible.

Haven't even thought about licensing yet.

Feel free to have a look onto my Github repository and propose something.

 
kumarudaya

Joined: 2011-01-21
Posts: 20
Posted: Tue, 2011-03-15 19:03

@dave8401: Thanks. I try loading in my iPhone with iOS 4.1 and didn't load. I will upgrade my iOS to the latest and will try to load the app again.

Question: Do i have to pass on my UUID to you for permission to run the app?

Thanks,
-Uday.

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Tue, 2011-03-15 21:21

If you take the g3Mobile.ipa from my link you have to give me your UUID first.
This is a distribution build and I can enable up to 100 devices for it (but need the UUID first).

Can u pm me your details and I give it a try?

 
kumarudaya

Joined: 2011-01-21
Posts: 20
Posted: Tue, 2011-03-15 21:38

@dave8401: I just send my UUID in a private message to you. Pl let me know when it's ready to download the app again.

All,
To "easily" find out UUID of your iPhone, install a app called "AdHoc" by Erica Sudan. This will get you the system information and can even email the info.

Best,
-Uday.

 
irish-link
irish-link's picture

Joined: 2011-03-15
Posts: 1
Posted: Tue, 2011-03-15 22:32

This is great! Way to go dave8401. If you are still interested in testers I would be willing to give feedback. I have an iPhone and an iPad. I don't know if its ipad ready but i would love to give it a shot. If you are willing to take on more testers let me know and i will send you my UUII(s). Thanks.

 
big23boyttu

Joined: 2009-08-31
Posts: 7
Posted: Sun, 2011-03-20 02:10

@david

It appears the link in your post from a few days ago does not work. I sent you my Uuid a few weeks ago but did not hear back. Is this test for this build already over?

Thanks,
-Keith

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Thu, 2011-03-24 21:02

Hi!

I got only 2 people who gave it a try and so I thought I should focus on the upgrade to iOS 4.3.
Xcode 4 migration was painful :( but somehow I got it working.

Can you re-download (link)and give it another try?

FYI: You must have iOS 4.3 by now.

BR,
David

 
big23boyttu

Joined: 2009-08-31
Posts: 7
Posted: Fri, 2011-03-25 04:28

Hey David,

Thanks for replying and putting it back up on your site. I was able to download the file. Yeah, i'm on 4.3 iOS. I'm glad I pressed refresh on the site today :)

Thanks again,
-Keith

 
big23boyttu

Joined: 2009-08-31
Posts: 7
Posted: Fri, 2011-03-25 05:02

Hey David,

My gallery has version 3.0.1 from the front page. What is tree-resource you are talking about in the installation notes? Or do you mean using the latest from the source code?

Thanks,
-Keith

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Fri, 2011-03-25 07:35

Keith, G3 3.0.1 should work just fine.
If it doesn't pm me your details (url, user, password). I'll have a look on the weekend and, in case, change the app to make it work.

BR,
David

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Wed, 2011-03-30 18:38

All,
I got 10 users who are interested in testing so far. I know that it's working for at least 3 of them. From the rest I haven't heard back.

If someone is interested in trying it out, let me know your uuid and I will include your device.
If someone is interested in coding the full project is available here.

BR,
David

 
SHaRKTooTH

Joined: 2005-08-01
Posts: 3
Posted: Sat, 2011-04-02 05:38

Just a FYI. Verizon ios is only at 4.2.6 so anyone with a Verizon phone cannot get to 4.3

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Sat, 2011-04-02 12:05

K, that sucks!
I wasn't aware of this. I'm from Europe and here we don't have this restriction. I can just upgrade to the latest iOS version via iTunes (at any time).

Is there any volunteer that could take my current project and do a distribution build for iOS 4.2?

I will do some research on the weekend whether I can get it done (with iOS 4.3 SDK). Will report back.

BR,
David

 
ricoba

Joined: 2011-04-26
Posts: 1
Posted: Tue, 2011-04-26 04:05

Hi David,

I am a Gallery 3 user and would like to participate in your Gallery app testing, I have PM'ed you my device UUID.

Thanks & Regards,

Wilson

 
Shai

Joined: 2003-12-10
Posts: 61
Posted: Tue, 2011-04-26 06:40

@ricoba can you mention what firmware version you are using? Just curious. I'm also assisting David with QA for the past few weeks. Really kewl!

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Tue, 2011-04-26 09:43

Shai, you're right!
A prerequisite for my builds is iOS >= 4.3.1. Thanks!

 
Shai

Joined: 2003-12-10
Posts: 61
Posted: Tue, 2011-04-26 10:14

@ricoba you can also find the source and known issues here: https://github.com/dave8401/g3Mobile

 
rredmon
rredmon's picture

Joined: 2004-07-06
Posts: 34
Posted: Mon, 2011-05-09 14:07

Way cool! Subscribing to thread.

 
Shai

Joined: 2003-12-10
Posts: 61
Posted: Mon, 2011-05-09 15:26

@rredmon enjoy the ride ... it's a good one :) What iPhone firmware you got?

 
wicked271

Joined: 2011-06-23
Posts: 5
Posted: Thu, 2011-06-23 06:01

@dave8401, sent you a pm. Hope this project is still on as this would be a great app. Would love to be a tester! Can't wait for the app :)