Showing posts with label ANE. Show all posts
Showing posts with label ANE. Show all posts

Saturday, January 24, 2015

[AIR] How to build ANE 64-bit


How to build ANE 64-bit

TL;TR

http://easynativeextensions.com/making-your-ios-apps-universal/

Or try doing thing backward here ;)

  1. Open your Mac.
  2. Open Facebook check it fast and close it!
  3. Make sure Adobe AIR SDK is update to most recent by brew it. (or install if you don't have one)
  4. $ brew upgrade adobe-air-sdk
  5. Make sure AIR SDK path is set.
    $ export AIR_HOME=/usr/local/Cellar/adobe-air-sdk/16.0.0.272/libexec
  6. Clone my working ANE 64-bit ready https://github.com/katopz/ane-device-file-util
  7. Go to /ane-device-file-util/as3/bin
    $ cd /ane-device-file-util/as3/bin
    try
    $ bash build.sh
  8. Open your Twitter, tweet something and close it!
  9. Smile!
  10. That's it! 
You just build ANE from working static library "libDeviceFileUtil.a", now let's try make one your own! Follow this step below...

Monday, December 15, 2014

[ANE] Love is in the AIR

I'm now busy with my new iOS app in Swift language, but I'm still doing AS3/AIR in daily basis job also still blog about AS3 and AIR so it's not seem to dead yet this year thanks for ANE ;)

Lucky me I got skill in Objective-C, Java, C++, C# so I can finish my job with plenty of my homemade ANE but some developer is left behind...

Lucky you, This day we got plenty of free/paid ANE, one of them is DiaDraw


And more lucky is my reader will get 20% discount  until the end of 2014 by use coupon code

Sunday, August 17, 2014

[ANE] New Admob AIR Native Extension 2014


New Admob Native Extension 2014

Problem


On August 31, 2014, legacy AdMob is shutting down. All legacy ad serving will stop soon, But no worry! Open source is here to help both iOS and Android or each! :D

Monday, May 12, 2014

[ANE] How to build and use x86 ANE AIR14


Know how to build/use normal armv7 ANE? Here's another step :)

How to build x86 ANE AIR14 via command line

  1. load AIR 14 here http://labs.adobe.com/technologies/flashruntimes/air/
  2. Read this : http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air14_flashplayer14_releasenotes.pdf
  3. modify old your old extension.xml



    tip : just copy whole old Android-ARM xml platform tag and change it name to Android-x86 should do the trick cause other remain same.
  4. and for ADT packaging command for ANE build script...

    adt -package -target ane Sample.ane extension.xml -swc Sample.swc -platform Android-ARM -C Android-ARM/ . -platform Android-x86 -C Android-x86/ .

Pitfalls and Hints

  1. even single dot is matter for packing command, just don't miss it.
  2. Android-ARM/ .  mean you will need Android-ARM folder and "." mean anything in that folder will be pack.
  3. you can try to unzip your ANE for fun
  4. in case you can unzip your old armv7 ANE, and it contain old .jar which really mean you can rebuild x86 support without original source just some guts (i don't try it yet, but it should work)
that's it!

How to check if ANE is x86 compatible

just take a look tho ;p

How to use x86 architec via Flash Builder

for debug do add -arch=x86 via customize launch like after -listen like this (not anymore it's fixed then after May 14, 2014 you will need to add after -storetype )

 
but for run you will need to add before -storetype instead (because -listen not exist)

[UPDATE May 14, 2014] : Adobe fixed this https://github.com/PrimaryFeather/Starling-Framework/issues/539 and you will need to add -arch=x86 before -storetype from now on

[UPDATE May 16, 2014] : refer to...
  • 3759405 : [x86]Export Release Build from Flash Builder fails to run app on Android device when -arch parameter is used.

workaround is uncheck delete bin-release-temp folder and your apk will survived inside that temp folder... sound weird i know, just do it!

Like my blog and need more of this? Just download my app or feeding my cats here

Thanks! Meowww

Sunday, March 30, 2014

[ANE] Daily pitfall, ANE and Worker don't get along in constructor

Quick note for ANE and Worker when you got...
ReferenceError: Error #1065: Variable ... is not defined. at Main()

To reproduce

  1. get any ANE e.g. https://github.com/freshplanet/ANE-Alert/
  2. get helloworld Worker e.g. http://esdot.ca/site/2012/intro-to-as3-workers-hello-world
  3. and put both in constructor like this https://gist.github.com/katopz/9873681

Work around


  • don't alloc ANE and Worker in constructor together, let worker do their job in their thread and then alloc ANE in Main thread.

That's it! back to work!

Monday, June 10, 2013

[ANE] Use AIR to get USB device ID

by http://www.anymeme.org

That's long Time ago I did ANE HelloWorld for VC++ but didn't had free time to share yet. Suddenly I have some project that will need something like USB hardlock which won't allow program running if USB not plugged in...Challenge Accepted!

AIR with ANE to get USB unique ID which some interval check is a way to go for this case so here we go!

Resource

  1. ANE : http://help.adobe.com/en_US/air/extensions/WS460ee381960520ad-866f9c112aa6e1ad46-8000.html
  2. Code : actually c# is look a lot easier but c++ is close to objective-c enough so i give it a try here is code i use https://gist.github.com/katopz/5734124
  3. Editor : Microsoft Visual Studio Express 2012 http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-8#product-express-windows
  4. Knowledge Base : some c++, some as3, some googling for .h,.lib and TCHAR fantasy conversion

Result

Tadaaa, USB\VID_xxxx&PID_yyyy\zzzz seem legit and unique enough for me. :D

Download

as3 example, ane build.bat, vc++ bla bla bla all here! https://github.com/katopz/ane-usb-util just Don't forget to feed my cat

[UPDATE ] Just realize that I already blog about USB ANE here while ago...so I just wasting my time here LOL, lucky me I love to code so it didn't hurt that much ;)

Happy coding! ;)

Saturday, December 8, 2012

[ANE] Pay It Forward, More Free ANE!

I using Free ANE and also learning from their code. So it's time to payback! I will list my public (some is remain private for my client) ANE stuff here.


Public and open source

Private use 

  • ane-parse-com : ANE for Parse.com SDK including Push Notification in Java (iOS didn't need ANE), Anyone need this please leave comment below or email me katopz(at)gmail.com :)

For other free ANE try here



PS : If you need more ANE or Android version, Don't forget to feed my cat

Sunday, September 16, 2012

[AIR] Just another Adobe AIR Kids Games on App Store!

About time for self promo ;) here’s first kids game via iPad (made with Adobe Flash) from my company now on App Store!

Development details

  • Build with Flash Builder 4.7, AIR 3.4
  • Using plenty of library eg. robotlegs-modular-signals
  • Using ANE iAds and in App purchase (see here for working and free ANE list)


Don’t even think… Just download try! ;D

Not bad for first try don’t you think so? ;)

Friday, July 20, 2012

[ANE] Free AIR Native Extensions Collection


I’ll collect about free ANE stuff here (only some of them is already test and working) feel free to bookmark for later use ;)

UPDATE : 2015/02/01 Apple required ANE 64-bit, see below how to survives ;)

Adobe

  1. Adobe AIR Developer Center : Getting started / Reference and documentation / Tutorials and articles, also some free ane listed there
  2. Flash Runtime iOS Team : Great develop tip eg. Commonly faced issues while developing Native Extensions for iOS
  3. iOS native extensions (ANEs) included

    Game Center : Leaderboards, achievements, need to challenge friends? Integrate with the Apple iOS Game Center.

    StageAd : Reach a whole new audience and integrate with the iAd network.

    Social : Various social networks such as Facebook, Twitter, SinaWeibo

    In-App Purchase : Helps you increase your revenue and enable purchases directly within your game.

    Beta Testing : Looking for solid, on-the-fly beta testing? Iterate faster with TestFlight integration.

    UPDATE : 2015/03/02 Adobe Gaming SDK ANE’s – Universal 64-bit 
katopz (Yes! Me!)
  1. ane-device-info-util : ANE 64-bit for get some information from iOS device.
  2. ane-device-file-util : ANE 64-bit for open file with registered application on iOS.
  3. ane-photosalbum : ANE 64-bit  for save image as JPEG or PNG to iOS CameraRoll (why bother use this instead of CameraRoll.addBitmapData? please see this Error #3004: Insufficient file space.  bug for more detail)
  4. ane-usb-util : ANE that will get all USB ID.

Amazon Mobile App SDK

  1. https://developer.amazon.com/sdk.html

 Freshplanet

  1. ANE-Facebook : Air Native Extension (iOS and Android) for the Facebook mobile SDK
  2. ANE-Network-Info : Air Native Extension (iOS and Android) for getting Network Information
  3. ANE-In-App-Purchase : Air Native Extension (iOS and Android) for In App Purchase
  4. ANE-Push-Notification : Air Native Extension (iOS and Android) for Push Notification
  5. ANE-Background-Music : Air Native Extension (iOS and Android) for managing background music

 StickSports

  1. ANE-Flurry-Analytics : Air native extension for Flurry Analytics (iOS and Android)
  2. ANE-Can-Open-URL : Air native extension for iOS to detect whether an app is installed to handle a specific URL scheme.
  3. ANE-In-App-Purchase : Air native extension for integration with Apple's in-app purchase
  4. ANE-Game-Center : Air native extension for integration with Apple's game center
  5. ANE-Keychain : Air Native Extension for iOS to read and write data from and to the Keychain
  6. ANE-Silent-Switch : Air native extension for iOS to mute sounds if the hardware silent switch is on. (no need anymore via AIR3.4 @see Silencing audio on iOS with Ambient Audio Playback Mode )
  7. Social-ANE : Air native extension or sending messages to social networks on iOS. It utilizes the social functionality added in iOS6. e.g. Facebook, Twitter, Sina Weibo

 memeller (PaweÅ‚ Meller)

  1. iOSNativeUtilities : Set of native utilities (in form of Adobe Air Native Extension) for iOS: currently unzip, access to settings bundle and nslog
  2. ContactEditor : Native Extension for iOS and Android enabling AddressBook access
  3. vfrReaderNativeExtension : Native Extension for Adobe AIR for iOS that uses vfr Reader (https://github.com/vfr/Reader) to show pdf files
  4. ActionSheetAne : ActionSheet Native Extension for iOS

Michael Barr

  1. flashbuilder-ane-address-book : FlashBuilder ANE Save to Address Book for iOS
  2. flashbuilder-ane-alert : FlashBuilder ANE Native Alerts for iOS / Toast Alerts for Android
  3. flashbuilder-ane-ios-data-storage-do-not-backup-icloud : FlashBuilder ANE iOS Data Storage
  4. flashbuilder-ane-local-notification-set-app-icon-badge-number : FlashBuilder ANE Local notification setting App icon badge number
  5. flashbuilder-ane-save-date-as-calendar-events : FlashBuilder ANE Save date as Calendar Event on iOS

 jlopez

  1. ane-facebook : Facebook iOS ANE
  2. ane-storekit : Storekit iOS ANE
  3. ane-kontagent : Kontagent iOS ANE

jampot

  1. ANE Native Alerts (iOS & Android) : Adobe Native Extension Native Alerts for iOS / Toast Alerts for Android
  2. ANE Save Contact to Address Book (iOS) : Adobe Native Extension Save to Address Book
  3. ANE Save date as Calendar Event (iOS) : Adobe Native Extension Save date as Calendar Event on iOS
  4. ANE Local Notification Set App Icon Badge Number (iOS) : Adobe Native Extension Local notification setting App icon badge number
  5. ANE Data Storage ‘Do Not Backup’ to iCloud on iOS 5.0.1 (iOS) : Adobe Native Extension FlashBuilder ANE iOS Data Storage Allows you to set new iCloud 'do not backup' attribute on iOS 5.0.1

DiaDraw

  1. diadraw-air-camera-native-extension : This extension allows AIR applications to use the camera with control over autofocus, autoexposure, etc. - functionality, which is not available in the AIR SDK.
  2. diadraw-air-dropbox-native-extension-example : Dropbox ANE
  3. diadraw-air-email-native-extension-example : The extension enables you to use the mail composer on iOS devices and send e-mail with attachments.

Random clever dude

  1. in-app-purchase-air-ios : A sample Actionscript Native Extension for In-App Purchase capabilities on iOS. This will allow any AIR for iOS application to use the capabilities of In-App Purchases provided by iOS SDK. (tested working)
  2. iad-air-ios : A sample Actionscript Native Extension for iAds capabilities on iOS. This will allow any AIR for iOS application to use the iAds provided by iOS SDK. (tested working iOS5 stop working on iOS6)
  3. ANE-Game-Center : Air native extension for integration with Apple's game center
  4. xcode-template-ane : XCode 4 project template for creating AIR native extensions (ANE) for iOS
  5. AIR-OpenCV-Extension : Native Extension for Adobe AIR, exposing OpenCV API's
  6. FREPenTablet : This native extension allows you to read pressure sensitivity data from a pen tablet. It’s only been tested on Windows 7 with a Wacom Intuos 4. I’ll go through the build steps in the same format as last time.
  7. Read phone number from device : Android
  8. NativeMailExtension : (tested working)
  9. NativeAlert : Native Extension for Adobe Air enable mobile native dialog box (IOS Andoid) - Toast message, Text Input dialog, Progress dialog, Alert dialog, multi single choice dialog +System Preferences (tested working)
  10. NativeAlert : Native Extension for Adobe Air mobile to enable iOS Native Alerts with user interactions
  11. NativeAPNService : Apple Push Notification Service support for Adobe AIR on iOS
  12. AIR Maps Native Extension : provides the support for using the native mapping component in your Adobe AIR application.
  13. CaptureDevice : Adobe Air Native Extension for video capturing from cameras (tested working)
  14. ANEUnRar : Adobe Air Native Extension to Obj-C UnRar Lib (thx Pedro Casaubon)
  15. as3-arduino-connector : Connecting Arduino Prototyping board to Adobe AIR through an AIR Native Extension. Available for Windows and MacOSX.
  16. ServerSocketANE : Adobe Air Native Extension (ANE) for ServerSocket on mobile platforms
  17. Android-AIR-Extensions : This project provides some simple but useful AIR 3.0 NativeExtension for Android platform.
  18. GCM extension : (Google Cloud Messaging) which is a free service provided by Google that allows messages to be pushed to devices of your app users. (thx afterisktech)
  19. air-native-extension-euler-gyroscope : A native extension to get euler angles from the iDevice's gyroscope
  20. Admob-ANE : Adobe AIR Native Extension (ANE) which works on iOS and on Android (tested working but will conflict with NativeMailExtension)
  21. Flurry-ANE : Flurry analytics packaged as Adobe AIR native extension. ANE is compatible with Android and iOS
  22. box2d_ane : Box2D Air Native Extension
  23. qr-zbar-ane : QR Scanner uses ZBar iPhone library.
  24. lilili87222 / admob-for-flash : admob ane lib for flash iOS app and flash android app.it enable air application load native Advertising (need AdSupport framework while build = won’t work on Windows) UPDATE : see warning in comment below or here
  25. flash-for-mobile : admob ane for android
  26. admob-native-extension : admob ane (non English = poor doc, tested working no conflicted)
  27. new-actionscript-native-extension-speech-recognition : an API to launch the default speech recognition UI and capture voice input. also speech-recognition-ane-source
  28. air-hid-usb : AIR native extension, wrapper for HIDAPI
  29. ANE-Localytics : Localytics analytics for mobile Adobe AIR applications (iOS & Android)
  30. CanonEOS_LIB : An Adobe Native Extension to control a DSLR Canon camera (thx Angel Ernesto Anton Yebra)
  31. appirater-ane : Adobe AIR ANE for using Appirater in your iOS projects.
  32. nativetwitter-ane : Adobe AIR ANE for iOS devices that allows developers to use the native Twitter framework added in iOS 5.0. (tested working)
  33. rivella50/ANE-CameraRoll : Adobe Air Native Extension (ANE) for better support of mobile device’s CameraRoll e.g. thumbnail, photo info
  34. Admob Native Extension for Adobe Air : AdMob Mobile monetization platform with Adobe Air. The Extension support Android Platform and iOS Platform.  (not test yet but look promising) (thx Code Alchemy) 
  35. ChunkEMail : AIR Native Extension designed to use the Android email composer to send emails. (thx Nils Thingvall)
  36. GeoCapabilities : AIR Native Extension designed to expose more granular information on whether GPS is enabled or disabled. (thx Nils Thingvall)
  37. Facebook Single Sign-On for Android : name said it (thx afterisktech)
  38. Admob Native Extension 2014 : Admob Native Extension for Adobe Air for Google play from 1 Aug. 2014 deprecated, support Android: Google Play services ver. 5.0, iOS: Admob SDK 6.11.1 (Admob SDK 6.8.0 in iOS 4.3 compatible version) UPDATE : see warning in comment below or here
  39. you tell me!
And A lot more suggestion at comments below which surely miss some there sry!
Still have no luck? try here (not free, developer still need to eat anyway)

No money but brain? build your own!

Need 64-bit?


more to come…suggestion comment is more than welcome! :)