View unanswered posts | View active topics



Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Universal AIR Android + iOS template 
Author Message
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Before I includ it in FlashDevelop, I'd like some feedback on this new template.

:arrow: Download template v0.1.2

Unzip in FlashDevelop\Projects, it should appear in the new project wizard.

The template includes 2 readme files to detail the configuration & workflow.

Updates:
- v0.1.2: paths & icons fixes
- v0.1.1: packager had ad-hoc/app store configurations reversed


Mon Sep 19, 2011 9:48 am
Profile WWW
Member

Joined: Sun Mar 02, 2008 11:17 am
Posts: 59
Location: Gothenburg, Sweden
Reply with quote
Some feedback:
I have only tested targeting Android.

When creating the certificate it fails. It was targeting a "certificates" folder that did not exist. Creating that folder solved it.

When packaging the app, I get conflicted package paths for the icons. Creating an android subfolder and placing the icons there, or changing the path in SetupApplication.bat solves that.

Other than that it works fine for Android.

Suggestion:
I miss the option to package with -captive-runtime. Would be great to add that as an additional option in PackageApp.bat. Not a big deal but it would be nice ;-)

Edit: One more thing, the dist name is set to "LostInTheData", I expected that the application name there.


Mon Sep 19, 2011 9:11 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Woops, thanks it should be fine now - the icons in /bin were not expected.


Mon Sep 19, 2011 9:32 pm
Profile WWW
Member

Joined: Thu Aug 26, 2010 10:50 pm
Posts: 6
Reply with quote
It looks great.
For testing and Ad Hoc distributing iOS apps, i prefer to use this method: http://samvermette.com/71


Tue Sep 20, 2011 8:16 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Boye wrote:
It looks great.
For testing and Ad Hoc distributing iOS apps, i prefer to use this method: http://samvermette.com/71

Did you try building a test app?

Thanks for the (manual) distribution tip; I added some more tips for ad-hoc distribution (testflightapp, hockeykit, manual).


Tue Sep 20, 2011 11:08 am
Profile WWW
Member

Joined: Thu Aug 26, 2010 10:50 pm
Posts: 6
Reply with quote
Philippe wrote:
Did you try building a test app?


Just tested it very quickly, I will try to experiment with the packaging options later. It looks like most of the "best practices" I have learned is included in the template, which is very good. (Like auto-close, requestedDisplayResolution, scaleMode & align)

I hadn't noticed the ipa interpreter before, looking forwarding to trying this


Tue Sep 20, 2011 1:07 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Yes I've tried to make the template useful to start safely - background run isn't appropriate to beginners :)

Try setting the run target to 'ios-debug' in Run.bat so FD will package in debug-interpreter mode (available since AIR 2.7) - it's ultra fast to package compared to regular ipa packaging, then you upload this ipa, start the app and it will connect to FD interactive debugger from the device. It's pretty fantastic I think ;)


Tue Sep 20, 2011 1:15 pm
Profile WWW
Member

Joined: Thu Aug 26, 2010 10:50 pm
Posts: 6
Reply with quote
Philippe wrote:
Yes I've tried to make the template useful to start safely - background run isn't appropriate to beginners :)

Try setting the run target to 'ios-debug' in Run.bat so FD will package in debug-interpreter mode (available since AIR 2.7) - it's ultra fast to package compared to regular ipa packaging, then you upload this ipa, start the app and it will connect to FD interactive debugger from the device. It's pretty fantastic I think ;)


Sounds good, I will try that :)

Just a few quick notes:

Is there a reason why renderMode is not "gpu" by default?
Apple uses two different certificates, one for development (test & debug) and one for distribution (Ad hoc + App Store). Is it possible to set those, based on target?


Tue Sep 20, 2011 2:05 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Rendermode isn't GPU by default because it's something to tweak depending on the project and AIR target - for instance my current project runs best in CPU and GPU has many display bugs depending on scale/orientation/etc, especially with most recent versions of AIR.

I'm using the same certificate for test & ad hoc but you're right this is something to allow.


Tue Sep 20, 2011 2:11 pm
Profile WWW
Member

Joined: Thu Aug 26, 2010 10:50 pm
Posts: 6
Reply with quote
Philippe wrote:
I'm using the same certificate for test & ad hoc but you're right this is something to allow.


Really? I used several hours to figure out why my Ad Hoc apps would not be installed, until i realised i was using the dev certificate. (D'oh)


Tue Sep 20, 2011 9:40 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Maybe I didn't understand you correctly - I'm using my Apple certificate for testing & ad-hoc.


Wed Sep 21, 2011 8:16 am
Profile WWW
Member

Joined: Thu Aug 26, 2010 10:50 pm
Posts: 6
Reply with quote
I might just be confused, but don't you have a "developer_identity.cer" and a "distribution_identity.cer" in the iOS Provisioning Portal?


Wed Sep 21, 2011 9:43 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Well I created my p12 key as described here:
http://connorullmann.com/2011/04/air-2-6-and-ios/

And it's called a developer identity.

But this p12 key worked fine for me to package & distribute an ad-hoc ipa using TestFlight.
I didn't submit any app to the app store yet though.


Wed Sep 21, 2011 11:22 am
Profile WWW
Member

Joined: Fri Nov 04, 2011 8:02 am
Posts: 3
Reply with quote
Hi,

I still get the conflicted package paths for the icons when I create a test project and merely punch in my developer cert and mobile provision.
What gives?

-Luc


Fri Nov 04, 2011 8:05 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
What is the exact error you get?


Fri Nov 04, 2011 10:43 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 27 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.