-
Notifications
You must be signed in to change notification settings - Fork 1
/
moduleFlavors.gradle
43 lines (37 loc) · 1.25 KB
/
moduleFlavors.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
android {
flavorDimensions 'type'
productFlavors {
stock {
dimension 'type'
}
turbo {
dimension 'type'
}
extremeTurbo {
dimension 'type'
}
}
sourceSets {
stock {
res.srcDirs = ['src/stock/res', 'src/stockAndStdTurbo/res']
assets.srcDirs = ['src/stockAndStdTurbo/assets', 'src/stock/assets']
}
turbo {
res.srcDirs = ['src/openftc/res', 'src/turbo/res', 'src/stockAndStdTurbo/res']
java.srcDirs = ['src/openftc/java', 'src/turbo/java']
assets.srcDirs = ['src/turbo/assets', 'src/stockAndStdTurbo/assets']
}
extremeTurbo {
res.srcDirs = ['src/openftc/res', 'src/extremeTurbo/res']
java.srcDirs = ['src/openftc/java', 'src/extremeTurbo/java']
//resources.srcDirs = ['src/openftc/java', 'src/extremeTurbo/java']
}
}
// Selecting a release variant will prompt teams to set up a signing key. Now that there's
// a reason to select other variants, better to filter out the ones that will confuse teams.
variantFilter { variant ->
if (variant.buildType.name == "release") {
setIgnore(true)
}
}
}