Skip to content

Commit 3ff0cc0

Browse files
committed
Disable configuration cache - incompatible with bundleData task
1 parent 59f1c05 commit 3ff0cc0

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

app/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ android {
8383
}
8484
}
8585

86-
tasks.register("bundleData") {
86+
tasks.register<DefaultTask>("bundleData") {
87+
outputs.file(File(projectDir, "src/main/assets/bundled-places.json"))
8788
doLast {
88-
File(
89-
File(projectDir, "src/main/assets"),
90-
"bundled-places.json"
91-
).writeText(
89+
val dir = File(projectDir, "src/main/assets")
90+
dir.mkdirs()
91+
File(dir, "bundled-places.json").writeText(
9292
URI("https://api.btcmap.org/v4/places?fields=id,lat,lon,icon,name,comments,boosted_until").toURL()
9393
.readText()
9494
)

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
2-
org.gradle.configuration-cache=true

0 commit comments

Comments
 (0)