Skip to content

Commit 6f8a147

Browse files
committed
fix filename
1 parent be8259b commit 6f8a147

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/NdkBinaryFixTask.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ abstract class NdkBinaryFixTask : DefaultTask() {
2929

3030
@get:OutputFile
3131
val outputFile: File
32-
get() = File("${inputFile.get().asFile.absolutePath}.so")
32+
get() = inputFile.get().asFile.let {
33+
File(it.parentFile, "lib${it.name}.so")
34+
}
3335

3436
@get:Internal
3537
val into: String
@@ -39,7 +41,7 @@ abstract class NdkBinaryFixTask : DefaultTask() {
3941
fun run() {
4042
Files.copy(
4143
inputFile.get().asFile.toPath(),
42-
File("${inputFile.get().asFile.absolutePath}.so").toPath(),
44+
outputFile.toPath(),
4345
StandardCopyOption.REPLACE_EXISTING
4446
)
4547
}

0 commit comments

Comments
 (0)