| 490 | } |
| 491 | |
| 492 | MMKV_JNI jboolean encodeBool(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean value) { |
| 493 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 494 | if (kv && oKey) { |
| 495 | string key = jstring2string(env, oKey); |
| 496 | return (jboolean) kv->set((bool) value, key); |
| 497 | } |
| 498 | return (jboolean) false; |
| 499 | } |
| 500 | |
| 501 | MMKV_JNI jboolean encodeBool_2(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean value, jint expiration) { |
| 502 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected