forked from streetcomplete/StreetComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (63 loc) · 2.03 KB
/
build.gradle.kts
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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
val kotlinVersion = "1.5.30"
classpath("com.android.tools.build:gradle:4.2.2")
classpath(kotlin("gradle-plugin", version = kotlinVersion))
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register<UpdateStoreDescriptionsTask>("updateStoreDescriptions") {
group = "streetcomplete"
targetDir = "$projectDir/metadata"
apiToken = properties["POEditorAPIToken"] as String
}
tasks.register<SophoxCountValueByCountryTask>("updateAtmOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/atmOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmt:amenity 'atm';"
minCount = 2
minPercent = 0.1
}
tasks.register<SophoxCountValueByCountryTask>("updateClothesContainerOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/clothesContainerOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmt:amenity 'recycling'; osmt:recycling_type 'container'; osmt:recycling:clothes 'yes';"
minCount = 2
minPercent = 0.1
}
tasks.register<SophoxCountValueByCountryTask>("updateChargingStationOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/chargingStationOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmt:amenity 'charging_station';"
minCount = 2
minPercent = 0.1
}
tasks.register("updateStreetCompleteData") {
group = "streetcomplete"
dependsOn(
"updateStoreDescriptions",
//"updateChargingStationOperators",
//"updateClothesContainerOperators",
//"updateAtmOperators",
"app:updatePresets",
"app:updateNsiPresets",
"app:updateTranslatorCredits",
"app:updateTranslations",
"app:updateTranslationCompleteness",
"app:copyDefaultStringsToEnStrings",
"app:generateMetadataByCountry",
"app:updateTranslatorCredits"
)
}