forked from AndreyPavlenko/Fermata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
29 lines (26 loc) · 1.01 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
rootProject.name = 'Fermata Music Player'
gradle.ext.modules = []
gradle.ext.addonInfo = new StringBuilder(512)
gradle.ext.localProps = new Properties()
gradle.ext.enableGoogleServices = (System.getenv('NO_GS') == null)
&& file('fermata/google-services.json').isFile()
def localPropsFile = file('local.properties')
if (localPropsFile.isFile()) gradle.ext.localProps.load(localPropsFile.newDataInputStream())
def exoRoot = file('depends/ExoPlayer')
if (exoRoot.isDirectory()) {
gradle.ext.exoplayerRoot = exoRoot
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
apply from: new File(exoRoot, 'core_settings.gradle')
}
include ':fermata'
include ':control'
include ':utils'
project(':utils').projectDir = new File('depends/utils')
new File('modules').eachDir {
def name = ':' + it.name
if ((':exoplayer' == name) && !exoRoot.isDirectory()) return
if ((':gdrive' == name) && !gradle.ext.enableGoogleServices) return
gradle.ext.modules.add(name)
include name
project(name).projectDir = it
}