Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
waitianlou opened this issue Jul 17, 2024 · 1 comment

Comments

@waitianlou
Copy link

waitianlou commented Jul 17, 2024

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
Copy link
Collaborator

lingol commented Jul 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants