-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.gradle
36 lines (33 loc) · 1.24 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
rootProject.name = "QPlay Edge (Demo)"
include ':demo'
def localPropertiesFile = file("local.properties")
def useSdkSource = false
if (localPropertiesFile.exists()) {
def localProperties = new Properties()
localProperties.load(new FileInputStream(localPropertiesFile))
useSdkSource = localProperties.getProperty("useSdkSource", "false").toBoolean()
ext.useDebugInfoSource = localProperties.getProperty("useDebugInfoSource", "false").toBoolean()
} else {
ext.useDebugInfoSource = false
}
if (useSdkSource) {
try {
includeBuild '../Android', {
dependencySubstitution {
substitute module('com.tencent.qqmusic.openapi:openapi-sdk') using project(':entry')
substitute module('com.tencent.qqmusic.openapi:openapi-sdk-gradle-plugin') using project(':sdk-gradle-plugin')
}
}
includeBuild '../module_playback_audio', {
dependencySubstitution {
substitute module('com.tencent.qqmusic.innovation:module-playback-audio') using project(':playback')
}
}
} catch (ignored) {
println("settings.gradle include failed. ignore:${ignored}")
}
}
include ':base'
if (ext.useDebugInfoSource) {
include ':debuginfo'
}