Created
August 15, 2022 07:44
-
-
Save wajahatkarim3/71545ab95ba8fb5fdd60d04078a6750a 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
#include <jni.h> | |
#include <string> | |
extern "C" JNIEXPORT jstringJNICALL | |
Java_com_package_name_YourKeys_apiKey(JNIEnv *env, jobject object) { | |
std::string api_key = "your_api_key"; | |
return env->NewStringUTF(api_key.c_str()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment