Skip to content

Commit

Permalink
chore: deps: update MMKV to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Aug 12, 2023
1 parent 2ccb80b commit ce7cb0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/mmkv/MMKV
Submodule MMKV updated 76 files
+1 −0 .gitignore
+1 −1 Android/MMKV/build.gradle
+1 −1 Android/MMKV/gradle.properties
+1 −1 Android/MMKV/gradle/wrapper/gradle-wrapper.properties
+2 −2 Android/MMKV/mmkv/build.gradle
+4 −4 Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp
+7 −7 Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp
+124 −46 Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java
+5 −5 Android/MMKV/mmkvdemo/build.gradle
+2 −2 Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MainActivity.java
+11 −0 CHANGELOG.md
+26 −4 Core/MMKV.cpp
+9 −6 Core/MMKV.h
+1 −1 Core/MMKVPredef.h
+32 −17 Core/MMKV_IO.cpp
+8 −3 Core/MMKV_OSX.cpp
+8 −4 Core/MemoryFile.cpp
+8 −0 Core/aes/openssl/openssl_aes-armv4.S
+3 −3 Core/core.vcxproj
+2 −2 MMKV.podspec
+2 −2 MMKVAppExtension.podspec
+1 −1 MMKVCore.podspec
+2 −2 MMKVWatchExtension.podspec
+2 −0 POSIX/Python/demo.py
+2 −2 POSIX/Python/libmmkv_python.cpp
+6 −1 POSIX/demo/demo.cpp
+4 −4 POSIX/golang/golang-bridge.cpp
+2 −2 POSIX/golang/golang-bridge.h
+52 −38 POSIX/golang/mmkv.go
+2 −0 POSIX/golang/test/main.go
+3 −3 README.md
+2 −2 README_CN.md
+6 −1 Win32/Win32Demo/Win32Demo.cpp
+3 −3 Win32/Win32Demo/Win32Demo.vcxproj
+3 −3 Win32/Win32DemoProcess/Win32DemoProcess.vcxproj
+5 −0 flutter/CHANGELOG.md
+5 −5 flutter/README.md
+3 −3 flutter/android/build.gradle
+1 −1 flutter/android/gradle/wrapper/gradle-wrapper.properties
+15 −3 flutter/example/android/app/build.gradle
+2 −2 flutter/example/android/build.gradle
+1 −1 flutter/example/android/gradle/wrapper/gradle-wrapper.properties
+14 −13 flutter/example/ios/Podfile.lock
+3 −0 flutter/example/lib/main.dart
+21 −37 flutter/example/pubspec.lock
+4 −4 flutter/ios/Classes/flutter-bridge.mm
+2 −2 flutter/ios/mmkvflutter.podspec
+20 −7 flutter/lib/mmkv.dart
+26 −34 flutter/pubspec.lock
+3 −3 flutter/pubspec.yaml
+6 −6 iOS/MMKV/MMKV.xcodeproj/project.pbxproj
+6 −0 iOS/MMKV/MMKV/MMKV.h
+8 −0 iOS/MMKV/MMKV/libMMKV.mm
+195 −0 iOS/MMKVDemo/MMKVDemo.xcodeproj/project.pbxproj
+10 −0 iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/MMKVDemo.xcscheme
+23 −3 iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/MMKVTodayExtensionDemo.xcscheme
+10 −0 iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/WatchApp (Notification).xcscheme
+10 −0 iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/WatchApp.xcscheme
+78 −0 iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/kvdemo.xcscheme
+18 −0 iOS/MMKVDemo/MMKVDemo/ViewController.mm
+15 −9 iOS/MMKVDemo/MMKVTodayExtensionDemo/Base.lproj/MainInterface.storyboard
+10 −5 iOS/MMKVDemo/MMKVTodayExtensionDemo/TodayViewController.m
+15 −0 iOS/MMKVDemo/kvdemo/AppDelegate.h
+49 −0 iOS/MMKVDemo/kvdemo/AppDelegate.m
+11 −0 iOS/MMKVDemo/kvdemo/Assets.xcassets/AccentColor.colorset/Contents.json
+13 −0 iOS/MMKVDemo/kvdemo/Assets.xcassets/AppIcon.appiconset/Contents.json
+6 −0 iOS/MMKVDemo/kvdemo/Assets.xcassets/Contents.json
+25 −0 iOS/MMKVDemo/kvdemo/Base.lproj/LaunchScreen.storyboard
+45 −0 iOS/MMKVDemo/kvdemo/Base.lproj/Main.storyboard
+25 −0 iOS/MMKVDemo/kvdemo/Info.plist
+16 −0 iOS/MMKVDemo/kvdemo/SceneDelegate.h
+58 −0 iOS/MMKVDemo/kvdemo/SceneDelegate.m
+15 −0 iOS/MMKVDemo/kvdemo/ViewController.h
+38 −0 iOS/MMKVDemo/kvdemo/ViewController.m
+10 −0 iOS/MMKVDemo/kvdemo/kvdemo.entitlements
+19 −0 iOS/MMKVDemo/kvdemo/main.m
14 changes: 7 additions & 7 deletions libs/mmkv/native-bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,10 @@ MMKV_JNI jbyteArray decodeBytes(JNIEnv *env, jobject obj, jlong handle, jstring
return nullptr;
}

MMKV_JNI jobjectArray allKeys(JNIEnv *env, jobject instance) {
MMKV *kv = getMMKV(env, instance);
MMKV_JNI jobjectArray allKeys(JNIEnv *env, jobject instance, jlong handle, jboolean filterExpire) {
MMKV *kv = reinterpret_cast<MMKV *>(handle);
if (kv) {
vector<string> keys = kv->allKeys();
vector<string> keys = kv->allKeys((bool) filterExpire);
return vector2jarray(env, keys);
}
return nullptr;
Expand All @@ -673,10 +673,10 @@ MMKV_JNI jboolean containsKey(JNIEnv *env, jobject instance, jlong handle, jstri
return (jboolean) false;
}

MMKV_JNI jlong count(JNIEnv *env, jobject instance, jlong handle) {
MMKV_JNI jlong count(JNIEnv *env, jobject instance, jlong handle, jboolean filterExpire) {
MMKV *kv = reinterpret_cast<MMKV *>(handle);
if (kv) {
jlong size = kv->count();
jlong size = kv->count((bool) filterExpire);
return size;
}
return 0;
Expand Down Expand Up @@ -1028,7 +1028,7 @@ static JNINativeMethod g_methods[] = {
{"lock", "()V", (void *) mmkv::lock},
{"unlock", "()V", (void *) mmkv::unlock},
{"tryLock", "()Z", (void *) mmkv::tryLock},
{"allKeys", "()[Ljava/lang/String;", (void *) mmkv::allKeys},
{"allKeys", "(JZ)[Ljava/lang/String;", (void *) mmkv::allKeys},
{"removeValuesForKeys", "([Ljava/lang/String;)V", (void *) mmkv::removeValuesForKeys},
{"clearAll", "()V", (void *) mmkv::clearAll},
{"trim", "()V", (void *) mmkv::trim},
Expand Down Expand Up @@ -1069,7 +1069,7 @@ static JNINativeMethod g_methods[] = {
{"encodeBytes_2", "(JLjava/lang/String;[BI)Z", (void *) mmkv::encodeBytes_2},
{"decodeBytes", "(JLjava/lang/String;)[B", (void *) mmkv::decodeBytes},
{"containsKey", "(JLjava/lang/String;)Z", (void *) mmkv::containsKey},
{"count", "(J)J", (void *) mmkv::count},
{"count", "(JZ)J", (void *) mmkv::count},
{"totalSize", "(J)J", (void *) mmkv::totalSize},
{"actualSize", "(J)J", (void *) mmkv::actualSize},
{"removeValueForKey", "(JLjava/lang/String;)V", (void *) mmkv::removeValueForKey},
Expand Down

0 comments on commit ce7cb0f

Please sign in to comment.