Created
July 7, 2021 09:34
-
-
Save AliAzaz/1f854e1cbf17a52552e2c7549407c72f to your computer and use it in GitHub Desktop.
.cpp file to secure key
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 jstring JNICALL | |
Java_edu_practice_utils_shared_Keys_apiKey(JNIEnv *env, jobject thiz) { | |
std::string api_key = "c527aa8fadcb58f1cccef75e3a64a3ae"; | |
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