You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android 生成bundle的hash值似乎和android studio build出来的bundle的hash值不一致, 导致安装的第一次会进行热更新 #103
Activity
JackClown commentedon Feb 29, 2024
记录一下解决过程, 给有需要的同学, react native版本0.73
关于源代码相同情况下code-push-cli生成的bundle与xcode或者android编译生成的bundle不一致
以下code-push-cli特指
@shm-open/code-push-cli--minify falsePodfile中hermes_enabled来判断是否开启hermes,但当前版本的react native已经不是根据这个参数来了,需要手动加上--sourcemap-outputxcode.env内导出环境变量SOURCEMAP_FILE但是xcode编译完后,又会删除sourcemap,而code-push-cli会保留sourcemap并且会上传热更新服务器,这又会触发第一次热更新,调整就是不让code-push-cli上传sourcemap,而且确实没有必要
code-push-cli默认会上传CodePush目录下的所有文件, 因为如果我们要生成sourcemap,就不要把sourcemap放在CodePush下面HairyRabbit commentedon Aug 7, 2024
@JackClown Hi, same issue here, would you help me how to package bundle file ?
JackClown commentedon Oct 18, 2024
@HairyRabbit sorry, mayby it's too late, here is my part of the bundle uploading script
you can ignore the
targetVersionand change thecode-push-cli/bin/cli.jspathHope it helps