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_me_turkergoksu_kefilm_ApiKeyLibrary_getMovieDbApiKeyFromJNI(JNIEnv *env, jobject object) { | |
std::string movieDbApiKey = "YOUR_API_KEY_HERE"; | |
return env->NewStringUTF(movieDbApiKey.c_str()); | |
} |
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
// ApiKeyLibrary.kt | |
object ApiKeyLibrary { | |
init { | |
System.loadLibrary("api-keys") // ex.. api-keys.cpp | |
} | |
// Name of the function must be same as used in the native code. | |
external fun getMovieDbApiKeyFromJNI(): String | |
} |
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
package me.turkergoksu.yazilimsinama | |
/** | |
* Created by turkergoksu on 09-May-20, 7:29 AM | |
*/ | |
class AccountUtil { | |
private var KAYITLI_PAROLA = "123456" | |
private var MIN_LENGTH = 6 |
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
package me.turkergoksu.yazilimsinama | |
import junit.framework.TestCase | |
import org.junit.Test | |
/** | |
* Created by turkergoksu on 09-May-20, 7:33 AM | |
*/ |
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
package me.turkergoksu.yazilimsinama | |
/** | |
* Created by turkergoksu on 09-May-20, 7:29 AM | |
*/ | |
class AccountUtil { | |
private var KAYITLI_PAROLA = "123456" | |
private var MIN_LENGTH = 6 |