This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Gradle dependencies
SamYStudiO edited this page Mar 19, 2017
·
6 revisions
Though Flair structure should work as is you may want to set up different folders or add others, this can be achieved with gradle dependencies.
You may customize sources, as libraries, swc libraries, ane libraries and folders to package into your ipa, apk or exe/dmg.
Lets add custom folder for each one from your build.gradle
:
dependencies {
source files( "app/src/mySourcesFolder" )
asLibrary files( "app/myAsLibraryFolder" )
library files( "app/src/mySWCFolder" )
library files( "app/src/mySWCFolder/mySWCFile.swc" , "app/src/mySWCFolder/myOtherSWCFile.swc" )
library fileTree( dir: "app/src/mySWCFolder", include: "*.swc" )
nativeLibrary files( "app/src/myANEFolder" )
nativeLibrary files( "app/src/myANEFolder/myANEFile.ane" , "app/src/myANEFolder/myOtherANEFile.ane" )
nativeLibrary fileTree( dir: "app/src/myANEFolder", include: "*.ane" )
pack files( "app/src/myFolderToPackage" , ".../myFileToPackage" )
}
You may add folders for specific variants as well:
dependencies {
iosSource files( ".../mySourcesFolder" )
dogAsLibrary files( ".../myAsLibraryFolder" )
androidDebugLibrary fileTree( dir: ".../mySWCFolder", include: "*.swc" )
releaseNativeLibrary fileTree( dir: ".../myANEFolder", include: "*.ane" )
desktopFreeCatDebugPack files( ".../myFolderToPackage )
}
Adding variant dependencies must be done after flair declaration, this will work:
flair {
...
}
dependencies {
...
}
But this won't since variants haven't been declared yet:
dependencies {
...
}
flair {
...
}