Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
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
@turkergoksu
turkergoksu / AccountUtilTest.kt
Last active May 9, 2020 07:13
YTT_Odev_Test_Cases
package me.turkergoksu.yazilimsinama
import junit.framework.TestCase
import org.junit.Test
/**
* Created by turkergoksu on 09-May-20, 7:33 AM
*/
@turkergoksu
turkergoksu / AccountUtil.kt
Last active May 9, 2020 07:15
YTT_Odev_v1
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
// 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
}
#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());
}