Skip to content

Commit

Permalink
Update to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
YoKeyword committed Jul 5, 2017
1 parent 6191af5 commit f99044a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ The first demo shows the basic usage of the library. The second one shows the wa
**1、build.gradle**
````gradle
// appcompat-v7 is required
compile 'me.yokeyword:fragmentation:1.0.4'
compile 'me.yokeyword:fragmentation: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
// compile 'me.yokeyword:fragmentation-core:1.0.4'
// compile 'me.yokeyword:fragmentation-core:1.0.5'
// To get SwipeBack feature, rely on both fragmentation & fragmentation-swipeback
compile 'me.yokeyword:fragmentation:1.0.4'
compile 'me.yokeyword:fragmentation:1.0.5'
// Swipeback is based on fragmentation. Refer to SwipeBackActivity/Fragment for your Customized SupportActivity/Fragment
compile 'me.yokeyword:fragmentation-swipeback:1.0.4'
compile 'me.yokeyword:fragmentation-swipeback:1.0.5'
````

**2、 Activity extends SupportActivity**
Expand Down Expand Up @@ -96,6 +96,9 @@ public class HomeFragment extends SupportFragment {
## [WIKI](https://github.com/YoKeyword/Fragmentation/wiki) , [CHANGELOG](https://github.com/YoKeyword/Fragmentation/blob/master/CHANGELOG.md)

## Proguard

Pre-v1.0.5, need to add the proguard-rules:

````xml
-keep class * extends android.support.v4.app.FragmentManager{ *; }
````
Expand Down
11 changes: 7 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ A powerful library that manage Fragment for Android!
**1. 项目下app的build.gradle中依赖:**
````gradle
// appcompat-v7包是必须的
compile 'me.yokeyword:fragmentation:1.0.4'
compile 'me.yokeyword:fragmentation:1.0.5'
// 如果不想继承SupportActivity/Fragment,自己定制Support,可仅依赖:
// compile 'me.yokeyword:fragmentation-core:1.0.4'
// compile 'me.yokeyword:fragmentation-core:1.0.5'
// 如果想使用SwipeBack 滑动边缘退出Fragment/Activity功能,完整的添加规则如下:
compile 'me.yokeyword:fragmentation:1.0.4'
compile 'me.yokeyword:fragmentation:1.0.5'
// swipeback基于fragmentation, 如果是自定制SupportActivity/Fragment,则参照SwipeBackActivity/Fragment实现即可
compile 'me.yokeyword:fragmentation-swipeback:1.0.4'
compile 'me.yokeyword:fragmentation-swipeback:1.0.5'
````

**2. Activity继承SupportActivity:**
Expand Down Expand Up @@ -102,6 +102,9 @@ public class HomeFragment extends SupportFragment {


## 混淆规则

v1.0.4及以下,需要添加混淆规则,v1.0.4+ 可不添加

````xml
-keep class * extends android.support.v4.app.FragmentManager{ *; }
````
Expand Down
4 changes: 2 additions & 2 deletions fragmentation_swipeback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Activity内Fragment数大于1时,滑动返回的是Fragment,否则滑动返
1、项目下app的build.gradle中依赖:
````gradle
// appcompat v7包是必须的
compile 'me.yokeyword:fragmentation:1.0.4'
compile 'me.yokeyword:fragmentation-swipeback:1.0.4'
compile 'me.yokeyword:fragmentation:1.0.5'
compile 'me.yokeyword:fragmentation-swipeback:1.0.5'
````
2、如果Activity也需要支持SwipeBack,则继承SwipeBackActivity:
````java
Expand Down

0 comments on commit f99044a

Please sign in to comment.