File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ Download] ( https://api.bintray.com/packages/simsun/maven/tinkerpatch-android-sdk/images/download.svg ) ] ( https://bintray.com/simsun/maven/tinkerpatch-android-sdk/_latestVersion )
4
4
[ ![ Join Slack] ( https://slack.tinkerpatch.com/badge.svg )] ( https://slack.tinkerpatch.com )
5
5
6
- 集成[ AndResGuard] ( https://github.com/shwenzhang/AndResGuard ) 例子,可以直接copy 'andresguard.gradle'到您的项目中 。
6
+ 集成[ AndResGuard] ( https://github.com/shwenzhang/AndResGuard ) 的例子 。
7
7
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 ` 为资源混淆过的安装包。
8
22
9
23
[ 更多集成文档] ( http://tinkerpatch.com/Docs/intro )
You can’t perform that action at this time.
0 commit comments