Skip to content

Commit

Permalink
Bundle new endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Sep 23, 2024
1 parent 9fe6be3 commit b3b14c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ build/

# App data
app/src/androidMain/assets/elements.json
app/src/androidMain/assets/element-comments.json
app/src/androidMain/assets/reports.json
app/src/androidMain/assets/events.json
app/src/androidMain/assets/areas.json
app/src/androidMain/assets/area-elements.json
app/src/androidMain/assets/users.json
6 changes: 6 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ tasks.register("bundleData") {
val elementsSrc = URI("https://static.btcmap.org/api/v3/elements.json")
File(destDir, "elements.json").writeText(elementsSrc.toURL().readText())

val elementCommentsSrc = URI("https://static.btcmap.org/api/v3/element-comments.json")
File(destDir, "element-comments.json").writeText(elementCommentsSrc.toURL().readText())

val reportsSrc = URI("https://static.btcmap.org/api/v3/reports.json")
File(destDir, "reports.json").writeText(reportsSrc.toURL().readText())

Expand All @@ -146,6 +149,9 @@ tasks.register("bundleData") {
val areasSrc = URI("https://static.btcmap.org/api/v3/areas.json")
File(destDir, "areas.json").writeText(areasSrc.toURL().readText())

val areaElementsSrc = URI("https://static.btcmap.org/api/v3/area-elements.json")
File(destDir, "area-elements.json").writeText(areaElementsSrc.toURL().readText())

val usersSrc = URI("https://static.btcmap.org/api/v3/users.json")
File(destDir, "users.json").writeText(usersSrc.toURL().readText())
}
Expand Down

0 comments on commit b3b14c8

Please sign in to comment.