We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a5617 commit f2576b5Copy full SHA for f2576b5
core/src/jvmMain/kotlin/com/powersync/ExtractLib.kt
@@ -1,6 +1,5 @@
1
package com.powersync
2
3
-import java.io.File
4
import java.nio.file.Files
5
import java.nio.file.Path
6
import kotlin.io.path.Path
@@ -26,13 +25,14 @@ internal fun extractLib(fileName: String): String {
26
25
}
27
28
val path = Files.createTempFile(Path(System.getProperty("java.io.tmpdir")), prefix, extension)
29
- val file = path.toFile().apply {
30
- setReadable(true)
31
- setWritable(true)
32
- setExecutable(true)
+ val file =
+ path.toFile().apply {
+ setReadable(true)
+ setWritable(true)
+ setExecutable(true)
33
34
- deleteOnExit()
35
- }
+ deleteOnExit()
+ }
36
37
val resourcePath = "/$prefix${fileName}_$arch.$extension"
38
0 commit comments