Skip to content

Commit

Permalink
update clean method
Browse files Browse the repository at this point in the history
  • Loading branch information
KunMinX committed Sep 6, 2022
1 parent d76d011 commit 76f6ae2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ MutableResult<Moment> test =
## Maven 依赖

```groovy
implementation 'com.kunminx.arch:unpeek-livedata:7.7.0'
implementation 'com.kunminx.arch:unpeek-livedata:7.8.0'
```

> 温馨提示:
Expand Down Expand Up @@ -162,6 +162,7 @@ https://wj.qq.com/s2/8362688/124a/

| 版本 | 更新日期 |
| ------------------- | ---------- |
| UnPeekLiveData v7.8 | 2022.9.06 |
| UnPeekLiveData v7.6 | 2022.6.13 |
| UnPeekLiveData v7.5 | 2022.6.12 |
| UnPeekLiveData v7.2 | 2021.8.20 |
Expand All @@ -181,6 +182,10 @@ https://wj.qq.com/s2/8362688/124a/

## 最新更新动态

## UnPeekLiveData v7.8 特点

clear 方法改名 clean,以免开发者和集合 clear 方法弄混。

### UnPeekLiveData v7.6 特点

事件 Event 倾向于 "发送" 语境,事件通常来自 UI 层,例如通过 Button click 发起某事件。
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ buildscript {
ext {
appTargetSdk = 32
appMinSdk = 15
appVersionCode = 7070000
appVersionName = "7.7.0"
appVersionCode = 7080000
appVersionName = "7.8.0"
lifecycleVersion = "2.4.1"
navigationVersion = "2.4.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private ObserverWrapper createObserverWrapper(@NonNull Observer<? super T> obser
* 手动将消息从内存中清空,
* 以免无用消息随着 SharedViewModel 长时间驻留而导致内存溢出发生。
*/
public void clear() {
public void clean() {
super.setValue(null);
}

Expand Down

0 comments on commit 76f6ae2

Please sign in to comment.