forked from googlevr/gvr-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
36 lines (30 loc) · 1.25 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// This is a configuration file used to determine all the projects prior to
// building them.
// Explicitly load all the libraries and samples using their full path.
include ':libraries:audio'
include ':libraries:base'
include ':libraries:common'
include ':libraries:commonwidget'
include ':libraries:controller'
include ':libraries:panowidget'
include ':libraries:videowidget'
include ':samples:sdk-controllerclient'
include ':samples:sdk-simplepanowidget'
include ':samples:sdk-simplevideowidget'
include ':samples:sdk-treasurehunt'
// Android Studio doesn't preserve nested modules in its Project View. To create
// a cleaner layout, we reorganize and rename the modules loaded above.
Set moduleList = new HashSet() // Modules to display in the Project View.
// Move all the modules from root/samples/simplepanowidget to
// root/samples-simplepanowidget.
rootProject.children.each { outerDir ->
outerDir.children.each { innerDir ->
// Rename the modules as we move them around.
innerDir.name = "$outerDir.name-$innerDir.name"
}
moduleList.addAll(outerDir.children)
}
// Remove the top-level modules which are empty and useless.
rootProject.children.clear()
// Add the subdirectories as top-level modules.
rootProject.children.addAll(moduleList)