Created
January 28, 2018 16:33
-
-
Save donaldmunro/0e5fd744726713f0aa428f9029244f3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using javah to generate .h files for Kotlin | |
# Assuming JNI function calls are in MainActivity.companion | |
STUDIO=/opt/android-studio | |
PACKAGE=my.package | |
$STUDIO/jre/bin/javah -jni -cp "$STUDIO/lib/kotlin-runtime.jar:build/tmp/kotlin-classes/debug" $PACKAGE.MainActivity.Companion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment