Swiftpack.co - Package - tuarua/Battery-ANE


Battery Adobe Air Native Extension for iOS 9.0+ and Android 19+.


The ANE + Dependencies

cd into /example and run:

  • OSX (Terminal)
bash get_android_dependencies.sh
  • Windows Powershell
PS get_android_dependencies.ps1


The ANE + Dependencies

N.B. You must use a Mac to build an iOS app using this ANE. Windows is NOT supported.

From the command line cd into /example and run:

bash get_ios_dependencies.sh

This folder, ios_dependencies/device/Frameworks, must be packaged as part of your app when creating the ipa. How this is done will depend on the IDE you are using. After the ipa is created unzip it and confirm there is a "Frameworks" folder in the root of the .app package.


You will need:

  • IntelliJ IDEA / Flash Builder
  • AIR or greater
  • Android Studio 3 if you wish to edit the Android source
  • Xcode 10.1
  • wget on OSX
  • Powershell on Windows


  • [https://developer.android.com/training/monitoring-device-state/battery-monitoring.html]
  • [https://kotlinlang.org/docs/reference/android-overview.html]
  • [https://developer.apple.com/documentation/uikit/uidevice/1620051-batterystate]


Stars: 1
Help us keep the lights on


Used By

Total: 0


1.1.0 - Apr 19, 2019

  • Upgraded to AIR
  • AND: Updated to FreKotlin 1.7.0
  • iOS: Updated to FreSwift 3.1.0

1.0.0 - Dec 23, 2018

  • AND: Updated to FreKotlin 1.6.0
  • iOS: Updated to FreSwift 3.0.0
  • Updated to AIR 32