| 918 | # ifndef MMKV_DISABLE_CRYPT |
| 919 | |
| 920 | MMKV_JNI jstring cryptKey(JNIEnv *env, jobject instance) { |
| 921 | MMKV *kv = getMMKV(env, instance); |
| 922 | if (kv) { |
| 923 | string cryptKey = kv->cryptKey(); |
| 924 | if (cryptKey.length() > 0) { |
| 925 | return string2jstring(env, cryptKey); |
| 926 | } |
| 927 | } |
| 928 | return nullptr; |
| 929 | } |
| 930 | |
| 931 | MMKV_JNI jboolean doReKey(JNIEnv *env, jobject instance, jstring cryptKey, jboolean aes256) { |
| 932 | MMKV *kv = getMMKV(env, instance); |
nothing calls this directly
no test coverage detected