Skip to content

Commit

Permalink
Merge pull request alibaba#499 from jokermonn/develop
Browse files Browse the repository at this point in the history
Completing `proguard` rule
  • Loading branch information
zhi1ong authored Sep 19, 2018
2 parents 9bd21e7 + 6fe9622 commit 443c290
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ ARouter.getInstance().build("/test/1")
# 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
# 如果在非 Activity 的类中使用了 @Autowired 注解注入,需添加下面规则,以防注入失败
-keepnames class * {
@com.alibaba.android.arouter.facade.annotation.Autowired <fields>;
}
```

6. 使用 Gradle 插件实现路由表的自动加载
Expand Down

0 comments on commit 443c290

Please sign in to comment.