Created
February 16, 2016 22:16
-
-
Save robedge/ea602028acd40a008ee4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def includeModules = { moduleList -> | |
// def extModuleDir = 'aw-common' | |
// def moduleList = ['wear-common', 'engine'] | |
for (Map moduleData in moduleList) { | |
def module = ":" + moduleData['module'] | |
def modulePath = moduleData['path'] + "/" | |
include module | |
/* | |
Expects the path to your module to be in the same base directory as your current project | |
Example: | |
~/AndroidStudioProjects | |
/android-wear-saved-faces | |
/MyFaces | |
/openGL-engine | |
/Engine | |
*/ | |
// ...must change projectDir for each module | |
project(module).projectDir = new File(settingsDir, "../../" + modulePath + moduleData['module']) | |
println "- include " + module + " path=" + project(module).projectDir.getPath() | |
} | |
} | |
includeModules([ | |
//[module: 'engine', path: 'openGL-engine/Engine'] | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment