Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

debugcheck/React-Native-DiffPatch

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native增量更新demo

已经修复对比算法,之前的算法google的对比算法是针对字符串进行比较,当realse版本下jsbundle为压缩后的代码,所有代码都在一行,这时对比会产生异常。现在新算法是基于bsdiff,该算法是对文件二进制进行比较,效率和性能都比之前的要好,目前未测出bug。

diffpatch已经封装完成,在objective-c下可以直接使用

注意:使用diffpatch要导入libbz2.tbd

  1. diffmatchpatch修改版(弃用) - diffmatchpatch
  2. mac端增量包生成工具 - AutoDiff
  3. demo - demo
  4. diffpatch封装版 - diffpatch

效果图

增量包生成工具

mac端增量包生成工具免编译版下载地址:http://newfun1994.github.io/react-native-DiffPatch/AutoDiff.zip

热更新可行性验证成功

ToDo

具体解决实现方案

About

react-native 增量更新解决方案以及demo

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Objective-C 85.8%
  • C 13.2%
  • Other 1.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.