Skip to content

Commit a030ce2

Browse files
committed
Release to v1.0.1
1 parent fa77943 commit a030ce2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# LifecycleModel
2-
[ ![Bintray](https://img.shields.io/badge/bintray-v1.0.0-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/lifecyclemodel/1.0.0/link)
2+
[ ![Bintray](https://img.shields.io/badge/bintray-v1.0.1-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/lifecyclemodel/1.0.1/link)
33
[ ![Build Status](https://travis-ci.org/JessYanCoding/LifecycleModel.svg?branch=master) ](https://travis-ci.org/JessYanCoding/LifecycleModel)
44
[ ![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat-square) ](https://developer.android.com/about/versions/android-4.0.html)
55
[ ![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) ](http://www.apache.org/licenses/LICENSE-2.0)
@@ -10,11 +10,11 @@
1010
**LifecycleModel** 基于 Google 在 2017 年 I/O 大会上发布的 Android 架构组件中的 [**ViewModel**](https://developer.android.google.cn/topic/libraries/architecture/viewmodel.html), 可以帮助 Activity 和 Fragment 储存和管理一些与 UI 相关以及他们必需的数据, 避免数据在屏幕旋转或配置更改时发生的数据丢失, 还可以帮助开发者轻松实现 Fragment 与 Fragment 之间, Activity 与 Fragment 之间的通讯以及共享数据, 因为看到 Google 让 MVVM 模式中的 ViewModel 具有了这些功能, 所以我也想让 MVP 模式中的 Presenter, 乃至其他更多的模块都具有这些功能, 所以 **LifecycleModel** 诞生了
1111

1212
## Lifecycle
13-
![lifecycle](art/Lifecyclemodel-lifecycle.jpg)
13+
![lifecycle](https://raw.githubusercontent.com/JessYanCoding/LifecycleModel/master/art/Lifecyclemodel-lifecycle.jpg)
1414

1515
## Download
1616
``` gradle
17-
compile 'me.jessyan:lifecyclemodel:1.0.0'
17+
compile 'me.jessyan:lifecyclemodel:1.0.1'
1818
```
1919

2020
## Usage

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ dependencies {
2626
testImplementation 'junit:junit:4.12'
2727
androidTestImplementation 'com.android.support.test:runner:1.0.1'
2828
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
29-
// compile 'me.jessyan:lifecyclemodel:1.0.0'
29+
// implementation 'me.jessyan:lifecyclemodel:1.0.1'
3030
implementation project(':lifecyclemodel')
3131
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ ext {
3232
targetSdkVersion = 26
3333
compileSdkVersion = 26
3434
buildToolsVersion = "26.0.2"
35-
versionCode = 1
36-
versionName = "1.0.0"
35+
versionCode = 3
36+
versionName = "1.0.1"
3737
}

0 commit comments

Comments
 (0)