Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.26k stars 1.89k forks source link

update MMKV from 1.0.24 to 1.3.5 find - (size_t)getValueSizeForKey:(NSString *)key method is missing #1358

Closed waitianlou closed 1 month ago

waitianlou commented 1 month ago

It looks like method - (size_t)getValueSizeForKey:(NSString *)key has been replaced by method - (size_t)getValueSizeForKey:(NSString *)key actualSize:(BOOL)actualSize

Can still provide the old style method ?Because a large number of third-party components are use - (size_t)getValueSizeForKey:(NSString *)key in the project,It would be a huge job to upgrade all the third-party components

lingol commented 1 month ago

It's long gone and it's unlikely to bring it back. Luckily for ObjC you can always create a category of existing classes (MMKV) and add whatever methods you like such as the old style getValueSize you prefer.