This article explains how to use the Adobe AIR update framework to easily and seamlessly push updates to AIR applications created using Flash, Flex, or Ajax. If you create the application with Flex or Ajax, you can use either one. The default user interface option uses Flex components so if you are planning to create your AIR application using Flash, you can't use it. It comes in two flavors: one has a default user interface, and the other requires you to create your own UI and hook it up to the events that this framework provides. The Adobe AIR update framework provides developers with APIs to create AIR applications that can be updated very easily. The users will have to uninstall the current version, download the new one, and install it. If the application doesn't include support for the update process, then your problem is now a big one. Suddenly you have a problem: how do you push this update to clients who already have installed your application? A short time later you have a fix for a security issue, or you've just added the coolest feature ever. Picture this: your application is a tremendous success and many people have installed it. Sooner rather than later, your application will need an update. For example: adt -package -target ipa-debug -keystore ios-developer-certificate.p12 -storepass password -storetype pkcs12 -provisioning-profile ios.mobileprovision output.Every time I create an AIR application that I know will be live someday, I always add support for updating it with the Adobe AIR update framework. You will need the certificate and provisioning profile file, as well as the necessary icons. For example: adt -package -target apk-captive-runtime -storetype pkcs12 -keystore certificate.pfx -storepass password output.apk -extdir For Android, you can create the certificate using the following adt command: adt -certificate -validityPeriod 25 -cn SelfSigned 1024-RSA certificate.pfx "password" For iOS, you must obtain the certificate from Apple using your Apple developer account. You can use the following amxmlc command to compile your app into an SWF file: amxmlc -compiler.include-libraries= -swf-version=13 -output Ĭreate or obtain a certificate to use to sign the app. Once you have the necessary tools, follow these instructions to build your app:Ĭompile your app into an SWF file. There is also more information available in the Adobe AIR documentation at Using native extensions for Adobe AIR and Packaging with ADT. To build an Adobe AIR app that uses the Amazon IAP plugin, you need the tools that come with the AIR and Flex SDKs. Our links for these tools take you to third-party sites for downloading and installing the tools. Add the following as a child to your application descriptor's element:Īdobe AIR and certain other development tools are provided by third parties, not by Amazon. First, modify your application's application descriptor to include the extension.If you are deploying your Adobe AIR app to Android and use the In-App Purchasing (IAP) v2.0 plugin, you must update the Adobe AIR application descriptor before packaging your code. Update the Adobe AIR application descriptor To add the In-App Purchasing (IAP) v2.0 plugin to your Abode AIR project, import the API package: import .cpt.* Update the Adobe AIR application descriptor.Add the IAP v2.0 plugin to your project. Additionally, if you are deploying to Android, you should follow the instructions for updating the Adobe AIR application descriptor for use with the Mobile Ads plugin. If you are using the Mobile Ads Adobe AIR plugin, you should follow the instructions for adding the Mobile Ads plugin to your Adobe AIR project. Additionally, if you are deploying to Android, you should follow the instructions for updating the Adobe AIR application descriptor for use with the IAP v2.0 plugin. If you are using the In-App Purchasing (IAP) v2.0 Adobe AIR plugin, you should follow the instructions for adding the IAP v2.0 plugin to your Adobe AIR project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |