-
-
Notifications
You must be signed in to change notification settings - Fork 412
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
97 lines (88 loc) · 3.73 KB
/
build.gradle.kts
File metadata and controls
97 lines (88 loc) · 3.73 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
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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
id("org.jetbrains.kotlin.multiplatform") version "2.3.0" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.3.0" apply false
id("com.android.application") version "8.11.2" apply false
id("com.android.library") version "8.11.2" apply false
id("org.jetbrains.compose") version "1.10.0" apply false
id("org.jetbrains.kotlinx.atomicfu") version "0.31.0" apply false
}
val poEditorProjectId = "97843"
tasks.register<UpdateWebsiteTranslationsTask>("updateWebsiteTranslations") {
group = "streetcomplete"
targetDir = "$projectDir/../streetcomplete-website/res"
projectId = poEditorProjectId
apiToken = properties["app.streetcomplete.POEditorAPIToken"] as String
}
tasks.register<UpdateStoreDescriptionsTask>("updateStoreDescriptions") {
group = "streetcomplete"
targetDir = "$projectDir/metadata"
projectId = poEditorProjectId
apiToken = properties["app.streetcomplete.POEditorAPIToken"] as String
}
tasks.register<QLeverCountValueByCountryTask>("updateAtmOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/atmOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmkey:amenity 'atm';"
minCount = 2
minPercent = 0.1
}
tasks.register<QLeverCountValueByCountryTask>("updateParcelLockerBrand") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/parcelLockerBrand.yml"
osmTag = "brand"
sparqlQueryPart = "osmkey:amenity 'parcel_locker';"
minCount = 2
minPercent = 0.1
}
tasks.register<QLeverCountValueByCountryTask>("updateClothesContainerOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/clothesContainerOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmkey:amenity 'recycling'; osmkey:recycling_type 'container'; osmkey:recycling:clothes 'yes';"
minCount = 2
minPercent = 0.1
}
tasks.register<QLeverCountValueByCountryTask>("updateChargingStationOperators") {
group = "streetcomplete"
targetFile = "$projectDir/res/country_metadata/chargingStationOperators.yml"
osmTag = "operator"
sparqlQueryPart = "osmkey:amenity 'charging_station';"
minCount = 2
minPercent = 0.1
}
tasks.register<GenerateQuestListTask>("generateQuestList") {
group = "streetcomplete"
targetFile = "$projectDir/quest-list.csv"
projectDirectory = projectDir
questsDirectory = projectDir.resolve("app/src/androidMain/kotlin/de/westnordost/streetcomplete/quests/")
iconsDirectory = projectDir.resolve("res/graphics/quest/")
noteQuestFile = projectDir.resolve("app/src/androidMain/kotlin/de/westnordost/streetcomplete/quests/note_discussion/OsmNoteQuestType.kt")
questsModuleFile = projectDir.resolve("app/src/androidMain/kotlin/de/westnordost/streetcomplete/quests/QuestsModule.kt")
stringsFile = projectDir.resolve("app/src/androidMain/res/values/strings.xml")
}
tasks.register("updateStreetCompleteData") {
group = "streetcomplete"
dependsOn(
"updateStoreDescriptions",
"updateChargingStationOperators",
"updateClothesContainerOperators",
"updateAtmOperators",
"updateParcelLockerBrand",
"generateQuestList",
"app:updateContributorStatistics",
"app:updatePresets",
"app:updateNsiPresets",
"app:updateTranslations",
"app:updateTranslationCompleteness",
"app:updateMapStyle",
"app:updateChangelog",
"app:generateMetadataByCountry",
"app:updateTranslatorCredits",
"app:updateAvailableLanguages",
"app:downloadAndConvertPresetIcons",
"app:copyDefaultStringsToEnStrings"
)
}