Skip to content

Commit

Permalink
Replace custom loader with changed Library implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Dec 10, 2020
1 parent 82c9a74 commit dd1a39d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 4 additions & 0 deletions skiko/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ val skijaSrcDir = run {
delombokSkijaSrcDir.deleteRecursively()
delombokSkijaSrcDir.mkdirs()
}
doLast {
// Remove Library.java from Skija.
file(delombokSkijaSrcDir.path + "/org/jetbrains/skija/impl/Library.java").delete()
}
}.map { delombokSkijaSrcDir }
}

Expand Down
7 changes: 0 additions & 7 deletions skiko/src/jvmMain/kotlin/org/jetbrains/skija/CustomLoader.kt

This file was deleted.

15 changes: 15 additions & 0 deletions skiko/src/jvmMain/kotlin/org/jetbrains/skija/impl/Library.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.jetbrains.skija.impl

import org.jetbrains.skiko.Library

class Library {
companion object {
@JvmStatic
fun staticLoad() {
Library.load()
}

@JvmStatic
external fun _nAfterLoad()
}
}

0 comments on commit dd1a39d

Please sign in to comment.