Skip to content

Instantly share code, notes, and snippets.

@robedge
Created February 16, 2016 22:16
Show Gist options
  • Save robedge/ea602028acd40a008ee4 to your computer and use it in GitHub Desktop.
Save robedge/ea602028acd40a008ee4 to your computer and use it in GitHub Desktop.
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