-
-
Save initishbhatt/8136c25a11de790d3a24ca23b59bee80 to your computer and use it in GitHub Desktop.
This file contains 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
class NativeStore { | |
/** | |
* A native method that is implemented by the 'native-lib' native library, | |
* which is packaged with this application. | |
*/ | |
external fun stringFromJNI(): String | |
companion object { | |
@JvmStatic | |
fun testMethod(numOne: Int, numTwo: Int) = numOne + numTwo | |
// Used to load the 'native-lib' library on application startup. | |
init { | |
System.loadLibrary("native-lib") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment