shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

po主,和Tinker怎么配合?? #113

Closed vihuela closed 7 years ago

vihuela commented 7 years ago

tinker执行是设置oldApk,oldApk的R文件,然后命令行生产差异文件, 怎么指定生成差异文件是经过resguard的。。。。就是这个问题

simpleton commented 7 years ago

可以指定mappingFile为oldApk生成的resource_mapping,这个文件会生成在和混淆apk相同的目录下。

On Wed, Nov 16, 2016 at 5:26 PM, lyao notifications@github.com wrote:

tinker执行是设置oldApk,oldApk的R文件,然后命令行生产差异文件, 怎么指定生成差异文件是经过resguard的。。。。就是这个问题

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/113, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYqyOILU5jknYna2pBTaOjq_PWqCGks5q-sxcgaJpZM4KzmJt .

vihuela commented 7 years ago

抱歉,这周才有继续研究 明白po主的意思,这里我实践有一个疑问: v1.0apk gradlew resguardRelease执行的apk、mapping假设为A、B gradlew tinkerPatchRelease执行的apk、mapping、r文件假设为A1、B1,C1

v2.0apk gradlew resguardRelease执行的apk、mapping假设为A+、B+ gradlew tinkerPatchRelease执行的apk、mapping、r文件假设为A1+、B1+,C1+

我现在是在v2.0环境下生成与v1.0差异包:oldApk为A,oldMapping为B,oldR为C1, 前后好像不一致。po主意思是,仅仅把oldMapping修改为resguard之后的mapping就行了么??

感觉生成补丁还是单独的工具比较方便。

simpleton commented 7 years ago

ref https://github.com/Tencent/tinker/issues/63

ref Use AndResGuard In TinKer

Tinker的相关issue里有讨论,可以参照上面2个连接。 PS: 不太理解你的不一致是哪里不一致呢?