Skip to content

Commit b2db7e4

Browse files
committed
docs(readme): add how to use in readme
1 parent 22cf41d commit b2db7e4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
[ ![Download](https://api.bintray.com/packages/simsun/maven/tinkerpatch-android-sdk/images/download.svg) ](https://bintray.com/simsun/maven/tinkerpatch-android-sdk/_latestVersion)
44
[![Join Slack](https://slack.tinkerpatch.com/badge.svg)](https://slack.tinkerpatch.com)
55

6-
集成[AndResGuard](https://github.com/shwenzhang/AndResGuard)例子,可以直接copy 'andresguard.gradle'到您的项目中
6+
集成[AndResGuard](https://github.com/shwenzhang/AndResGuard)的例子
77

8+
只需copy`andresguard.gradle`到你的工程中,并在`tinkerpatch.gradle`文件中增加如下代码:
9+
```gradle
10+
/**
11+
* 引入 AndResGuard的相关配置
12+
*/
13+
project.ext {
14+
TP_BAKPATH = bakPath
15+
TP_BASEINFO = baseInfo
16+
TP_VARIANTNAME = variantName
17+
}
18+
apply from: 'andresguard.gradle'
19+
```
20+
21+
如果你开启资源混淆,备份文件夹中会多出`*-resource_mapping.txt``-andresguard.apk`文件。带有后缀`-andresguard`为资源混淆过的安装包。
822

923
[更多集成文档](http://tinkerpatch.com/Docs/intro)

0 commit comments

Comments
 (0)