Skip to content

Commit 19a228c

Browse files
committed
[JavaKit] Fix JNINativeInterface_ for Android
1 parent e34ef73 commit 19a228c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/JavaKit/JavaEnvironment.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
import JavaRuntime
1616

17+
#if canImport(Android)
18+
typealias JNINativeInterface_ = JNINativeInterface
19+
#endif
20+
1721
extension UnsafeMutablePointer<JNIEnv?> {
1822
var interface: JNINativeInterface_ { self.pointee!.pointee }
1923
}

0 commit comments

Comments
 (0)