Skip to content

Commit

Permalink
Update to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
JantHsueh committed Mar 6, 2020
1 parent a61c6f4 commit d07c0ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,22 @@ The first demo shows the basic usage of the library. The second one shows the wa
<img src="/gif/stack.png" width="150px"/> <img src="/gif/log.png" width="300px"/>       <img src="/gif/SwipeBack.png" width="150px"/>

## How do I use Fragmentation?

## [文档](https://github.com/JantHsueh/Fragmentation/wiki)

### Note: This is the use of androidx, if you are using the android.support, [click here `branch:master`](https://github.com/JantHsueh/Fragmentation/blob/master/README.md)
**1、build.gradle**
````gradle
// This is the use of androidx, if you are using the android.support: fragmentationx -> fragmentation
implementation 'me.xuexuan:fragmentationx:1.0.4'
implementation 'me.xuexuan:fragmentationx:1.0.5'
// If you don't want to extends SupportActivity/Fragment and would like to customize your own support, just rely on fragmentation-core
// implementation 'me.xuexuan:fragmentationx-core:1.0.4'
// implementation 'me.xuexuan:fragmentationx-core:1.0.5'
// To get SwipeBack feature, rely on both fragmentation & fragmentation-swipeback
implementation 'me.xuexuan:fragmentationx:1.0.4'
implementation 'me.xuexuan:fragmentationx:1.0.5'
// Swipeback is based on fragmentation. Refer to SwipeBackActivity/Fragment for your Customized SupportActivity/Fragment
implementation 'me.xuexuan:fragmentationx-swipeback:1.0.4'
implementation 'me.xuexuan:fragmentationx-swipeback:1.0.5'
// To simplify the communication between Fragments.
implementation 'me.yokeyword:eventbus-activity-scope:1.1.0'
Expand Down Expand Up @@ -99,7 +102,6 @@ public class HomeFragment extends SupportFragment {
}
````

## [WIKI](https://github.com/JantHsueh/Fragmentation/wiki) , [CHANGELOG](https://github.com/JantHsueh/Fragmentation/blob/master/CHANGELOG.md)

## LICENSE
````
Expand Down
12 changes: 7 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,23 @@ A powerful library that manage Fragment for Android!
<img src="/gif/stack.png" width="150px"/> <img src="/gif/log.png" width="300px"/>     <img src="/gif/SwipeBack.png" width="150px"/>

# 如何使用

## [文档](https://github.com/JantHsueh/Fragmentation/wiki)

### 注意:以下为androidx的使用方式,如果使用的是android.support包,[点击这里`master`分支](https://github.com/JantHsueh/Fragmentation/blob/master/README_CN.md)
**1. 项目下app的build.gradle中依赖:**

````gradle
// 以下为androidx的使用方式,如果使用的是android.support包,fragmentationx -> fragmentation 即可
implementation 'me.xuexuan:fragmentationx:1.0.3'
implementation 'me.xuexuan:fragmentationx:1.0.5'
// 如果不想继承SupportActivity/Fragment,自己定制Support,可仅依赖:
// implementation 'me.xuexuan:fragmentationx-core:1.0.3'
// implementation 'me.xuexuan:fragmentationx-core:1.0.5'
// 如果想使用SwipeBack 滑动边缘退出Fragment/Activity功能,完整的添加规则如下:
implementation 'me.xuexuan:fragmentationx:1.0.3'
implementation 'me.xuexuan:fragmentationx:1.0.5'
// swipeback基于fragmentation, 如果是自定制SupportActivity/Fragment,则参照SwipeBackActivity/Fragment实现即可
implementation 'me.xuexuan:fragmentationx-swipeback:1.0.3'
implementation 'me.xuexuan:fragmentationx-swipeback:1.0.5'
// Activity作用域的EventBus,通信更安全
implementation 'me.yokeyword:eventbus-activity-scope:1.1.0'
Expand Down Expand Up @@ -105,7 +108,6 @@ public class HomeFragment extends SupportFragment {
}
````

## [进一步使用、ChangeLog,查看wiki](https://github.com/JantHsueh/Fragmentation/wiki)

## LICENSE
````
Expand Down

0 comments on commit d07c0ed

Please sign in to comment.