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

Flair is a gradle plugin to build Adobe AIR projects with Starling and Feathers

License

Notifications You must be signed in to change notification settings

SamYStudiO/flair-gradle-plugin

Repository files navigation

Flair Gradle Plugin Build Status Bintray

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.

FEATURES :
  • Comes up with latest stable version of Starling and Feathers.
  • Also includes Signal events and Gestouch.
  • Almost transparent Flair actionscript library to manage your resources.
  • Once you're set up you'll be able to compile/test a template project.
  • Variant builds (build type and product flavor as Android).
  • TexturePacker plugin to auto generate your atlases when compiling.
  • IntelliJ IDEA plugin to configure project IDEA files and allow using standard run/debug configurations from IDEA.
  • FDT plugin to configure project FDT files and allow using standard run/debug configurations from FDT.
  • And more (Flair logger, asdoc generation , R class auto generated resource class as Android, ...).
REQUIREMENTS :
  • Gradle 2.5+
  • Starling 2+
  • Feathers 3+
  • Tested on IntelliJ 15+
  • Tested on FDT 1.16.91+
FULL DOCUMENTATION

Check wiki for more documentation.

DEMO

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.


Follow me on Twitter

About

Flair is a gradle plugin to build Adobe AIR projects with Starling and Feathers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published