AIR 2.7 iPad Descriptor and Command Line Example

Posted in Flash by theFlashBlog on the 06-14-2011

Until I can get around to recording something, here are some templates for compiling an iPad applciation with the AIR 2.7 SDK. First is the application descriptor XML file. Change the relevant values to match your app.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/2.7">
   
    <id>com.mypackage.myapp</id>
    <versionNumber>1.0.0</versionNumber>
    <filename>MyApp</filename>
    <description/>
    <name>MyApp</name>
    <copyright/>
   
    <initialWindow>
        <content>MyApp.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>cpu</renderMode>
        <autoOrients>false</autoOrients>
    </initialWindow>
   
    <icon/>
    <customUpdateUI>false</customUpdateUI>
    <allowBrowserInvocation>false</allowBrowserInvocation>

    <iPhone>
        <InfoAdditions>
            <![CDATA[
               <key>UIDeviceFamily</key>
               <array>
                   <string>2</string>
               </array>
           ]]>
        </InfoAdditions>
    </iPhone>

</application>

Next is the command line statement that compiles your application using ADT. You can provide any SWF that is build at the iPad resolution of 1024×768. This is obviously for Windows but I’m sure you Mac folks can figure out the slight differences. No idea where to get the keystore and provisioning profile? Watch this tutorial.

1
"C:Program Files (x86)Javajre6injava.exe" -jar C:UsersrimelowDesktopAdobeAIRSDKlibadt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore C:UsersrimelowDesktopdesktopiphone_dev.p12 -storepass password -provisioning-profile C:UsersrimelowDesktopdesktoprimelowProvision.mobileprovision MyiPadApp.ipa MyiPadApp.xml MyiPadApp.swf

Now this is for a quick test compile as I haven’t provided any icons and other finishing touches. But this should get you playing!

Too lazy to build your own example? You can download my test application and try your luck compiling.

Read full article

  1. Responses to “AIR 2.7 iPad Descriptor and Command Line Example”

Post a Comment

captcha