Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.1k stars 3.33k forks source link

命令行怎么配置mapping文件和R.txt文件,我对照这gradle配置,所有节点添加都没有效果 #1697

Closed ingxin closed 1 year ago

ingxin commented 1 year ago
xxx...... 其他节点也试了,没有效果 命令行输出我看到,useApplyResource:false,但也没有打开的地方 -----------------------Tinker patch begin----------------------- configuration: oldApk:C:\Users\ingxin\Desktop\sdk_patch_demo\.\old.apk newApk:C:\Users\ingxin\Desktop\sdk_patch_demo\.\new.apk outputFolder:C:\Users\ingxin\Desktop\sdk_patch_demo\output isIgnoreWarning:false isAllowLoaderClassInAnyDex:true isRemoveLoaderForAllDex:true isProtectedApp:false 7-ZipPath:7za useSignAPk:true package meta fields: filed name:patchMessage, filed value:classes.dex filed name:platform, filed value:all dex configs: dexMode: jar dexPattern:assets/secondary-dex-.\.jar dexPattern:classes.*\.dex dex loader:com.sobey.smf.hotfix.internal.core.HotfixApplication dex loader:com.tencent.tinker.loader.* lib configs: libPattern:lib/.*/.*\.so resource configs: resPattern:AndroidManifest\.xml resPattern:assets/.* resPattern:res/.* resPattern:resources\.arsc resIgnore change:assets/sample_meta\.txt largeModSize:100kb useApplyResource:false ArkHot: arkHot / patch.apk
ingxin commented 1 year ago

解决了,命令行没有这个功能,需要自己在打包时处理R.txt逻辑, 可以使用aapt2 stable-ids –emit-ids 功能,进行id固定。