atlas icon indicating copy to clipboard operation
atlas copied to clipboard

[demo]:远程bundle无效

Open peterforme opened this issue 7 years ago • 2 comments

版本:windows

我先运行项目,build生成了一个apk并且安装到手机上,此时加载remote bundle显示的是this is remote bundle activity

然后修改remote bundle把界面上的文字改成pppmodify this is remote bundle activity pppmodify ,再次执行gradlew clean assembleDebug publish,然后找到libcom_taobao_remotebunle.so,使用adb push命令成功push到/sdcard/Android/data/com.taobao.demo/cache

此时我再打开app,然后点击加载远程bundle,但是发现显示文字还是this is remote bundle activity而非修改后的,这是为什么呢

peterforme avatar Dec 27 '17 06:12 peterforme

远程bundle的更新也是走 动态部署的逻辑。 需要生成tpatch以及updateinfo这些东西。 你这样这样直接替换无效的,atlas内部有信息标示的。

hwjump avatar Dec 27 '17 08:12 hwjump

@hwjump 那能否更新一下文档说明一下完整的远程bundle是怎么用的 目前文档很容易让人误解啊

peterforme avatar Dec 28 '17 02:12 peterforme