forked from duckduckgo/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
127 lines (99 loc) · 4.04 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
plugins {
id("de.fayard.refreshVersions") version "0.40.1"
}
include ':browser-api'
include ':vpn'
include ':vpn-store'
include ':vpn-api'
include ':vpn-internal'
include ':di'
include ':app'
include ':statistics'
include ':common'
include ':common-ui'
include ':app-store'
include ':appbuildconfig-api'
include ':feature-toggles-api'
include ':feature-toggles-impl'
include ':privacy-config-api'
include ':privacy-config-impl'
include ':privacy-config-store'
include ':traces-api'
include ':traces-impl'
include ':anrs-api'
include ':anrs-impl'
include ':anrs-store'
include ':remote-messaging-api'
include ':remote-messaging-impl'
include ':remote-messaging-store'
include ':macos-api'
include ':macos-impl'
include ':macos-store'
include ':bandwidth-impl'
include ':bandwidth-store'
include ':downloads-api'
include ':downloads-impl'
include ':downloads-store'
include ':common-test'
include ':anvil-compiler'
include ':anvil-annotations'
include ':voice-search-api'
include ':voice-search-impl'
include ':voice-search-store'
project(':feature-toggles-api').projectDir = new File('feature-toggles/feature-toggles-api')
project(':feature-toggles-impl').projectDir = new File('feature-toggles/feature-toggles-impl')
project(':privacy-config-api').projectDir = new File('privacy-config/privacy-config-api')
project(':privacy-config-impl').projectDir = new File('privacy-config/privacy-config-impl')
project(':privacy-config-store').projectDir = new File('privacy-config/privacy-config-store')
project(':remote-messaging-api').projectDir = new File('remote-messaging/remote-messaging-api')
project(':remote-messaging-impl').projectDir = new File('remote-messaging/remote-messaging-impl')
project(':remote-messaging-store').projectDir = new File('remote-messaging/remote-messaging-store')
project(':voice-search-api').projectDir = new File('voice-search/voice-search-api')
project(':voice-search-impl').projectDir = new File('voice-search/voice-search-impl')
project(':voice-search-store').projectDir = new File('voice-search/voice-search-store')
project(':downloads-api').projectDir = new File('downloads/downloads-api')
project(':downloads-impl').projectDir = new File('downloads/downloads-impl')
project(':downloads-store').projectDir = new File('downloads/downloads-store')
project(':traces-api').projectDir = new File('traces/traces-api')
project(':traces-impl').projectDir = new File('traces/traces-impl')
project(':anrs-api').projectDir = new File('anrs/anrs-api')
project(':anrs-impl').projectDir = new File('anrs/anrs-impl')
project(':anrs-store').projectDir = new File('anrs/anrs-store')
project(':macos-api').projectDir = new File('macos/macos-api')
project(':macos-impl').projectDir = new File('macos/macos-impl')
project(':macos-store').projectDir = new File('macos/macos-store')
project(':bandwidth-impl').projectDir = new File('bandwidth/bandwidth-impl')
project(':bandwidth-store').projectDir = new File('bandwidth/bandwidth-store')
project(':anvil-compiler').projectDir = new File('anvil/anvil-compiler')
project(':anvil-annotations').projectDir = new File('anvil/anvil-annotations')
rootProject.children.each { subproject ->
if (subproject.name == "vpn") {
subproject.buildFileName = "${subproject.name}-build.gradle"
}
}
buildCache {
def getFile = { dir, filename ->
File file = new File("$dir$File.separator$filename")
file?.exists() ? file : null
}
def getLocalProperties = { dir ->
def file = getFile(dir, "local.properties")
if (!file) {
return null
}
Properties properties = new Properties()
properties.load(file.newInputStream())
return properties
}
local {
def properties = getLocalProperties(rootDir)
if (properties != null) {
enabled = "true" == properties.getProperty("local.build.cache", "true")
} else {
enabled = true
}
// configure local build cache directory so that it is local to the project dir
directory = new File(rootDir, 'build-cache')
removeUnusedEntriesAfterDays = 7
}
}