V2.0.0 Release Note
V2.0.0 Release Note: 1 [Feature] Support LocalServer mode. LocalServer means app can use SonicSdk without any Sonic Node.js or PHP Server. 2 [Feature]: Support custom request and response HTTP header. 3 [Feature]: Use HTTP Header (Cache-Control) to manage lifetime of sonic cache. 4 [Feature]: Support other encoding, such as GBK or GB2312. 5 [optimize]: App can manage the file size of Sonic cache. 6 [optimize]: Use Sqlite instead of SP to manage Sonic cache. 7 [optimize]: The Sonic Session Id (_sonic_id) won't be appended to url. 8 [optimize]: Fix the crash and bug reported from Issues.
Bug Fix: 1 [Android-bug] Fix Sonic still send request in FirstLoad mode when server return Cache-Offline: http https://github.com/Tencent/VasSonic/commit/023988dc2a4adc7364c7b75104836765fcc1be15 2 [Android-bug] Fix Website can't receive callback when Cache-Offline is store. https://github.com/Tencent/VasSonic/commit/09e1992759007ce703aa23270d13669df1e82fb6 3 [Android-bug] Fix some NPE Crash in 2.0 alpha version. https://github.com/Tencent/VasSonic/commit/824eee60afa6e28671a6c32a06c1820a6885559f 4 [Android-bug] Fix LocalServer replace template tag with htmlsha1 by mistake https://github.com/Tencent/VasSonic/commit/b264102532245f6204a11dfeb5b1f4ed0867e714 5 [Android-bug]: Fix NPE when server has been closed asynchronous. https://github.com/Tencent/VasSonic/commit/2f708e63532a7d095993c6ac98d1f87f13bead4f 6 [iOS-bug] Fix CachedResonseHeaders cann't be updated in right way https://github.com/Tencent/VasSonic/commit/407b700e260131198d012359ff0f28d8bb711458 7 [iOS-bug] Fix LocalServer can't work when server return 304 response. https://github.com/Tencent/VasSonic/commit/eeca012ec4792d707b68212524b48279a0dfe22d 8 [iOS-bug] : Fix the first load data bridge error https://github.com/Tencent/VasSonic/commit/f72e036b8dc01fd48d80bcc1f38d8bf3bb47bc68
V2.0.0 更新公告: 1.【特性】支持纯终端模式,在该模式下无需前后端配合亦可完成秒开; 2.【特性】支持自定义请求头和自定义响应头; 3.【特性】支持Cache-Control来控制缓存生命周期; 4.【特性】支持非utf-8编码; 5.【优化】支持管理缓存文件占用空间; 6.【优化】使用Sqlite替代SP管理缓存配置信息; 7.【移除】移除在URL中主动添加_sonic_id字段; 8.【优化】修复Issues里的crash跟bug.
bug 修复: 1.【Android-Bug】修复当首次请求,服务器返回容灾字段 Cache-Offline : http时依然走Sonic请求的bug 2.【Android-Bug】修复当服务器返回Cache-Offline : store时,页面偶现无法接收终端回调的bug 3.【Android-Bug】修复alpha发现的空指针问题 4.【Android-Bug】修复LocalServer模式下会错误替换服务器返回的template tag的bug 5.【Android-Bug】修复多线程下偶现的server为空的bug 6.【iOS-Bug】修复 CachedResonseHeaders 无法更新的bug 7.【iOS-Bug】修复 http 304状态下无法使用LocalServer的bug 8.【iOS-Bug】修复首次回调给前端页面错误数据的bug