-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathsettings.gradle
More file actions
38 lines (33 loc) · 1.36 KB
/
Copy pathsettings.gradle
File metadata and controls
38 lines (33 loc) · 1.36 KB
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
37
38
gradle.ext.modules = []
def abi = gradle.startParameter.projectProperties.get('ABI')
gradle.ext.abiFilters = (abi != null) ? abi.split(",") : ['arm64-v8a', 'armeabi-v7a', 'x86_64']
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())
}
if ((gradle.ext.localProps['storeFile'] == null ||
!file(gradle.ext.localProps['storeFile']).isFile())) {
def localProps = gradle.ext.localProps
localProps.putIfAbsent('storeFile', "${rootDir}/res/fermata.jks".toString())
localProps.putIfAbsent('keyAlias', 'fermata')
localProps.putIfAbsent('keyPassword', 'fermata')
localProps.putIfAbsent('storePassword', localProps['keyPassword'])
apply from: "${rootDir}/res/build_jks.gradle"
localPropsFile.withOutputStream { out ->
localProps.store(out, null)
}
}
rootProject.name = 'Fermata Music Player'
include ':fermata'
include ':utils'
project(':utils').projectDir = file('depends/utils')
file('modules').eachDir {
def name = ':' + it.name
if ((':gdrive' == name) && !gradle.ext.enableGoogleServices) return
gradle.ext.modules.add(name)
include name
project(name).projectDir = it
}