Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问能实现jspatch类似的热更功能吗,有没有完整的API #17

Open
jaccty opened this issue Jun 4, 2018 · 1 comment
Open

Comments

@jaccty
Copy link

jaccty commented Jun 4, 2018

请问能实现jspatch类似的热更功能吗,有没有完整的API?

@vimfung
Copy link
Owner

vimfung commented Jun 4, 2018

LSC可以实现热更新,但是需要你自己做以下的工作:
1、准备热更的服务器,从服务端下载热更的Lua脚本,覆盖应用本地的lua脚本。
2、Lua层能调用的原生操作需要自己考虑暴露哪些(JSPatch基本通过反射实现,LSC中必须指定导出接口,当然你也可以使用LSC模拟反射接口)

基本思路就是服务端下载lua脚本覆盖本地lua,LSC没有提供完整的热更方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants