Giter Site home page Giter Site logo

samystudio / flair-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 3.0 12.17 MB

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

License: BSD 2-Clause "Simplified" License

ActionScript 54.06% Groovy 45.94%
flair starling gradle-plugin feathers adobe-air

flair-gradle-plugin's Introduction

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

flair-gradle-plugin's People

Contributors

samystudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flair-gradle-plugin's Issues

AIR SDK home issue

I add (I think a valid) AIR SDK path to local.properties file

sdk.dir=/Volumes/Work/develop/as3/_SDK_/osx/air27flex4160

But when I refresh the gradpe project I got this:
Error:Cannot find AIR SDK home, set a valid AIR SDK home from your local.properties file under project root

Extrenal Feathers installation support

Hi!
Plugin is really great! Thank you!
A few suggestions:

  1. Checking of air SDK path by mxmlc instead of air-sdk-descriptor.
  2. Explicit enumeration of anes.
    This two fixes allow to use external Feathers SDK.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.