[
https://issues.apache.org/jira/browse/WEEX-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580867#comment-16580867
]
ASF GitHub Bot commented on WEEX-566:
-------------------------------------
YorkShen commented on a change in pull request #1437: [WEEX-566][Android] add
jsb version file to make jsb.so can update
URL: https://github.com/apache/incubator-weex/pull/1437#discussion_r210211315
##########
File path:
android/sdk/src/main/java/com/taobao/weex/utils/WXSoInstallMgrSdk.java
##########
@@ -242,6 +261,12 @@ public static void copyStartUpSo() {
} else {
WXEnvironment.extractSo();
}
+ if(!versionFile.exists())
+ versionFile.createNewFile();
+ FileWriter fileWriter = new FileWriter(versionFile);
+ fileWriter.write(String.valueOf(WXEnvironment.CORE_JSB_SO_VERSION));
+ fileWriter.flush();
Review comment:
Add a more try catch finally clause to close the writer as if there is a
exception in line 268, fileWriter would be still open.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> add jsb version file to make jsb can update
> -------------------------------------------
>
> Key: WEEX-566
> URL: https://issues.apache.org/jira/browse/WEEX-566
> Project: Weex
> Issue Type: Improvement
> Components: Android
> Affects Versions: 0.19
> Reporter: Yayun Dong
> Assignee: YorkShen
> Priority: Major
> Fix For: 0.18
>
>
> add jsb version file to make jsb can update
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)