-
Notifications
You must be signed in to change notification settings - Fork 3
Gradle properties
####Flair properties overview with their default value:
flair {
moduleName "app"
packageName null
autoGenerateVariantDirectories true
debug false
generateAtfTexturesFromDrawables false
appId "{packageName}"
appIdSuffix ""
appName {projectName}
appNameSuffix ""
appFileName {projectName.replace( " " , "_" ).toLowerCase()}
appVersion "1.0.0"
appFullScreen true
appAspectRatio "any"
appAutoOrients true
appDepthAndStencil false
appDefaultSupportedLanguage "en"
compilerMainClass //default is platform dependent, see details below
compilerOption // add a compile argument
compilerOptions // add multiple compile arguments
packageFileName {projectName.replace( " " , "_" ).toLowerCase()}_{productFlavors}_{buildType}_{version}
packageTarget //default is platform dependent, see details below
packageX86 false
packageExcludeResource // exclude a drawable folder resource, see details below
packageExcludeResources //exclude multiple drawable folder resources, see details below
packageConnect null
packageListen null //7936 if debug is true
packageSampler false
packageHideAneLibSymbols false
packagePlatformSdk null
signingAlias null
signingProviderName null
signingTsa null
signingKeyPass null
signingStoreType "pkcs12"
signingKeyStore //default is platform dependent, see details below
signingStorePass //default is platform dependent, see details below
signingProvisioningProfile //default is package target dependent, see details below
adlScreenSize "540x920:540x960"
adlScreenDpi //default is platform dependent, see details below
adlPubId null
adlNoDebug false
adlAtLogin false
adlParameter // add a adl argument
adlParameters // add multiple adl arguments
}
=== ####Flair properties Properties used to configure Flair.
-
moduleName Name of the root directory containing all project files.
-
packageName Name of the root package containing actionscript files (for example com.hello.world).
-
autoGenerateVariantDirectories if true a variant directory is automatically added under src folder when you add a new variant.
=== ####App descriptor properties Theses properties will be written in your app descriptor files when using assembleXxx tasks from build group or any task that depends on assembleXxx.
-
appId, appName, appFileName, appVersion, appFullScreen, appAspectRatio, appAutoOrients, appDepthAndStencil These properties will be written in their equivalent from app descriptor.
-
appIdSuffix Add a suffix to current app id this may be useful when using different variants.
-
appNameSuffix Add a suffix to current app name this may be useful when using different variants.
-
appDefaultSupportedLanguage This is the default language to add in supportedLanguages node from your app descriptor xml, only set your default language since others languages will be automatically detected from your resources by scanning values folders.
=== ####Compiler properties Properties to configure compilation when using compileXxx tasks from build group.
-
compilerMainClass Compilation main class, default is
{packageName}.MainIos
for IOS platform,{packageName}.MainAndroid
for Android platform and{packageName}.MainDesktop
for Desktop platform (for example com.hello.world.MainIos). -
compilerOption , compilerOptions Additional options you may want to add to compiler, for example:
compilerOption "-swf-version=30" compilerOptions "-swf-version=30" , "-define+=CONFIG::HELLO,world"
Check Adobe documentation for compiler options.
=== ####Package properties Properties to configure packaging when using tasks from package group.
-
packageFileName This property is used to customize your packaged ipa, apk or exe file name. By default file name is
{projectName.replace( " " , "_" ).toLowerCase()}_{productFlavors}_{buildType}_{version}
, for example hello_world_armv7_debug_1.0.0. Do not add file extension here, extension will be added automatically. -
packageExcludeResource , packageExcludeResources These properties allow to configure each drawable buckets that will be packaged into your application. For example on iOS including hdpi assets is useless since no iOS device is hdpi. Defaults are as following :
-
Ios
[ "drawable*-ldpi*/**" , "drawable*-mdpi*/**" , "drawable*-hdpi*/**" , "drawable*-xxxhdpi*/**" ]
only xhdpi and xxhdpi (x2 et x3) are packaged. By default Flair exclude mdpi (x1) drawables, this mean 1st generation devices will use scaled drawables from xhdpi.
-
Android
[ "drawable*-ldpi*/**" , "drawable*-xxxhdpi*/**" ]
include all but ldpi and xxxhdpi, google recommended not using xxxhdpi at the moment since larger devices are x3.5 and scaling up xxhdpi (x3) is fine. Exclude ldpi by default since not much devices using this bucket anymore and if need it will be scaled down from mdpi bucket.
-
Desktop
[ "drawable*-ldpi*/**" , "drawable*-hdpi*/**" , "drawable*-xxhdpi*/**" , "drawable*-xxxhdpi*/**" ]
exclude all but mdpi (standard screens) and xhdpi (for retina mac screens).
-
Ios
-
packageTarget If you don't set package target default will be as following:
-
Ios
ipa-debug
if debug is true elseipa-test
-
Android
apk-debug
if debug is true elseapk-captive-runtime
-
Desktop
native
as this is the only supported target for Desktop platform
-
Ios
-
packageX86 Set to true to use x86 architecture instead of armv7 (Android only).
-
packageConnect
-
packageListen
-
packageSampler
-
packageHideAneLibSymbols
-
packagePlatformSdk
Check Adobe documentation for packaging options.
=== ####Signing properties Properties to configure signing when packaging.
- signingProvisioningProfile
- signingKeyStore
- signingStorePass
- signingAlias
- signingProviderName
- signingTsa
- signingKeyPass
- signingStoreType
Check signing your application and Adobe documentation for signing options.
=== ####ADL properties Properties to configure ADL emulator when using tasks from launch group.
-
adlScreenSize Adl emulator screen size, default is
540x920:540x960
. -
adlScreenDpi Adl emulator screen dpi (undocumented from Adobe documentation), default is
200
for iOS and240
for Android. -
adlPubId
-
adlNoDebug
-
adlAtLogin
-
adlParameter, adlParameters
Check Adobe documentation for adl options.