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

Scaffold overview

SamYStudiO edited this page Mar 19, 2017 · 23 revisions

Here is a the structure you should get after Flair plugin is initialized.

scaffold

libs_ane contains all AIR native extensions, Flair comes out with flair.PhysicalDensity.ane.

libs_as contains all non compiled (as files) external libraries, Flair comes out with as3-signals, gestouch and Flair libraries. These libraries are latest stable releases if you want to use different releases or most recent versions you may consider replacing them.

libs_swc contains all compiled libraries, Flair comes out with Starling, Feathers and flair-Logger libraries. These libraries are latest stable releases if you want to use different releases or most recent versions you may consider replacing them.

src/main contains all common files from all targeted platforms (ios/android/desktop).

  • src/main/actionscript contains your project classes.

  • src/main/assets contains any files that will be packaged into application but you'll need to load manually at runtime. Any files in this folder wil not be load into memory at startup in contrary to files in resources (res) folder. Learn more about resource management.

  • src/main/atlases contains texturePacker atlases. Note this folder is generated only if you have applied TexturePacker plugin in your build.gradle file. This is the default atlases folder though you may add atlases anywhere you want in src folder since publishAtlases task will publish all atlases under src folder.

  • src/main/fonts contains all font files. Learn more about resource management.

  • src/main/generated contains Fonts and R classes, these classes are auto generated from your src/{variant}/fonts and src/{variant}/res folders. Learn more about resource management.

  • src/main/res contains all resources files that will be loaded into memory at startup, this works pretty much the same as Android. Learn more about resource management.

src/ios, src/android, src/desktop contains all platform specific files, this includes certificates, icons, splashscreens and app descriptor xml, but you may as well add actionscript, assets, fonts, and resources (res) folders as in your main folder, these will only be compiled/packaged with corresponding platform. Note these platform folders are generated only if you have applied the corresponding plugin in your build.gradle file.

  • src/{platform}/icons contains icons for target platform, you should replace with your own (keep file names as is). You may removed unnecessary files if you targeting only handsets or only tablets.

  • src/{platform}/splashs contains splash screens for target platform, you should replace with your own (keep file names as is). You may removed unnecessary files if you targeting only handsets or only tablets.

  • src/{platform}/signing contains files to sign application. Learn more about signing your application.


You may then learn more about generated template under src/main/actionscript folder so you don't have to start from scratch.