Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Example android ane

samystudio edited this page Feb 21, 2016 · 2 revisions

Its actually pretty common to have some native extensions for specific platform (iOS, Android and Desktop). Here is an example to add specific extensions from Android, edit your build.gradle file with the following:

flair {
  packageName "com.hello.world"

  ...

  ios {
    ...
  }

  android {
    ...
  }
}

dependencies {
  androidNativeLibrary fileTree( dir: "app/libs_ane_android" , include: "*.ane" )
}

Create then app/libs_ane_android folder and add you Android native extensions, these extensions will be packaged with Android only.