v1.2.1
v1.2.1 / 2020-07-03
This is a hotfix version. Anyone who has upgraded to v1.2.0 should upgrade to this version immediately.
- Fix a potential file corruption bug when writing a file that was created in versions older than v1.2.0. This bug was introduced in v1.2.0.
- Add a preprocess directive
MMKV_DISABLE_CRYPT
to turn off MMKV encryption ability once and for all. If you integrate MMKV by source code, and if you are pretty sure encryption is not needed, you can turn that off to save some binary size. - The parameter
relativePath
(customizing a separate folder for an MMKV instance), has been renamed torootPath
. Making it clear that an absolute path is expected for that parameter.
iOS / macOS
-[MMKV mmkvWithID: relativePath:]
is deprecated. Use-[MMKV mmkvWithID: rootPath:]
instead.- Likewise,
-[MMKV mmkvWithID: cryptKey: relativePath:]
is deprecated. Use-[MMKV mmkvWithID: cryptKey: rootPath:]
instead.