Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mmkv | 16,374 | 68 | 5 days ago | 12 | November 20, 2023 | 3 | other | C++ | ||
An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX. | ||||||||||
Fluwx | 2,908 | 12 | 5 | 16 days ago | 158 | November 20, 2023 | 23 | apache-2.0 | Dart | |
Flutter版微信SDK.WeChat SDK for flutter. | ||||||||||
Wechat_flutter | 2,273 | 6 months ago | 42 | apache-2.0 | Dart | |||||
wechat_flutter is Flutter version WeChat, an excellent Flutter instant messaging IM open source library! | ||||||||||
Flutter_wechat_assets_picker | 1,361 | 16 | 13 hours ago | 153 | November 16, 2023 | 9 | apache-2.0 | Dart | ||
An image picker (also with video and audio) for Flutter projects based on the WeChat's UI. | ||||||||||
Azlistview | 1,031 | 12 | 6 | 3 months ago | 10 | February 12, 2022 | 34 | bsd-3-clause | Dart | |
A Flutter sticky headers & index ListView. Flutter 城市列表、联系人列表,索引&悬停。 | ||||||||||
Jh_flutter_demo | 725 | 14 days ago | bsd-2-clause | Dart | ||||||
flutter项目- 实现一些常用效果、封装通用组件和工具类 | ||||||||||
Wechat_kit | 617 | 4 | 6 months ago | 38 | June 06, 2023 | 21 | mit | Dart | ||
Flutter版微信登录/分享/支付 SDK | ||||||||||
Flutter_mp | 377 | 4 years ago | 7 | mit | Dart | |||||
Bring your Flutter code to mini program | ||||||||||
Flutter_wechat_camera_picker | 322 | 15 | 19 days ago | 67 | November 17, 2023 | 5 | apache-2.0 | Dart | ||
A camera picker (take photos and videos) for Flutter projects based on WeChat's UI. It's a standalone module of wechat_assets_picker yet it can be run separately. | ||||||||||
Flutter_photo | 300 | 3 | 2 years ago | 43 | April 28, 2020 | 57 | apache-2.0 | Dart | ||
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native. |
中文版本请参看这里
MMKV is an efficient, small, easy-to-use mobile key-value storage framework used in the WeChat application. It's currently available on Android, iOS/macOS, Win32 and POSIX.
Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of Android to achieve the best performance.
Easy-to-use. You can use MMKV as you go. All changes are saved immediately, no sync
, no apply
calls needed.
Small.
Add the following lines to build.gradle
on your app module:
dependencies {
implementation 'com.tencent:mmkv:1.3.2'
// replace "1.3.2" with any available version
}
For other installation options, see Android Setup.
You can use MMKV as you go. All changes are saved immediately, no sync
, no apply
calls needed.
Setup MMKV on App startup, say your Application
class, add these lines:
public void onCreate() {
super.onCreate();
String rootDir = MMKV.initialize(this);
System.out.println("mmkv root: " + rootDir);
//……
}
MMKV has a global instance, that can be used directly:
import com.tencent.mmkv.MMKV;
MMKV kv = MMKV.defaultMMKV();
kv.encode("bool", true);
boolean bValue = kv.decodeBool("bool");
kv.encode("int", Integer.MIN_VALUE);
int iValue = kv.decodeInt("int");
kv.encode("string", "Hello from mmkv");
String str = kv.decodeString("string");
MMKV also supports Multi-Process Access. Full tutorials can be found here Android Tutorial.
Writing random int
for 1000 times, we get this chart:
For more benchmark data, please refer to our benchmark.
Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of iOS/macOS to achieve the best performance.
Easy-to-use. You can use MMKV as you go, no configurations are needed. All changes are saved immediately, no synchronize
calls are needed.
Small.
cd
to your project directory, run pod repo update
to make CocoaPods aware of the latest available MMKV versions;pod 'MMKV'
to your app target;pod install
;.xcworkspace
file generated by CocoaPods;#import <MMKV/MMKV.h>
to your source file and we are done.For other installation options, see iOS/macOS Setup.
You can use MMKV as you go, no configurations are needed. All changes are saved immediately, no synchronize
calls are needed.
Setup MMKV on App startup, in your -[MyApp application: didFinishLaunchingWithOptions:]
, add these lines:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// init MMKV in the main thread
[MMKV initializeMMKV:nil];
//...
return YES;
}
MMKV has a global instance, that can be used directly:
MMKV *mmkv = [MMKV defaultMMKV];
[mmkv setBool:YES forKey:@"bool"];
BOOL bValue = [mmkv getBoolForKey:@"bool"];
[mmkv setInt32:-1024 forKey:@"int32"];
int32_t iValue = [mmkv getInt32ForKey:@"int32"];
[mmkv setString:@"hello, mmkv" forKey:@"string"];
NSString *str = [mmkv getStringForKey:@"string"];
MMKV also supports Multi-Process Access. Full tutorials can be found here.
Writing random int
for 10000 times, we get this chart:
For more benchmark data, please refer to our benchmark.
Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of Windows to achieve the best performance.
Easy-to-use. You can use MMKV as you go. All changes are saved immediately, no save
, no sync
calls are needed.
Small.
Getting source code from git repository:
git clone https://github.com/Tencent/MMKV.git
Add Win32/MMKV/MMKV.vcxproj
to your solution;
Add MMKV
project to your project's dependencies;
Add $(OutDir)include
to your project's C/C++
-> General
-> Additional Include Directories
;
Add $(OutDir)
to your project's Linker
-> General
-> Additional Library Directories
;
Add MMKV.lib
to your project's Linker
-> Input
-> Additional Dependencies
;
Add #include <MMKV/MMKV.h>
to your source file and we are done.
note:
MT/MTd
runtime by default. If your project uses MD/MDd
, you should change MMKV's setting to match your project's (C/C++
-> Code Generation
-> Runtime Library
), or vice versa.Platform Toolset
if you use a different version of Visual Studio.For other installation options, see Win32 Setup.
You can use MMKV as you go. All changes are saved immediately, no sync
, no save
calls needed.
Setup MMKV on App startup, say in your main()
, add these lines:
#include <MMKV/MMKV.h>
int main() {
std::wstring rootDir = getYourAppDocumentDir();
MMKV::initializeMMKV(rootDir);
//...
}
MMKV has a global instance, that can be used directly:
auto mmkv = MMKV::defaultMMKV();
mmkv->set(true, "bool");
std::cout << "bool = " << mmkv->getBool("bool") << std::endl;
mmkv->set(1024, "int32");
std::cout << "int32 = " << mmkv->getInt32("int32") << std::endl;
mmkv->set("Hello, MMKV for Win32", "string");
std::string result;
mmkv->getString("string", result);
std::cout << "string = " << result << std::endl;
MMKV also supports Multi-Process Access. Full tutorials can be found here Win32 Tutorial.
Efficient. MMKV uses mmap to keep memory synced with files, and protobuf to encode/decode values, making the most of POSIX to achieve the best performance.
Easy-to-use. You can use MMKV as you go. All changes are saved immediately, no save
, no sync
calls are needed.
Small.
Getting source code from the git repository:
git clone https://github.com/Tencent/MMKV.git
Edit your CMakeLists.txt
, add those lines:
add_subdirectory(mmkv/POSIX/src mmkv)
target_link_libraries(MyApp
mmkv)
Add #include "MMKV.h"
to your source file and we are done.
For other installation options, see POSIX Setup.
You can use MMKV as you go. All changes are saved immediately, no sync
, no save
calls needed.
Setup MMKV on App startup, say in your main()
, add these lines:
#include "MMKV.h"
int main() {
std::string rootDir = getYourAppDocumentDir();
MMKV::initializeMMKV(rootDir);
//...
}
MMKV has a global instance, that can be used directly:
auto mmkv = MMKV::defaultMMKV();
mmkv->set(true, "bool");
std::cout << "bool = " << mmkv->getBool("bool") << std::endl;
mmkv->set(1024, "int32");
std::cout << "int32 = " << mmkv->getInt32("int32") << std::endl;
mmkv->set("Hello, MMKV for Win32", "string");
std::string result;
mmkv->getString("string", result);
std::cout << "string = " << result << std::endl;
MMKV also supports Multi-Process Access. Full tutorials can be found here POSIX Tutorial.
MMKV is published under the BSD 3-Clause license. For details check out the LICENSE.TXT.
Check out the CHANGELOG.md for details of change history.
If you are interested in contributing, check out the CONTRIBUTING.md, also join our Tencent OpenSource Plan.
To give clarity of what is expected of our members, MMKV has adopted the code of conduct defined by the Contributor Covenant, which is widely used. And we think it articulates our values well. For more, check out the Code of Conduct.
Check out the FAQ first. Should there be any questions, don't hesitate to create issues.
User privacy is taken very seriously: MMKV does not obtain, collect or upload any personal information. Please refer to the MMKV SDK Personal Information Protection Rules for details.