[GitHub] incubator-weex issue #1089: [WXTransition] add updateLayout function

2018-03-27 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1089
  






  

  
  Messages

  
  
  :book:
  has no jsfm file changed.

  

  :book:
  jsfm test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/;>dangerJS




---


[GitHub] incubator-weex pull request #1089: [WXTransition] add updateLayout function

2018-03-27 Thread Rowandjj
GitHub user Rowandjj opened a pull request:

https://github.com/apache/incubator-weex/pull/1089

[WXTransition] add updateLayout function

1. add update layout function.
2. fix css transition

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Rowandjj/incubator-weex 
android-feature-bindingx

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1089.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1089


commit 647d12a529f64e3bccee92d32cbecf427ef4e823
Author: Rowandjj 
Date:   2018-03-27T08:56:55Z

[WXTransition] add updateLayout function

commit c82634b159232f2a71c767474644633fa4e31946
Author: Rowandjj 
Date:   2018-03-27T12:10:23Z

[WXTransition] fix css transition problem




---


[02/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/pre-build/weex-main-jsfm.js
--
diff --git a/pre-build/weex-main-jsfm.js b/pre-build/weex-main-jsfm.js
new file mode 100644
index 000..060db85
--- /dev/null
+++ b/pre-build/weex-main-jsfm.js
@@ -0,0 +1,2 @@
+(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.24.5, 
Build 2018-02-26 19:31. (Vue: 2.5.11-weex.1, Rax: 0.4.20)");var 
global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof
 exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&__esModule&(e,"default")?e.default:e}function
 i(e,t){return 
e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof
 t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,r=function(e){var 
t,r=(t=Number(e),isNaN(t)?0:0!==t&(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t);return
 Math.min(Math.max(r,0),n)},function(e){var n=Object(e);if(null==e)throw new 
TypeError("Array.from requires an array-like object - not null or 
undefined");var o,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!
 t(i))throw new TypeError("Array.from: when provided, the second argument must 
be a function");arguments.length>2&&(o=arguments[2])}for(var 
a,s=r(n.length),c=t(this)?Object(new this(s)):new 
Array(s),u=0;u0?R:D)(e)},L=Math.min,J=function(e){return 
e>0?L(V(e),9007199254740991):0},U=Math.max,q=Math.min,B="__core-js_shared__",z=a[B]||(a[B]={}),W=function(e){return
 z[e]||(z[e]={})},H=W("keys"),X=function(e){return 
H[e]||(H[e]=C(e))},G=($=!1,function(e,t,n){var 

[GitHub] incubator-weex pull request #1088: * [WEEX-240] [android] feature update for...

2018-03-27 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-weex/pull/1088


---


[01/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
Repository: incubator-weex
Updated Branches:
  refs/heads/master aad360553 -> 45ec92c81


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/pre-build/weex-rax-api.js
--
diff --git a/pre-build/weex-rax-api.js b/pre-build/weex-rax-api.js
new file mode 100644
index 000..1f2be3f
--- /dev/null
+++ b/pre-build/weex-rax-api.js
@@ -0,0 +1,2 @@
+var global=this,process={env:{}};!function(e,t){"object"==typeof 
exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n=(function(e){e.exports=function(e){var t={};function n(r){if(t[r])return 
t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var
 t=e&__esModule?function(){return e.default}:function(){return e};return 
n.d(t,"a",t),t},n.o=function(e,t){return 
Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var
 r=e.exports.createUniqueKey="undefined"!=typeof 
Symbol?Symbol:function(e){return"[["+e+"_"+Math.random().toFixed(8).slice(2)+"]]"},o=e.exports.isObject=function(e){return"object"==typeof
 
e&!==e};e.exports.LISTENERS=r("listeners"),e.exports.CAPTURE=1,e.exports.BUBBLE=2,e.exports.ATTRIBUTE
 =3,e.exports.newNode=function(e,t,n){var 
r=o(n);return{listener:e,kind:t,once:r&(n.once),passive:r&(n.passive),next:null}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var
 r=function(){function e(e,t){for(var n=0;n0){for(var 
n=Array(arguments.length),r=0;r

[07/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/assets/main.js
--
diff --git a/android/sdk/assets/main.js b/android/sdk/assets/main.js
new file mode 100644
index 000..fa6fdde
--- /dev/null
+++ b/android/sdk/assets/main.js
@@ -0,0 +1,2 @@
+(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.24.4, 
Build 2018-02-07 17:13. (Vue: 2.5.13-weex.5, Rax: 0.4.20)");var 
global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof
 exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&__esModule&(e,"default")?e.default:e}function
 i(e,t){return 
e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof
 t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,r=function(e){var 
t,r=(t=Number(e),isNaN(t)?0:0!==t&(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t);return
 Math.min(Math.max(r,0),n)},function(e){var n=Object(e);if(null==e)throw new 
TypeError("Array.from requires an array-like object - not null or 
undefined");var o,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!
 t(i))throw new TypeError("Array.from: when provided, the second argument must 
be a function");arguments.length>2&&(o=arguments[2])}for(var 
a,s=r(n.length),u=t(this)?Object(new this(s)):new 
Array(s),c=0;c0?F:D)(e)},V=Math.min,W=function(e){return 
e>0?V(L(e),9007199254740991):0},U=Math.max,B=Math.min,q="__core-js_shared__",J=a[q]||(a[q]={}),z=function(e){return
 J[e]||(J[e]={})},H=z("keys"),G=function(e){return 
H[e]||(H[e]=k(e))},X=(I=!1,function(e,t,n){var 

[05/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/assets/weex-rax-api.js
--
diff --git a/android/sdk/assets/weex-rax-api.js 
b/android/sdk/assets/weex-rax-api.js
new file mode 100644
index 000..1f2be3f
--- /dev/null
+++ b/android/sdk/assets/weex-rax-api.js
@@ -0,0 +1,2 @@
+var global=this,process={env:{}};!function(e,t){"object"==typeof 
exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n=(function(e){e.exports=function(e){var t={};function n(r){if(t[r])return 
t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var
 t=e&__esModule?function(){return e.default}:function(){return e};return 
n.d(t,"a",t),t},n.o=function(e,t){return 
Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var
 r=e.exports.createUniqueKey="undefined"!=typeof 
Symbol?Symbol:function(e){return"[["+e+"_"+Math.random().toFixed(8).slice(2)+"]]"},o=e.exports.isObject=function(e){return"object"==typeof
 
e&!==e};e.exports.LISTENERS=r("listeners"),e.exports.CAPTURE=1,e.exports.BUBBLE=2,e.exports.ATTRIBUTE
 =3,e.exports.newNode=function(e,t,n){var 
r=o(n);return{listener:e,kind:t,once:r&(n.once),passive:r&(n.passive),next:null}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var
 r=function(){function e(e,t){for(var n=0;n0){for(var 
n=Array(arguments.length),r=0;r

[06/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/assets/weex-main-jsfm.js
--
diff --git a/android/sdk/assets/weex-main-jsfm.js 
b/android/sdk/assets/weex-main-jsfm.js
new file mode 100644
index 000..060db85
--- /dev/null
+++ b/android/sdk/assets/weex-main-jsfm.js
@@ -0,0 +1,2 @@
+(this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.24.5, 
Build 2018-02-26 19:31. (Vue: 2.5.11-weex.1, Rax: 0.4.20)");var 
global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof
 exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&__esModule&(e,"default")?e.default:e}function
 i(e,t){return 
e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof
 t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,r=function(e){var 
t,r=(t=Number(e),isNaN(t)?0:0!==t&(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t);return
 Math.min(Math.max(r,0),n)},function(e){var n=Object(e);if(null==e)throw new 
TypeError("Array.from requires an array-like object - not null or 
undefined");var o,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!
 t(i))throw new TypeError("Array.from: when provided, the second argument must 
be a function");arguments.length>2&&(o=arguments[2])}for(var 
a,s=r(n.length),c=t(this)?Object(new this(s)):new 
Array(s),u=0;u0?R:D)(e)},L=Math.min,J=function(e){return 
e>0?L(V(e),9007199254740991):0},U=Math.max,q=Math.min,B="__core-js_shared__",z=a[B]||(a[B]={}),W=function(e){return
 z[e]||(z[e]={})},H=W("keys"),X=function(e){return 
H[e]||(H[e]=C(e))},G=($=!1,function(e,t,n){var 

[10/11] incubator-weex git commit: * [android] when debug server connect use global context

2018-03-27 Thread toretto
 * [android] when debug server connect use global context


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e3d67594
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e3d67594
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e3d67594

Branch: refs/heads/master
Commit: e3d67594bc40735c24981effe4f532bb7b774203
Parents: fc8028c
Author: yuhun-alibaba 
Authored: Tue Mar 20 20:45:10 2018 +0800
Committer: yuhun-alibaba 
Committed: Tue Mar 27 16:00:32 2018 +0800

--
 .../main/java/com/taobao/weex/bridge/WXBridgeManager.java | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e3d67594/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java 
b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
index cb3bdcd..aed1c53 100644
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
@@ -228,7 +228,7 @@ public class WXBridgeManager implements Callback, 
BactchExecutor {
 setJSFrameworkInit(false);
 WXModuleManager.resetAllModuleState();
 String jsf = "";
-if (!isSandBoxContext) {
+if (!isSandBoxContext || WXEnvironment.sDebugServerConnectable) {
   jsf = WXFileUtils.loadAsset("main.js", 
WXEnvironment.getApplication());
 } else {
   jsf = WXFileUtils.loadAsset("weex-main-jsfm.js", 
WXEnvironment.getApplication());
@@ -244,7 +244,7 @@ public class WXBridgeManager implements Callback, 
BactchExecutor {
 setJSFrameworkInit(false);
 WXModuleManager.resetAllModuleState();
 String jsf = "";
-if (!isSandBoxContext) {
+if (!isSandBoxContext || WXEnvironment.sDebugServerConnectable) {
   jsf = WXFileUtils.loadAsset("main.js", 
WXEnvironment.getApplication());
 } else {
   jsf = WXFileUtils.loadAsset("weex-main-jsfm.js", 
WXEnvironment.getApplication());
@@ -1741,7 +1741,7 @@ public class WXBridgeManager implements Callback, 
BactchExecutor {
 instance.setTemplate(template);
 // if { "framework": "Vue" } or  { "framework": "Rax" } will use 
invokeCreateInstanceContext
 // others will use invokeExecJS
-if (!isSandBoxContext) {
+if (!isSandBoxContext || WXEnvironment.sDebugServerConnectable) {
   invokeExecJS(instance.getInstanceId(), null, METHOD_CREATE_INSTANCE, 
args, false);
   return;
 }
@@ -1765,7 +1765,7 @@ public class WXBridgeManager implements Callback, 
BactchExecutor {
   }
 
   public WXJSObject optionObjConvert(boolean useSandBox, BundType type, 
WXJSObject opt) {
-if (!useSandBox || type == BundType.Others) {
+if (!useSandBox || type == BundType.Others || 
WXEnvironment.sDebugServerConnectable) {
   return opt;
 }
 try {
@@ -2059,7 +2059,7 @@ public void invokeDestoryInstance(String instanceId, 
String namespace, String fu
 // if (WXEnvironment.isApkDebugable()) {
 WXLogUtils.d("weex JS framework from assets");
 // }
-if (!isSandBoxContext) {
+if (!isSandBoxContext || WXEnvironment.sDebugServerConnectable) {
   framework = WXFileUtils.loadAsset("main.js", 
WXEnvironment.getApplication());
 } else {
   framework = WXFileUtils.loadAsset("weex-main-jsfm.js", 
WXEnvironment.getApplication());



[08/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
  * [WEEX-240] [android] feature update for weexsandbox and size off so
 1. every page will has a runtime context independent of other page
 2. At the beginning of js, will use // {"framework" : "Rax"} or // 
{"framework" : "Vue"} to distinguish type
 3. if page type is neither Rax nor Vue, will use global context runtime
 4. delete some usless code and opt build tools, trim so


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/640c53f1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/640c53f1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/640c53f1

Branch: refs/heads/master
Commit: 640c53f13260e0ae5b96ecbf01e7eb2f64d049c8
Parents: aad3605
Author: yuhun-alibaba 
Authored: Wed Mar 14 21:14:05 2018 +0800
Committer: yuhun-alibaba 
Committed: Tue Mar 27 15:55:55 2018 +0800

--
 android/sdk/assets/main.js  |   2 +
 android/sdk/assets/weex-main-jsfm.js|   2 +
 android/sdk/assets/weex-rax-api.js  |   2 +
 android/sdk/build.gradle|  13 +
 android/sdk/libs/armeabi/libweexjsb.so  | Bin
 android/sdk/libs/armeabi/libweexjsc.so  | Bin 275960 -> 276000 bytes
 android/sdk/libs/armeabi/libweexjss.so  | Bin 2965392 -> 2965560 bytes
 android/sdk/libs/armeabi/libweexjst.so  | Bin 22552 -> 22552 bytes
 android/sdk/libs/x86/libweexjsc.so  | Bin 649940 -> 66 bytes
 android/sdk/libs/x86/libweexjss.so  | Bin 10942128 -> 8373712 bytes
 .../java/com/taobao/weex/WXEnvironment.java |   3 +
 .../main/java/com/taobao/weex/WXSDKEngine.java  |  17 +-
 .../java/com/taobao/weex/WXSDKInstance.java |   7 +
 .../taobao/weex/bridge/ModuleFactoryImpl.java   |  38 +++
 .../java/com/taobao/weex/bridge/WXBridge.java   |  28 ++
 .../com/taobao/weex/bridge/WXBridgeManager.java | 315 ++-
 .../com/taobao/weex/bridge/WXModuleManager.java | 124 ++--
 .../java/com/taobao/weex/common/IWXBridge.java  |  29 ++
 .../java/com/taobao/weex/common/WXConfig.java   |   1 +
 pre-build/native-bundle-main.js |   1 +
 pre-build/weex-main-jsfm.js |   2 +
 pre-build/weex-rax-api.js   |   2 +
 22 files changed, 543 insertions(+), 43 deletions(-)
--




[09/11] incubator-weex git commit: * [android] fix java.util.ConcurrentModificationException

2018-03-27 Thread toretto
 * [android] fix java.util.ConcurrentModificationException


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/fc8028c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/fc8028c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/fc8028c1

Branch: refs/heads/master
Commit: fc8028c1ff29c3f5bcedd48a53fbc249325f0fb8
Parents: 640c53f
Author: wentao.swt 
Authored: Mon Mar 19 19:17:23 2018 +0800
Committer: yuhun-alibaba 
Committed: Tue Mar 27 15:59:55 2018 +0800

--
 .../com/taobao/weex/bridge/WXBridgeManager.java| 17 -
 .../com/taobao/weex/bridge/WXModuleManager.java|  3 ++-
 2 files changed, 10 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fc8028c1/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java 
b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
index f45150f..cb3bdcd 100644
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
@@ -2107,28 +2107,27 @@ public void invokeDestoryInstance(String instanceId, 
String namespace, String fu
   execRegisterFailTask();
   WXEnvironment.JsFrameworkInit = true;
   registerDomModule();
-  WXModuleManager.reload();
   String reinitInfo = "";
   if (reInitCount > 1) {
 reinitInfo = "reinit Framework:";
-WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_JS_FRAMEWORK_REINIT_SUCCESS,
-"initFramework", reinitInfo + "success", null);
+// WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_JS_FRAMEWORK_REINIT_SUCCESS,
+//   "initFramework", reinitInfo + "success", null);
   } else {
-//WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_JS_FRAMEWORK_INIT_SUCCESS.getErrorCode(),
-//"initFramework", reinitInfo + "success", null);
+// WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_JS_FRAMEWORK_INIT_SUCCESS.getErrorCode(),
+//"initFramework", reinitInfo + "success", null);
   }
 
 } else {
   if (reInitCount > 1) {
 WXLogUtils.e("[WXBridgeManager] invokeReInitFramework  
ExecuteJavaScript fail");
 String err = "[WXBridgeManager] invokeReInitFramework  
ExecuteJavaScript fail reinit FrameWork";
-   WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_ERR_JS_REINIT_FRAMEWORK,
-   "initFramework", "reInitCount = " + 
reInitCount + err, null);
+   // WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_ERR_JS_REINIT_FRAMEWORK,
+   //  "initFramework", "reInitCount = " + 
reInitCount + err, null);
   } else {
 WXLogUtils.e("[WXBridgeManager] invokeInitFramework  
ExecuteJavaScript fail");
 String err = "[WXBridgeManager] invokeInitFramework  
ExecuteJavaScript fail";
-   WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_ERR_JS_FRAMEWORK,
-   "initFramework", err, null);
+   // WXExceptionUtils.commitCriticalExceptionRT(null, 
WXErrorCode.WX_ERR_JS_FRAMEWORK,
+   //  "initFramework", err, null);
   }
 }
   } catch (Throwable e) {

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fc8028c1/android/sdk/src/main/java/com/taobao/weex/bridge/WXModuleManager.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/bridge/WXModuleManager.java 
b/android/sdk/src/main/java/com/taobao/weex/bridge/WXModuleManager.java
index 5a8bb89..6bc4af4 100644
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXModuleManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXModuleManager.java
@@ -45,6 +45,7 @@ import java.util.Iterator;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
 
 /**
  * Manager class for weex module. There are two types of modules in weex, one 
is instance-level module,
@@ -56,7 +57,7 @@ public class WXModuleManager {
   /**
* module class object dictionary
*/
-  private static volatile Map sModuleFactoryMap = 

[11/11] incubator-weex git commit: * [android] fix atob and btoa bug

2018-03-27 Thread toretto
* [android] fix atob and btoa bug


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/45ec92c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/45ec92c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/45ec92c8

Branch: refs/heads/master
Commit: 45ec92c81990ca5f3cb5bdc96d1ffd53bb2af86f
Parents: e3d6759
Author: wentao.swt 
Authored: Thu Mar 22 15:42:13 2018 +0800
Committer: yuhun-alibaba 
Committed: Tue Mar 27 16:01:32 2018 +0800

--
 android/sdk/libs/armeabi/libweexjss.so | Bin 2965560 -> 2965560 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/45ec92c8/android/sdk/libs/armeabi/libweexjss.so
--
diff --git a/android/sdk/libs/armeabi/libweexjss.so 
b/android/sdk/libs/armeabi/libweexjss.so
index 51bbd4d..94d4478 100755
Binary files a/android/sdk/libs/armeabi/libweexjss.so and 
b/android/sdk/libs/armeabi/libweexjss.so differ



[03/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/pre-build/native-bundle-main.js
--
diff --git a/pre-build/native-bundle-main.js b/pre-build/native-bundle-main.js
index afb172d..fa6fdde 100644
--- a/pre-build/native-bundle-main.js
+++ b/pre-build/native-bundle-main.js
@@ -1 +1,2 @@
 (this.nativeLog||function(e){console.log(e)})("START JS FRAMEWORK 0.24.4, 
Build 2018-02-07 17:13. (Vue: 2.5.13-weex.5, Rax: 0.4.20)");var 
global=this,process={env:{}},setTimeout=global.setTimeout;!function(e,t){"object"==typeof
 exports&&"undefined"!=typeof module?t():"function"==typeof 
define&?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&__esModule&(e,"default")?e.default:e}function
 i(e,t){return 
e(t={exports:{}},t.exports),t.exports}Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof
 t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,r=function(e){var 
t,r=(t=Number(e),isNaN(t)?0:0!==t&(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t);return
 Math.min(Math.max(r,0),n)},function(e){var n=Object(e);if(null==e)throw new 
TypeError("Array.from requires an array-like object - not null or 
undefined");var o,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!
 t(i))throw new TypeError("Array.from: when provided, the second argument must 
be a function");arguments.length>2&&(o=arguments[2])}for(var 
a,s=r(n.length),u=t(this)?Object(new this(s)):new 
Array(s),c=0;c0?F:D)(e)},V=Math.min,W=function(e){return 
e>0?V(L(e),9007199254740991):0},U=Math.max,B=Math.min,q="__core-js_shared__",J=a[q]||(a[q]={}),z=function(e){return
 J[e]||(J[e]={})},H=z("keys"),G=function(e){return 
H[e]||(H[e]=k(e))},X=(I=!1,function(e,t,n){var 

[04/11] incubator-weex git commit: * [WEEX-240] [android] feature update for weexsandbox and size off so 1. every page will has a runtime context independent of other page 2. At the beginning of js, w

2018-03-27 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/build.gradle
--
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 728e1c6..ecb40c2 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -60,6 +60,19 @@ android {
 def jsfmVersion = m[0][1]
 println jsfmVersion
 
+copy {
+from '../../pre-build'
+into new File(projectDir,"assets")
+include 'weex-main-jsfm.js'
+rename('weex-main-jsfm.js','weex-main-jsfm.js')
+}
+
+copy {
+from '../../pre-build'
+into new File(projectDir,"assets")
+include 'weex-rax-api.js'
+}
+
 if(project.hasProperty('asfRelease')){
 //download so file if not exist, when compile in source release
 download{

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/armeabi/libweexjsb.so
--
diff --git a/android/sdk/libs/armeabi/libweexjsb.so 
b/android/sdk/libs/armeabi/libweexjsb.so
old mode 100644
new mode 100755

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/armeabi/libweexjsc.so
--
diff --git a/android/sdk/libs/armeabi/libweexjsc.so 
b/android/sdk/libs/armeabi/libweexjsc.so
old mode 100644
new mode 100755
index 3c386f1..f45aee4
Binary files a/android/sdk/libs/armeabi/libweexjsc.so and 
b/android/sdk/libs/armeabi/libweexjsc.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/armeabi/libweexjss.so
--
diff --git a/android/sdk/libs/armeabi/libweexjss.so 
b/android/sdk/libs/armeabi/libweexjss.so
old mode 100644
new mode 100755
index bdedcc5..51bbd4d
Binary files a/android/sdk/libs/armeabi/libweexjss.so and 
b/android/sdk/libs/armeabi/libweexjss.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/armeabi/libweexjst.so
--
diff --git a/android/sdk/libs/armeabi/libweexjst.so 
b/android/sdk/libs/armeabi/libweexjst.so
index bca44ad..099256c 100755
Binary files a/android/sdk/libs/armeabi/libweexjst.so and 
b/android/sdk/libs/armeabi/libweexjst.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/x86/libweexjsc.so
--
diff --git a/android/sdk/libs/x86/libweexjsc.so 
b/android/sdk/libs/x86/libweexjsc.so
index 3e2bf9a..b86a821 100755
Binary files a/android/sdk/libs/x86/libweexjsc.so and 
b/android/sdk/libs/x86/libweexjsc.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/libs/x86/libweexjss.so
--
diff --git a/android/sdk/libs/x86/libweexjss.so 
b/android/sdk/libs/x86/libweexjss.so
index 13c858f..fc8e5f6 100755
Binary files a/android/sdk/libs/x86/libweexjss.so and 
b/android/sdk/libs/x86/libweexjss.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
--
diff --git a/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java 
b/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
index e6084d9..96ca990 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
@@ -119,6 +119,9 @@ public class WXEnvironment {
 configs.put(WXConfig.weexVersion, String.valueOf(WXSDK_VERSION));
 configs.put(WXConfig.logLevel,sLogLevel.getName());
 try {
+  if (isApkDebugable()) {
+options.put(WXConfig.debugMode, "true");
+  }
   options.put(WXConfig.scale, 
Float.toString(sApplication.getResources().getDisplayMetrics().density));
 }catch (NullPointerException e){
   //There is little chance of NullPointerException as sApplication may be 
null.

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/640c53f1/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
--
diff --git a/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java 
b/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
index 618502d..cbcac83 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
@@ -393,14 +393,19 @@ public class WXSDKEngine {
 
   public static boolean registerComponent(IFComponentHolder holder, boolean 
appendTree, String ... names) throws WXException {
 boolean result =  true;
-for(String name:names) {
-  Map

[GitHub] incubator-weex issue #1088: Apache master multicontext

2018-03-27 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1088
  






  

  
  Messages

  
  
  :book:
  has no jsfm file changed.

  

  :book:
  jsfm test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/;>dangerJS




---


[GitHub] incubator-weex pull request #1088: Apache master multicontext

2018-03-27 Thread yuhun-alibaba
GitHub user yuhun-alibaba opened a pull request:

https://github.com/apache/incubator-weex/pull/1088

Apache master multicontext

Weex SandBox

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/yuhun-alibaba/incubator-weex 
apache_master_multicontext

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1088.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1088


commit 640c53f13260e0ae5b96ecbf01e7eb2f64d049c8
Author: yuhun-alibaba 
Date:   2018-03-14T13:14:05Z

  * [WEEX-240] [android] feature update for weexsandbox and size off so
 1. every page will has a runtime context independent of other page
 2. At the beginning of js, will use // {"framework" : "Rax"} or // 
{"framework" : "Vue"} to distinguish type
 3. if page type is neither Rax nor Vue, will use global context runtime
 4. delete some usless code and opt build tools, trim so

commit fc8028c1ff29c3f5bcedd48a53fbc249325f0fb8
Author: wentao.swt 
Date:   2018-03-19T11:17:23Z

 * [android] fix java.util.ConcurrentModificationException

commit e3d67594bc40735c24981effe4f532bb7b774203
Author: yuhun-alibaba 
Date:   2018-03-20T12:45:10Z

 * [android] when debug server connect use global context

commit 45ec92c81990ca5f3cb5bdc96d1ffd53bb2af86f
Author: wentao.swt 
Date:   2018-03-22T07:42:13Z

* [android] fix atob and btoa bug




---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
Github user yuhun-alibaba closed the pull request at:

https://github.com/apache/incubator-weex/pull/1087


---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
Github user yuhun-alibaba closed the pull request at:

https://github.com/apache/incubator-weex/pull/1087


---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
GitHub user yuhun-alibaba reopened a pull request:

https://github.com/apache/incubator-weex/pull/1087

Master multicontext 0320

Weex SandBox and trim so size

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/yuhun-alibaba/incubator-weex 
master_multicontext_0320

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1087.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1087


commit 73f06a971ab3d4f3377604ce8529c254c2e89919
Author: yuhun-alibaba 
Date:   2018-03-14T13:14:05Z

 * [WEEX-240] [android] feature update for weexsandbox and size off so
 1. every page will has a runtime context independent of other page
 2. At the beginning of js, will use // {"framework" : "Rax"} or // 
{"framework" : "Vue"} to distinguish type
 3. if page type is neither Rax nor Vue, will use global context runtime
 4. delete some usless code and opt build tools, trim so

commit 1784448899588b14fda945d425ceb94de56bae12
Author: wentao.swt 
Date:   2018-03-19T11:17:23Z

 * [android] fix java.util.ConcurrentModificationException

commit c5059de64548eba70c19de1364da2ad92f42faed
Author: yuhun-alibaba 
Date:   2018-03-20T12:45:10Z

 * [android] when debug server connect use global context

commit 1a8beec4659d2eefa77fd2a5549afab120e3dd93
Author: wentao.swt 
Date:   2018-03-22T07:42:13Z

* [android] fix atob and btoa bug

commit e1c8ffeea434baa073c313a7dffda44be6df87be
Author: toretto 
Date:   2018-03-27T07:07:18Z

Merge branch 'master' into master_multicontext_0320




---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
Github user yuhun-alibaba closed the pull request at:

https://github.com/apache/incubator-weex/pull/1087


---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
GitHub user yuhun-alibaba reopened a pull request:

https://github.com/apache/incubator-weex/pull/1087

Master multicontext 0320

Weex SandBox and trim so size

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/yuhun-alibaba/incubator-weex 
master_multicontext_0320

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1087.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1087


commit 73f06a971ab3d4f3377604ce8529c254c2e89919
Author: yuhun-alibaba 
Date:   2018-03-14T13:14:05Z

 * [WEEX-240] [android] feature update for weexsandbox and size off so
 1. every page will has a runtime context independent of other page
 2. At the beginning of js, will use // {"framework" : "Rax"} or // 
{"framework" : "Vue"} to distinguish type
 3. if page type is neither Rax nor Vue, will use global context runtime
 4. delete some usless code and opt build tools, trim so

commit 1784448899588b14fda945d425ceb94de56bae12
Author: wentao.swt 
Date:   2018-03-19T11:17:23Z

 * [android] fix java.util.ConcurrentModificationException

commit c5059de64548eba70c19de1364da2ad92f42faed
Author: yuhun-alibaba 
Date:   2018-03-20T12:45:10Z

 * [android] when debug server connect use global context

commit 1a8beec4659d2eefa77fd2a5549afab120e3dd93
Author: wentao.swt 
Date:   2018-03-22T07:42:13Z

* [android] fix atob and btoa bug

commit e1c8ffeea434baa073c313a7dffda44be6df87be
Author: toretto 
Date:   2018-03-27T07:07:18Z

Merge branch 'master' into master_multicontext_0320




---


[GitHub] incubator-weex issue #1087: Master multicontext 0320

2018-03-27 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1087
  






  

  
  Messages

  
  
  :book:
  has no jsfm file changed.

  

  :book:
  jsfm test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/;>dangerJS




---


[GitHub] incubator-weex pull request #1087: Master multicontext 0320

2018-03-27 Thread yuhun-alibaba
GitHub user yuhun-alibaba opened a pull request:

https://github.com/apache/incubator-weex/pull/1087

Master multicontext 0320

Weex SandBox and trim so size

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/yuhun-alibaba/incubator-weex 
master_multicontext_0320

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1087.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1087


commit 73f06a971ab3d4f3377604ce8529c254c2e89919
Author: yuhun-alibaba 
Date:   2018-03-14T13:14:05Z

 * [WEEX-240] [android] feature update for weexsandbox and size off so
 1. every page will has a runtime context independent of other page
 2. At the beginning of js, will use // {"framework" : "Rax"} or // 
{"framework" : "Vue"} to distinguish type
 3. if page type is neither Rax nor Vue, will use global context runtime
 4. delete some usless code and opt build tools, trim so

commit 1784448899588b14fda945d425ceb94de56bae12
Author: wentao.swt 
Date:   2018-03-19T11:17:23Z

 * [android] fix java.util.ConcurrentModificationException

commit c5059de64548eba70c19de1364da2ad92f42faed
Author: yuhun-alibaba 
Date:   2018-03-20T12:45:10Z

 * [android] when debug server connect use global context

commit 1a8beec4659d2eefa77fd2a5549afab120e3dd93
Author: wentao.swt 
Date:   2018-03-22T07:42:13Z

* [android] fix atob and btoa bug




---