Skip to content

Commit

Permalink
1.更新 README.md
Browse files Browse the repository at this point in the history
Former-commit-id: 3cec2f4
  • Loading branch information
afkT committed Sep 12, 2021
1 parent 2d2caa9 commit afebff8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion file/gradle/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ ext {
auto_dispose : "com.uber.autodispose2:autodispose:2.0.0",
auto_dispose_android : "com.uber.autodispose2:autodispose-android:2.0.0",
auto_dispose_lifecycle : "com.uber.autodispose2:autodispose-androidx-lifecycle:2.0.0",
// fastjson https://github.com/alibaba/fastjson
// Fastjson https://github.com/alibaba/fastjson
fastjson : "com.alibaba:fastjson:1.2.76",
fastjson_android : "com.alibaba:fastjson:1.1.72.android",
// Anchors 启动框架 https://github.com/YummyLau/Anchors/blob/master/README-zh.md
Expand Down
4 changes: 2 additions & 2 deletions file/gradle/deps/deps_other_lib.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation deps.lib.auto_dispose_lifecycle
// Gson https://github.com/google/gson
implementation deps.lib.gson
// fastjson https://github.com/alibaba/fastjson
// Fastjson https://github.com/alibaba/fastjson
implementation deps.lib.fastjson
// Glide 图片加载框架 https://github.com/bumptech/glide
implementation deps.lib.glide
Expand All @@ -37,7 +37,7 @@ dependencies {
implementation deps.lib.eventbus
// LiveEventBus 消息总线 https://github.com/JeremyLiao/LiveEventBus
implementation deps.lib.live_eventbus
// 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/readme_cn.md
// 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/README_CN.md
implementation deps.lib.mmkv
// 今日头条屏幕适配方案终极版 https://github.com/JessYanCoding/AndroidAutoSize/blob/master/README-zh.md
implementation deps.lib.autosize
Expand Down
9 changes: 7 additions & 2 deletions lib/DevEngine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ DevEngine(基于 [DevAssist Engine 模块](https://github.com/afkT/DevUtils/bl

可选实现方案:

* 依赖 [基于 mmap 的高性能通用 key-value 组件 MMKV](https://github.com/Tencent/MMKV/blob/master/readme_cn.md)
* 依赖 [基于 mmap 的高性能通用 key-value 组件 MMKV](https://github.com/Tencent/MMKV/blob/master/README_CN.md)
实现 [MMKVKeyValueEngineImpl](https://github.com/afkT/DevUtils/blob/master/lib/DevEngine/src/main/java/dev/engine/keyvalue/engine_mmkv.kt)

* 依赖 [DevApp SharedPreferences 封装](https://github.com/afkT/DevUtils/blob/master/lib/DevApp/src/main/java/dev/utils/app/share)
Expand Down Expand Up @@ -260,7 +260,12 @@ private fun initEngine(appContext: Application) {
// 使用 GSON
DevJSONEngine.setEngine(GsonEngineImpl())
// 使用 Fastjson
DevJSONEngine.setEngine(FastjsonEngineImpl())
DevJSONEngine.setEngine(Key, FastjsonEngineImpl())

// GsonEngineImpl
DevJSONEngine.getEngine()
// FastjsonEngineImpl
DevJSONEngine.getEngine(Key)
}
```

Expand Down
8 changes: 4 additions & 4 deletions lib/DevEngine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ dependencies {
api deps.lib.glide_transformations
// Gson https://github.com/google/gson
api deps.lib.gson
// fastjson https://github.com/alibaba/fastjson
// Fastjson https://github.com/alibaba/fastjson
api deps.lib.fastjson
// 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/readme_cn.md
// 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/README_CN.md
api deps.lib.mmkv
// Android 平台下的图片选择器 https://github.com/LuckSiege/PictureSelector
api deps.lib.pictureSelector
Expand All @@ -46,9 +46,9 @@ dependencies {
// api 'jp.wasabeef:glide-transformations:4.3.0'
// // Gson https://github.com/google/gson
// api 'com.google.code.gson:gson:2.8.7'
// // fastjson https://github.com/alibaba/fastjson
// // Fastjson https://github.com/alibaba/fastjson
// api 'com.alibaba:fastjson:1.2.76'
// // 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/readme_cn.md
// // 基于 mmap 的高性能通用 key-value 组件 https://github.com/Tencent/MMKV/blob/master/README_CN.md
// api 'com.tencent:mmkv-static:1.2.10'
// // Android 平台下的图片选择器 https://github.com/LuckSiege/PictureSelector
// api 'io.github.lucksiege:pictureselector:v2.7.3-rc06'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import kotlin.collections.set
* @author Ttt
* 支持组件化 module 存储、以及默认通用 mmkv 对象
* 基于 mmap 的高性能通用 key-value 组件
* @see https://github.com/Tencent/MMKV/blob/master/readme_cn.md
* @see https://github.com/Tencent/MMKV/blob/master/README_CN.md
* Google 再见 SharedPreferences 拥抱 Jetpack DataStore
* @see https://juejin.im/post/6881442312560803853
* Google 再见 SharedPreferences 拥抱 Jetpack DataStore
Expand Down
2 changes: 1 addition & 1 deletion lib/DevOther/src/main/java/java/dev/other/MMKVUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* 支持组件化 module 存储、以及默认通用 mmkv 对象
* <p></p>
* 基于 mmap 的高性能通用 key-value 组件
* @see <a href="https://github.com/Tencent/MMKV/blob/master/readme_cn.md"/>
* @see <a href="https://github.com/Tencent/MMKV/blob/master/README_CN.md"/>
* [Google] 再见 SharedPreferences 拥抱 Jetpack DataStore
* @see <a href="https://juejin.im/post/6881442312560803853"/>
* [Google] 再见 SharedPreferences 拥抱 Jetpack DataStore ( 二 )
Expand Down
2 changes: 1 addition & 1 deletion lib/DevOther/src/main/java/ktx/dev/other/MMKVUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import kotlin.collections.set
* @author Ttt
* 支持组件化 module 存储、以及默认通用 mmkv 对象
* 基于 mmap 的高性能通用 key-value 组件
* @see https://github.com/Tencent/MMKV/blob/master/readme_cn.md
* @see https://github.com/Tencent/MMKV/blob/master/README_CN.md
* Google 再见 SharedPreferences 拥抱 Jetpack DataStore
* @see https://juejin.im/post/6881442312560803853
* Google 再见 SharedPreferences 拥抱 Jetpack DataStore
Expand Down

0 comments on commit afebff8

Please sign in to comment.