Releases: DylanCaiCoding/MMKV-KTX
Releases · DylanCaiCoding/MMKV-KTX
2.0.1
1.2.16
Major Update:
In order to ensure better type safety, some adjustments have been made to the usage:
- The
MMKVOwnerinterface has been renamed asIMMKVOwner. - A new
MMKVOwnerclass has been added with ammapIDconstructor parameter. - The feature of dynamically modifying key names in
LiveDatahas been removed. - Based on MMKV 1.2.16
—
重大更新
为了更好地保证类型安全,用法做了一些调整:
- 将
MMKVOwner接口重名为IMMKVOwner; - 新增
MMKVOwner类,有个mmapID构造参数; - 移除
LiveData动态修改键名的功能; - 基于 MMKV 1.2.16
1.2.15
- Based on MMKV 1.2.15 and Kotlin 1.7.10
- Supports using
val xxx by mmkvXXX().asLiveData()to obtain LiveData, which can observe data changes and directly update UI. - Supports dynamically modifying key using LiveData. #5
- Removed memory cache because it affects the usage of
kv.removeValueForKey(key)andkv.clearAll()and optimization is not significant. #5
—
1.2.14
- Based on the MMKV 1.2.14
- Use property delegates with less code
- Add cache to the value
—
- 基于 MMKV 1.2.14
- 用更少的代码使用属性委托
- 添加缓存
1.2.13
- Based on the MMKV 1.2.13
—
- 基于 MMKV 1.2.13
1.2.12
- Based on the MMKV 1.2.12
—
- 基于 MMKV 1.2.12
1.2.11
- Based on the MMKV 1.2.11
—
- 基于 MMKV 1.2.11
1.2.10
It's easier to use the MMKV without initializing the MMKV and defining the Key value.
- Based on the MMKV 1.2.10