Amazon Mobile Ads ANE

As I’m going to release free versions of Solitaire and Mahjong games on Amazon AppStore, I’ve decided to use Amazon Mobile Ads (+ AdMob of course, Amazon Mobile Ads only work in USA, I guess).
And, as these games are made with Adobe Air, I had made another ANE…
Here it is: Amazon Mobile Ads ANE, available on Github along with source code.


Publish Adobe Air app to Mac App Store

I have mainly used this guide, it is in Russian and written for Air3.6, also it was updated with my comment about Air3.8.
There is very similar guide in english, but also for Air3.6: http://pigsels.com/2012/04/air-app-store-publishing-guide/

The differences for Air3.8 (maybe for Air3.9 as well) are:
– Following three line are not required anymore:

1
2
3
codesign -f -v -s APPLICATION_CERTIFICATE bundle.app/Contents/Frameworks/Adobe\ AIR.framework/Versions/1.0/Resources/adobecp.plugin
codesign -f -v -s APPLICATION_CERTIFICATE bundle.app
codesign -f -v -s --entitlements entitlements.plist bundle.app/

– Instead you need to use this:

codesign -f -v -s APPLICATION_CERTIFICATE --entitlements entitlements.plist bundle.app/

Some extra things, that might be useful:
– If your app connects to the internet, you need to add the following lines to your entitlements.plist:

<key>com.apple.security.network.client</key>
<true/>

All the possible sandbox keys could be found here: https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW1

– You can verify, that your app is correctly signed like this:

codesign -v --verify bundle.app

– Take note, that icons file’s name, generated by Air is “Icon.icns” and not “icons.incs”, so you may end up having two files, just mention correct one in your Info.plist.

– Launch your app and check that name in top menu matches the title of the app. In my case they were different, thus game was rejected. See screenshot.
mahjong_mac


DISCLAIMER: The content in this blog represents the opinion of the author. No information here should be used for any purpose except for entertainment.