ktaglib: fix package bugs

This commit is contained in:
Alexander Capehart 2024-12-12 12:53:27 -07:00
parent 8c865fb581
commit 7640292d7a
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@
#include "taglib/tag.h" #include "taglib/tag.h"
extern "C" JNIEXPORT jstring JNICALL extern "C" JNIEXPORT jstring JNICALL
Java_org_oxycblt_ktaglib_NativeLib_stringFromJNI( Java_org_oxycblt_ktaglib_KTagLib_load(
JNIEnv* env, JNIEnv* env,
jobject /* this */) { jobject /* this */) {
std::string hello = "Hello from C++"; std::string hello = "Hello from C++";

View file

@ -1,4 +1,6 @@
package com.example.ktaglib package org.oxycblt.ktaglib
import java.io.InputStream
object KTagLib { object KTagLib {
// Used to load the 'ktaglib' library on application startup. // Used to load the 'ktaglib' library on application startup.
@ -10,5 +12,5 @@ object KTagLib {
* A native method that is implemented by the 'ktaglib' native library, * A native method that is implemented by the 'ktaglib' native library,
* which is packaged with this application. * which is packaged with this application.
*/ */
external fun stringFromJNI(): String external fun load(): String
} }