Flair is a gradle plugin that helps you build Adobe AIR projects (ios, android and desktop). Flair comes up with all tasks you may already use with Ant (compile, install, launch, etc...) but also with all files you need to start working on your projects. Last but not least Flair greatly improves resource management using an Android like approach.
Checkout Flair Starling Demo if you want to play with a project built using Flair.
QUICK START
Create a gradle project and set up your build.gradle file (located at your project root) with the following:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.samystudio.flair:flair-gradle-plugin:0.8.2"
}
}
apply plugin: "flair.ios" // only if your project need to target ios devices
apply plugin: "flair.android" // only if your project need to target android devices
apply plugin: "flair.desktop" // only if your project need to target desktop
apply plugin: "flair.texturepacker" // only if you want to use TexturePacker with your project
apply plugin: "flair.idea" // only if you are using IntelliJ IDEA
apply plugin: "flair.fdt" // only if you are using FDT
flair{
packageName "com.hello.world" // set your sources root package here (this is required to initialize flair plugin)
}
To initialize plugin you'll need as well to set a valid AIR SDK path in local.properties file from your project root (file should be added automatically when build.gradle and project tree are refreshed), after you set your sdk refresh your build.gradle and project tree again, then your project structure should be set under app folder.