[ 
https://issues.apache.org/jira/browse/WEEX-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580866#comment-16580866
 ] 

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_r210210901
 
 

 ##########
 File path: 
android/sdk/src/main/java/com/taobao/weex/utils/WXSoInstallMgrSdk.java
 ##########
 @@ -213,8 +217,23 @@ public static void copyStartUpSo() {
         } else {
           newfile = new File(cacheFile + STARTUPSO);
         }
-        if (newfile.exists()) {
-          return;
+
+        String jsbVersionFile = "jsb.version";
+
+        File versionFile = new File(cacheFile,jsbVersionFile);
+        if(newfile.exists() && versionFile.exists()) {
+          try {
+            FileReader fileReader = new FileReader(versionFile);
+            BufferedReader br = new BufferedReader(fileReader);
 
 Review comment:
   Invoke br.close when finishing reading file

----------------------------------------------------------------
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)

Reply via email to