| 851 | } |
| 852 | |
| 853 | MMKV_JNI jboolean encodeSet_2(JNIEnv *env, jobject, jlong handle, jstring oKey, jobjectArray arrStr, jint expiration) { |
| 854 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 855 | if (kv && oKey) { |
| 856 | string key = jstring2string(env, oKey); |
| 857 | if (arrStr) { |
| 858 | vector<string> value = jarray2vector(env, arrStr); |
| 859 | return (jboolean) kv->set(value, key, (uint32_t) expiration); |
| 860 | } else { |
| 861 | kv->removeValueForKey(key); |
| 862 | return (jboolean) true; |
| 863 | } |
| 864 | } |
| 865 | return (jboolean) false; |
| 866 | } |
| 867 | |
| 868 | MMKV_JNI jobjectArray decodeStringSet(JNIEnv *env, jobject, jlong handle, jstring oKey) { |
| 869 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected