[1/5] 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, wil

2018-03-06 Thread toretto
Repository: incubator-weex
Updated Branches:
  refs/heads/master 4b0e37423 -> 7c5ef1c68


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7c5ef1c6/pre-build/native-bundle-main.js
--
diff --git a/pre-build/native-bundle-main.js b/pre-build/native-bundle-main.js
index afb172d..e9c4e7e 100644
--- a/pre-build/native-bundle-main.js
+++ b/pre-build/native-bundle-main.js
@@ -1 +1,19079 @@
-(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.amd?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&&e.__esModule&&Object.prototype.hasOwnProperty.call(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&&isFinite(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 
r,o,i,a=R(e),s=W(a.length),u=(o=s,(r=L(r=n))<0?U(r+o,0):B(r,o));if(I&&t!=t){for(;s>u;)if((i=a[u++])!=i)return!0}else
 for(;s>u;u++)if((I||u in a)&&a[u]===t)return 
I||u||0;return!I&&-1}),K=G("IE_PROTO"),Z="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Q=Object.keys||function(e){return
 functio
 n(e,t){var n,r=R(e),o=0,i=[];for(n in 
r)n!=K&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~X(i,n)||i.push(n));return
 
i}(e,Z)},Y={f:Object.getOwnPropertySymbols},ee={f:{}.propertyIsEnumerable},te=function(e){return
 Object($(e))},ne=Object.assign,re=!ne||l(function(){var 
e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return 
e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=ne({},e)[n]||Object.keys(ne({},t)).join("")!=r})?function(e,t){for(var
 n=arguments,r=te(e),o=arguments.length,i=1,a=Y.f,s=ee.f;o>i;)for(var 
u,c=M(n[i++]),l=a?Q(c).concat(a(c)):Q(c),f=l.length,p=0;f>p;)s.call(c,u=l[p++])&&(r[u]=c[u]);return
 
r}:ne;T(T.S+T.F,"Object",{assign:re});s.Object.assign;Object.setPrototypeOf||(Object.setPrototypeOf=function(e,t){var
 n;function r(e,t){return 
n.call(e,t),e}try{(n=e.getOwnPropertyDescriptor(e.prototype,t).set).call({},null)}catch(o){if(e.prototype!=={}[t])return;n=function(e){this[t]=e},r.polyfill=r(r({},null),e.prototype)instanceof
 e}return r}(Object,"__proto__"));var oe=
 global.WXEnvironment;oe&&"iOS"===oe.platform&&(global.Promise=void 0);var 
ie=i(function(e){var t=z("wks"),n=a.Symbol,r="function"==typeof 
n;(e.exports=function(e){return 
t[e]||(t[e]=r&&n[e]||(r?n:k)("Symbol."+e))}).store=t}),ae=ie("toStringTag"),se="Arguments"==N(function(){return
 arguments}()),ue=function(e){var t,n,r;return void 
0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return 
e[t]}catch(e){}}(t=Object(e),ae))?n:se?N(t):"Object"==(r=N(t))&&"function"==typeof
 t.callee?"Arguments":r},ce={};ce[ie("toStringTag")]="z",ce+""!="[object 
z]"&&C(Object.prototype,"toString",function(){return"[object 
"+ue(this)+"]"},!0);var 
le={},fe=f?Object.defineProperties:function(e,t){c(e);for(var 
n,r=Q(t),o=r.length,i=0;o>i;)m.f(e,n=r[i++],t[n]);return 
e},pe=a.document,de=pe&&pe.documentElement,he=G("IE_PROTO"),ve=function(){},ye="prototype",me=function(){var
 
e,t=h("iframe"),n=Z.length;for(t.style.display="none",de.appendChild(t),t.src="javascript:",(e=t.contentWindow.documen
 
t).open(),e.write("

[2/5] 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, wil

2018-03-06 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7c5ef1c6/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 28ee2a3..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/7c5ef1c6/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 dc93f8d..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/7c5ef1c6/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/7c5ef1c6/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/7c5ef1c6/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/7c5ef1c6/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/7c5ef1c6/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
--
diff --git a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java 
b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
index 475991e..bdc6f2f 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
@@ -175,6 +175,26 @@ public class WXSDKInstance implements 
IWXActivityStateListener,DomContext, View.
   private ComponentObserver mComponentObserver;
   private boolean mIsCommitedDomAtionExp = false;
 
+  // add for clound setting, default value is true
+  // can use it to control weex sandbox
+  // if true will open weex sandbox for multi context
+  private boolean mUseSandBox = true;
+
+  /**
+   * get sandbox switch
+   * @return useSandBox
+   */
+  public boolean getUseSandBox() {
+return mUseSandBox;
+  }
+
+  /**
+   * set open SandBox
+   * @param flag
+   */
+  public void setUseSandBox(boolean flag) {
+mUseSandBox = flag;
+  }
   public PriorityQueue hiddenEmbeds;
 
   private int maxHiddenEmbedsNum = -1; //max hidden embed num, -1 standard for 
ulimit

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7c5ef1c6/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridge.java
--
diff --git a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridge.java 
b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridge.java
index ef30168..20b37e1 100644
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridge.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridge.java
@@ -64,9 +64,28 @@ class WXBridge implements IWXBridge {
*/
   public native int execJS(String instanceId, String namespa

[4/5] 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, wil

2018-03-06 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7c5ef1c6/android/sdk/assets/main-backup.js
--
diff --git a/android/sdk/assets/main-backup.js 
b/android/sdk/assets/main-backup.js
new file mode 100644
index 000..afb172d
--- /dev/null
+++ b/android/sdk/assets/main-backup.js
@@ -0,0 +1 @@
+(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.amd?define(t):t()}(0,function(){"use strict";var 
e,t,n,r;function o(e){return 
e&&e.__esModule&&Object.prototype.hasOwnProperty.call(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&&isFinite(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 
r,o,i,a=R(e),s=W(a.length),u=(o=s,(r=L(r=n))<0?U(r+o,0):B(r,o));if(I&&t!=t){for(;s>u;)if((i=a[u++])!=i)return!0}else
 for(;s>u;u++)if((I||u in a)&&a[u]===t)return 
I||u||0;return!I&&-1}),K=G("IE_PROTO"),Z="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Q=Object.keys||function(e){return
 functio
 n(e,t){var n,r=R(e),o=0,i=[];for(n in 
r)n!=K&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~X(i,n)||i.push(n));return
 
i}(e,Z)},Y={f:Object.getOwnPropertySymbols},ee={f:{}.propertyIsEnumerable},te=function(e){return
 Object($(e))},ne=Object.assign,re=!ne||l(function(){var 
e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return 
e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=ne({},e)[n]||Object.keys(ne({},t)).join("")!=r})?function(e,t){for(var
 n=arguments,r=te(e),o=arguments.length,i=1,a=Y.f,s=ee.f;o>i;)for(var 
u,c=M(n[i++]),l=a?Q(c).concat(a(c)):Q(c),f=l.length,p=0;f>p;)s.call(c,u=l[p++])&&(r[u]=c[u]);return
 
r}:ne;T(T.S+T.F,"Object",{assign:re});s.Object.assign;Object.setPrototypeOf||(Object.setPrototypeOf=function(e,t){var
 n;function r(e,t){return 
n.call(e,t),e}try{(n=e.getOwnPropertyDescriptor(e.prototype,t).set).call({},null)}catch(o){if(e.prototype!=={}[t])return;n=function(e){this[t]=e},r.polyfill=r(r({},null),e.prototype)instanceof
 e}return r}(Object,"__proto__"));var oe=
 global.WXEnvironment;oe&&"iOS"===oe.platform&&(global.Promise=void 0);var 
ie=i(function(e){var t=z("wks"),n=a.Symbol,r="function"==typeof 
n;(e.exports=function(e){return 
t[e]||(t[e]=r&&n[e]||(r?n:k)("Symbol."+e))}).store=t}),ae=ie("toStringTag"),se="Arguments"==N(function(){return
 arguments}()),ue=function(e){var t,n,r;return void 
0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return 
e[t]}catch(e){}}(t=Object(e),ae))?n:se?N(t):"Object"==(r=N(t))&&"function"==typeof
 t.callee?"Arguments":r},ce={};ce[ie("toStringTag")]="z",ce+""!="[object 
z]"&&C(Object.prototype,"toString",function(){return"[object 
"+ue(this)+"]"},!0);var 
le={},fe=f?Object.defineProperties:function(e,t){c(e);for(var 
n,r=Q(t),o=r.length,i=0;o>i;)m.f(e,n=r[i++],t[n]);return 
e},pe=a.document,de=pe&&pe.documentElement,he=G("IE_PROTO"),ve=function(){},ye="prototype",me=function(){var
 
e,t=h("iframe"),n=Z.length;for(t.style.display="none",de.appendChild(t),t.src="javascript:",(e=t.contentWindow.documen
 
t).open(),e.write("

[3/5] 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, wil

2018-03-06 Thread toretto
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7c5ef1c6/android/sdk/assets/weex-rax.js
--
diff --git a/android/sdk/assets/weex-rax.js b/android/sdk/assets/weex-rax.js
new file mode 100644
index 000..19ffa62
--- /dev/null
+++ b/android/sdk/assets/weex-rax.js
@@ -0,0 +1,8299 @@
+/* Prepare Rax Environment APIs 0.4.20, Build 2018-02-26 19:32. */
+
+var global = this; var process = {env:{}};
+(function (global, factory) {
+   typeof exports === 'object' && typeof module !== 'undefined' ? 
factory() :
+   typeof define === 'function' && define.amd ? define(factory) :
+   (factory());
+}(this, (function () { 'use strict';
+
+function unwrapExports (x) {
+   return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 
'default') ? x['default'] : x;
+}
+
+function createCommonjsModule(fn, module) {
+   return module = { exports: {} }, fn(module, module.exports), 
module.exports;
+}
+
+var api = createCommonjsModule(function (module) {
+module.exports = /**/ (function(modules) { // webpackBootstrap
+/**/  // The module cache
+/**/  var installedModules = {};
+/**/
+/**/  // The require function
+/**/  function __webpack_require__(moduleId) {
+/**/
+/**/// Check if module is in cache
+/**/if(installedModules[moduleId]) {
+/**/  return installedModules[moduleId].exports;
+/**/}
+/**/// Create a new module (and put it into the cache)
+/**/var module = installedModules[moduleId] = {
+/**/  i: moduleId,
+/**/  l: false,
+/**/  exports: {}
+/**/};
+/**/
+/**/// Execute the module function
+/**/modules[moduleId].call(module.exports, module, module.exports, 
__webpack_require__);
+/**/
+/**/// Flag the module as loaded
+/**/module.l = true;
+/**/
+/**/// Return the exports of the module
+/**/return module.exports;
+/**/  }
+/**/
+/**/
+/**/  // expose the modules object (__webpack_modules__)
+/**/  __webpack_require__.m = modules;
+/**/
+/**/  // expose the module cache
+/**/  __webpack_require__.c = installedModules;
+/**/
+/**/  // define getter function for harmony exports
+/**/  __webpack_require__.d = function(exports, name, getter) {
+/**/if(!__webpack_require__.o(exports, name)) {
+/**/  Object.defineProperty(exports, name, {
+/**/configurable: false,
+/**/enumerable: true,
+/**/get: getter
+/**/  });
+/**/}
+/**/  };
+/**/
+/**/  // getDefaultExport function for compatibility with non-harmony 
modules
+/**/  __webpack_require__.n = function(module) {
+/**/var getter = module && module.__esModule ?
+/**/  function getDefault() { return module['default']; } :
+/**/  function getModuleExports() { return module; };
+/**/__webpack_require__.d(getter, 'a', getter);
+/**/return getter;
+/**/  };
+/**/
+/**/  // Object.prototype.hasOwnProperty.call
+/**/  __webpack_require__.o = function(object, property) { return 
Object.prototype.hasOwnProperty.call(object, property); };
+/**/
+/**/  // __webpack_public_path__
+/**/  __webpack_require__.p = "";
+/**/
+/**/  // Load entry module and return exports
+/**/  return __webpack_require__(__webpack_require__.s = 3);
+/**/ })
+//
+/**/ ([
+/* 0 */
+/*!***!*\
+  !*** 
./packages/weex-rax-framework-api/node_modules/.npminstall/event-target-shim/2.0.0/event-target-shim/lib/commons.js
 ***!
+  
\***/
+/*! dynamic exports provided */
+/*! all exports used */
+/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
+/***/ (function(module, exports, __webpack_require__) {
+
+var createUniqueKey = module.exports.createUniqueKey = (
+typeof Symbol !== "undefined" ? Symbol : //eslint-disable-line no-undef
+/* otherwise */ function createUniqueKey(name) {
+return "[[" + name + "_" + Math.random().toFixed(8).slice(2) + "]]"
+}
+);
+
+/**
+ * Checks whether the given value is a non-null object or not.
+ *
+ * @param {any} x - The value to be check.
+ * @returns {boolean} `true` if the value is a non-null object.
+ * @private
+ */
+var isObject = module.exports.isObject = function isObject(x) {
+return typeof x === "object" && x !== null
+};
+
+/**
+ * The key of listeners.
+ *
+ * @type {symbol|string}
+ * @private
+ */
+module.exports.LISTENERS = createUniqueKey("listeners");
+
+/**
+ * A value of kind for listeners which are registered in the capturing phase.
+

[5/5] 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, wil

2018-03-06 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/7c5ef1c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/7c5ef1c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/7c5ef1c6

Branch: refs/heads/master
Commit: 7c5ef1c68f7c71f9179af7693ae20a691a02c971
Parents: 4b0e374
Author: yuhun-alibaba 
Authored: Thu Mar 1 22:11:16 2018 +0800
Committer: yuhun-alibaba 
Committed: Wed Mar 7 14:58:45 2018 +0800

--
 android/sdk/assets/main-backup.js   | 1 +
 android/sdk/assets/weex-rax.js  |  8299 +++
 android/sdk/libs/armeabi/libweexjsb.so  |   Bin 22620 -> 67264 bytes
 android/sdk/libs/armeabi/libweexjsc.so  |   Bin 337468 -> 276000 bytes
 android/sdk/libs/armeabi/libweexjss.so  |   Bin 6774704 -> 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 +
 .../java/com/taobao/weex/WXSDKInstance.java |20 +
 .../java/com/taobao/weex/bridge/WXBridge.java   |28 +
 .../com/taobao/weex/bridge/WXBridgeManager.java |   266 +-
 .../java/com/taobao/weex/common/IWXBridge.java  |29 +
 .../java/com/taobao/weex/common/WXConfig.java   | 1 +
 pre-build/native-bundle-main.js | 19080 -
 15 files changed, 27721 insertions(+), 6 deletions(-)
--




incubator-weex-site git commit: Fix bad links in who-is-using-weex page

2018-03-06 Thread hanks
Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 23d960516 -> 89dc99e08


Fix bad links in who-is-using-weex page

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

Branch: refs/heads/master
Commit: 89dc99e08a660c3a0c3154f088ad057ba483b71f
Parents: 23d9605
Author: Hanks 
Authored: Wed Mar 7 14:27:48 2018 +0800
Committer: GitHub 
Committed: Wed Mar 7 14:27:48 2018 +0800

--
 source/_data/users.yml | 38 +++---
 1 file changed, 19 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/89dc99e0/source/_data/users.yml
--
diff --git a/source/_data/users.yml b/source/_data/users.yml
index 93e9914..0e42bfd 100644
--- a/source/_data/users.yml
+++ b/source/_data/users.yml
@@ -11,8 +11,8 @@ tmall:
 youku:
   name: '优酷'
   icon: 'https://img.alicdn.com/tfs/TB1CjajX1uSBuNjy1XcXXcYjFXa-740-737.png'
-  iOS: ''
-  android: ''
+  iOS: 
'https://itunes.apple.com/us/app/%E4%BC%98%E9%85%B7%E8%A7%86%E9%A2%91/id336141475'
+  android: 'https://play.google.com/store/apps/details?id=com.youku.phone'
 xianyu:
   name: '闲鱼'
   icon: 'https://img.alicdn.com/tfs/TB13I8cnC_I8KJjy0FoXXaFnVXa-150-150.jpg'
@@ -26,13 +26,13 @@ fliggy:
 uc:
   name: 'UC浏览器'
   icon: 'https://img.alicdn.com/tfs/TB17epRnv6H8KJjy0FjXXaXepXa-200-200.png'
-  iOS: 'https://itunes.apple.com/cn/app/id586871187?mt=8'
-  android: 
'https://play.google.com/store/apps/details?id=com.UCMobile.intl&hl=zh_CN'
+  iOS: 'https://itunes.apple.com/cn/app/id586871187'
+  android: 'https://play.google.com/store/apps/details?id=com.UCMobile.intl'
 cainiao:
   name: '菜鸟裹裹'
   icon: 'https://img.alicdn.com/tfs/TB1JMw3XMmTBuNjy1XbXXaMrVXa-512-512.jpg'
-  iOS: ''
-  android: ''
+  iOS: 
'https://itunes.apple.com/us/app/%E8%8F%9C%E9%B8%9F%E8%A3%B9%E8%A3%B9-%E6%98%A5%E8%8A%82%E4%B8%8D%E6%89%93%E7%83%8A-%E5%BF%AB%E9%80%92%E9%9A%8F%E6%97%B6%E6%9F%A5%E5%AF%84%E5%8F%96/id951610982'
+  android: 'https://www.guoguo-app.com/mobileApp.htm'
 qianniu:
   name: '千牛'
   icon: 'https://img.alicdn.com/tfs/TB19dd_nv6H8KJjSspmXXb2WXXa-200-200.png'
@@ -41,13 +41,13 @@ qianniu:
 aliyun:
   name: '阿里云'
   icon: 'https://gw.alicdn.com/tfs/TB1DSqRX_tYBeNjy1XdyVXa-1024-1024.png'
-  iOS: ''
-  android: ''
+  iOS: 
'https://itunes.apple.com/cn/app/%E9%98%BF%E9%87%8C%E4%BA%91/id981011420'
+  android: 'https://promotion.aliyun.com/ntms/mobile.html'
 alibaba:
   name: '阿里巴巴'
   icon: 'https://img.alicdn.com/tfs/TB1WJc9XKuSBuNjy1XcXXcYjFXa-80-80.jpg'
-  iOS: ''
-  android: ''
+  iOS: 'https://itunes.apple.com/us/app/alibaba-com-b2b-trade-app/id503451073'
+  android: 
'https://play.google.com/store/apps/details?id=com.alibaba.intl.android.apps.poseidon'
 taopiaopiao:
   name: '淘票票专业版'
   icon: 'https://gw.alicdn.com/tfs/TB1qB1RX_tYBeNjy1XdyVXa-512-512.png'
@@ -56,23 +56,23 @@ taopiaopiao:
 hema:
   name: '盒马'
   icon: 'https://gw.alicdn.com/tfs/TB1dq38XQyWBuNjy0FpXXassXXa-144-144.png'
-  iOS: ''
-  android: ''
+  iOS: 'https://itunes.apple.com/us/app/%E7%9B%92%E9%A9%AC/id1063183999'
+  android: 'https://www.freshhema.com/'
 eleme:
   name: '饿了么'
   icon: 'https://img.alicdn.com/tfs/TB12BM5XFOWBuNjy0FiXXXFxVXa-225-225.jpg'
-  iOS: ''
-  android: ''
+  iOS: 
'https://itunes.apple.com/cn/app/%E9%A5%BF%E4%BA%86%E4%B9%88-%E5%A4%96%E5%8D%96%E8%AE%A2%E9%A4%90-%E7%BE%8E%E9%A3%9F30%E5%88%86%E9%92%9F%E5%88%B0%E5%AE%B6/id507161324'
+  android: 'https://play.google.com/store/apps/details?id=me.ele'
 lazada:
   name: 'Lazada'
   icon: 'https://gw.alicdn.com/tfs/TB15Zg.XGmWBuNjy1XaXXXCbXXa-225-225.png'
-  iOS: ''
-  android: ''
+  iOS: 'https://itunes.apple.com/us/app/lazada-1-online-shopping/id785385147'
+  android: 'https://play.google.com/store/apps/details?id=com.lazada.android'
 paytmmall:
   name: 'Paytm Mall'
   icon: 'https://img.alicdn.com/tfs/TB1poU.XL5TBuNjSspmXXaDRVXa-225-225.png'
-  iOS: ''
-  android: ''
+  iOS: 
'https://itunes.apple.com/au/app/paytm-mall-online-shopping/id1157845438'
+  android: 'https://play.google.com/store/apps/details?id=com.paytmmall'
 qierdianjing:
   name: '企鹅电竞'
   icon: 'https://img.alicdn.com/tfs/TB1jbs5XFOWBuNjy0FiXXXFxVXa-114-114.png'
@@ -111,7 +111,7 @@ geektime:
 kyur:
   name: '开语'
   icon: 'https://img.alicdn.com/tfs/TB1V.z1X_tYBeNjy1XdyVXa-1024-1024.png'
-  iOS: 
'https://itunes.apple.com/cn/app/%E5%BC%80%E8%AF%AD-%E6%99%BA%E8%83%BD%E8%AF%AD%E9%9F%B3%E5%8A%A9%E6%89%8B/id1281878843?l=en&mt=8'
+  iOS: 
'https://itunes.apple.com/cn/app/%E5%

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

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

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


---


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

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

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

 * [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

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

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

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

https://github.com/apache/incubator-weex/pull/1052.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 #1052


commit 53c45e6dcc80cc539bf22e2d70ff7a1518d476fa
Author: yuhun-alibaba 
Date:   2018-03-01T14:11:16Z

 * [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




---


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

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

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


---


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

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

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

 * [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

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

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

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

https://github.com/apache/incubator-weex/pull/1052.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 #1052


commit 53c45e6dcc80cc539bf22e2d70ff7a1518d476fa
Author: yuhun-alibaba 
Date:   2018-03-01T14:11:16Z

 * [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




---


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

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

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

 * [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

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

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

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

https://github.com/apache/incubator-weex/pull/1052.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 #1052


commit 53c45e6dcc80cc539bf22e2d70ff7a1518d476fa
Author: yuhun-alibaba 
Date:   2018-03-01T14:11:16Z

 * [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




---


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

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

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


---


[GitHub] incubator-weex issue #1052: * [WEEX-240] [android] feature update for weexsa...

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

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





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




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




---


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

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

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

 * [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

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

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

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

https://github.com/apache/incubator-weex/pull/1052.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 #1052


commit 53c45e6dcc80cc539bf22e2d70ff7a1518d476fa
Author: yuhun-alibaba 
Date:   2018-03-01T14:11:16Z

 * [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




---


[GitHub] incubator-weex issue #1051: + [iOS] add WXVideoComponent "poster" attribute.

2018-03-06 Thread xuyouyang
Github user xuyouyang commented on the issue:

https://github.com/apache/incubator-weex/pull/1051
  
NO.
The poster attribute specifies an image to be shown while the video is 
downloading, or until the user hits the play button. If this is not included, 
the first frame of the video will be used instead.
You can see this "https://www.w3schools.com/tags/att_video_poster.asp";
It is a attribute in HTML  tag


---


[2/2] incubator-weex git commit: [WEEX-239][iOS] rename comment about params

2018-03-06 Thread acton393
[WEEX-239][iOS] rename comment about params


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

Branch: refs/heads/master
Commit: 4b0e3742354d3addf65e86b7820232931a8b4432
Parents: c994aa8
Author: acton393 
Authored: Tue Mar 6 20:34:51 2018 +0800
Committer: acton393 
Committed: Tue Mar 6 20:34:51 2018 +0800

--
 ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4b0e3742/ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h
--
diff --git a/ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h 
b/ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h
index f7728c5..e883c19 100644
--- a/ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h
+++ b/ios/sdk/WeexSDK/Sources/Protocol/WXImgLoaderProtocol.h
@@ -72,7 +72,7 @@ typedef NS_ENUM(NSInteger, WXImageLoaderCacheType) {
  *
  * @param options : The options to be used for download operation
  *
- * @param progress: A block called while the download start
+ * @param progressBlock: A block called while the download start
  *
  * @param completedBlock : A block called once the download is completed.
  * image : the image which has been download to local.



[1/2] incubator-weex git commit: [WEEX-239] add more download image interface for imageloader

2018-03-06 Thread acton393
Repository: incubator-weex
Updated Branches:
  refs/heads/master c65acbd84 -> 4b0e37423


[WEEX-239] add more download image interface for imageloader

  add more download image interface, you can obtain more details such as the 
progress of downloading image

Bug:239


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

Branch: refs/heads/master
Commit: c994aa86d8335a6c6ea1dd58bcf55296391608a2
Parents: c65acbd
Author: acton393 
Authored: Tue Mar 6 20:06:17 2018 +0800
Committer: acton393 
Committed: Tue Mar 6 20:06:17 2018 +0800

--
 .../extend/handler/WXImgLoaderDefaultImpl.m | 18 +
 .../Sources/Component/WXImageComponent.m| 79 +++-
 .../Sources/Protocol/WXImgLoaderProtocol.h  | 42 +++
 3 files changed, 119 insertions(+), 20 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c994aa86/ios/playground/WeexDemo/extend/handler/WXImgLoaderDefaultImpl.m
--
diff --git a/ios/playground/WeexDemo/extend/handler/WXImgLoaderDefaultImpl.m 
b/ios/playground/WeexDemo/extend/handler/WXImgLoaderDefaultImpl.m
index 1adaa5e..a085ddb 100644
--- a/ios/playground/WeexDemo/extend/handler/WXImgLoaderDefaultImpl.m
+++ b/ios/playground/WeexDemo/extend/handler/WXImgLoaderDefaultImpl.m
@@ -60,4 +60,22 @@
 }];
 }
 
+- (void)setImageViewWithURL:(UIImageView *)imageView url:(NSURL *)url 
placeholderImage:(UIImage *)placeholder options:(NSDictionary *)options 
progress:(void (^)(NSInteger, NSInteger))progressBlock completed:(void 
(^)(UIImage *, NSError *, WXImageLoaderCacheType, NSURL *))completedBlock
+{
+SDWebImageOptions sdWebimageOption = SDWebImageRetryFailed;
+if (options && options[@"sdWebimageOption"]) {
+[options[@"sdWebimageOption"] intValue];
+}
+
+[imageView sd_setImageWithURL:url placeholderImage:placeholder 
options:sdWebimageOption progress:^(NSInteger receivedSize, NSInteger 
expectedSize) {
+if (progressBlock) {
+progressBlock(receivedSize, expectedSize);
+}
+} completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, 
NSURL *imageURL) {
+if (completedBlock) {
+completedBlock(image, error, (WXImageLoaderCacheType)cacheType, 
imageURL);
+}
+}];
+}
+
 @end

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c994aa86/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
--
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m 
b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index 3f79791..891217a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -30,6 +30,8 @@
 #import "WXSDKEngine.h"
 #import "WXUtility.h"
 #import "WXAssert.h"
+#import "WXConfigCenterProtocol.h"
+#import "WXSDKEngine.h"
 #import 
 
 @interface WXImageView : UIImageView
@@ -64,6 +66,7 @@ static dispatch_queue_t WXImageUpdateQueue;
 @property (nonatomic, strong) id 
placeholderOperation;
 @property (nonatomic) BOOL imageLoadEvent;
 @property (nonatomic) BOOL imageDownloadFinish;
+@property (nonatomic) BOOL downloadImageWithURL;
 
 @end
 
@@ -101,6 +104,14 @@ WX_EXPORT_METHOD(@selector(save:))
 if (attributes[@"quality"]) {
 _imageQuality = [WXConvert WXImageQuality:attributes[@"quality"]];
 }
+id configCenter = [WXSDKEngine 
handlerForProtocol:@protocol(WXConfigCenterProtocol)];
+_downloadImageWithURL = YES;
+if ([configCenter 
respondsToSelector:@selector(configForKey:defaultValue:isDefault:)]) {
+_downloadImageWithURL = [configCenter 
configForKey:@"iOS_weex_ext_config.downloadImageWithURL" defaultValue:@(YES) 
isDefault:NULL];
+}
+if (attributes[@"compositing"]) {
+_downloadImageWithURL = [WXConvert 
BOOL:attributes[@"compositing"]];
+}
 
 _imageSharp = [WXConvert WXImageSharp:styles[@"sharpen"]];
 _imageLoadEvent = NO;
@@ -352,27 +363,55 @@ WX_EXPORT_METHOD(@selector(save:))
 - (void)updateImage
 {
 __weak typeof(self) weakSelf = self;
-dispatch_async(WXImageUpdateQueue, ^{
- __strong typeof(weakSelf) strongSelf = weakSelf;
-[strongSelf cancelImage];
-   
-void(^downloadFailed)(NSString *, NSError *) = ^void(NSString *url, 
NSError *error) {
-weakSelf.imageDownloadFinish = YES;
-WXLogError(@"Error downloading image: %@, detail:%@", url, [error 
localizedDescription]);
-};
-   

[GitHub] incubator-weex pull request #1050: [WEEX-239] add more download image interf...

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

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


---


[GitHub] incubator-weex issue #1051: + [iOS] add WXVideoComponent "poster" attribute.

2018-03-06 Thread acton393
Github user acton393 commented on the issue:

https://github.com/apache/incubator-weex/pull/1051
  
hi,  @xuyouyang   what's the "poster"  feature,  is it  the paused 
picture about  player display?


---


[GitHub] incubator-weex issue #1051: + [iOS] add WXVideoComponent "poster" attribute.

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

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





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




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




---


[GitHub] incubator-weex pull request #1051: + [iOS] add WXVideoComponent "poster" att...

2018-03-06 Thread xuyouyang
GitHub user xuyouyang opened a pull request:

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

+ [iOS] add WXVideoComponent "poster" attribute.

+ [iOS] add WXVideoComponent poster feature and add support "poster" 
attribute to 
testcase: http://dotwe.org/vue/4bf373d06d3b8021441a88b7f841ef3b





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

$ git pull https://github.com/xuyouyang/incubator-weex 
ios-feature-videoPoster

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

https://github.com/apache/incubator-weex/pull/1051.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 #1051


commit 946bcec8fbbfbb4d3bd1767e3a8d55a759576017
Author: 徐有阳 
Date:   2018-03-07T02:59:44Z

+ [iOS] add WXVideoComponent "poster" attribute.




---


[1/2] incubator-weex-site git commit: [doc] add force property and add examples

2018-03-06 Thread hanks
Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 60fc30223 -> 23d960516


[doc] add force property and add examples


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

Branch: refs/heads/master
Commit: ee306b5a180148a777e231fbb2216d5256c19315
Parents: 385adb4
Author: acton393 
Authored: Tue Mar 6 21:50:57 2018 +0800
Committer: acton393 
Committed: Tue Mar 6 21:50:57 2018 +0800

--
 source/cn/wiki/gestures.md | 6 +-
 source/wiki/gestures.md| 6 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/ee306b5a/source/cn/wiki/gestures.md
--
diff --git a/source/cn/wiki/gestures.md b/source/cn/wiki/gestures.md
index 1d2c207..c3f551d 100644
--- a/source/cn/wiki/gestures.md
+++ b/source/cn/wiki/gestures.md
@@ -10,7 +10,7 @@ version: 2.1
 
 *注:该功能属于实验性功能*
 
-Weex 封装
了原生的触摸事件以提供手势系统。使用手势类似于在 Weex 
中使用事件,只需在节点上设置 `on` 特性来监听手势即可。
+Weex 封装
了原生的触摸事件以提供手势系统。使用手势类似于在 Weex 
中使用事件,只需在节点上监听手势即可。
 
 ## 手势类型
 
@@ -56,6 +56,10 @@ Weex 封装
了原生的触摸事件以提供手势系统。使用手势类似于
 - `pageY`:触摸点相对于文档顶部边缘的 Y 轴坐标。
 - `screenX`:触摸点相对于屏幕左侧边缘的 X 轴坐标。
 - `screenY`:触摸点相对于屏幕顶部边缘的 Y 轴坐标。
+- `force`: 屏幕收到的按压力度,值的范围为 0~1
+>>> force 属性目前在支持 forceTouch iOS 设备才支持, iPhone 6s 
及更新的 iOS 设备
+
+[试一试](http://dotwe.org/vue/91b6929f4f9f97a099a30c516dc2db06)
 
 ## 约束
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/ee306b5a/source/wiki/gestures.md
--
diff --git a/source/wiki/gestures.md b/source/wiki/gestures.md
index cb3cb69..9e0f7b3 100644
--- a/source/wiki/gestures.md
+++ b/source/wiki/gestures.md
@@ -10,7 +10,7 @@ version: 2.1
 
 > Experiment Feature
 
-Weex encapsulates native touch events to provide a gesture system. Using 
gesture is similar to use event in Weex. Just set `on` attributes on a node to 
listen to gesture.
+Weex encapsulates native touch events to provide a gesture system. Using 
gesture is similar to use event in Weex.
 
 ## Type
 For now, there are four types of gestures:
@@ -52,6 +52,10 @@ The following properties can be used in gesture callback:
 * `pageY`. The Y coordinate of the touch pointer relative to the top of the 
document.
 * `screenX`. The X coordinate of the touch point relative to the left edge of 
the screen.
 * `screenY`. The Y coordinate of the touch point relative to the top edge of 
the screen.
+* `force`. A float value that represents the amount of pressure the user is 
applying to the touch surface. This is a value between 0.0 (no pressure) and 
1.0 (the maximum amount of pressure the hardware can recognize).
+>>> iOS only and force is included in iPhone 6S and later models
+
+[have a try](http://dotwe.org/vue/91b6929f4f9f97a099a30c516dc2db06)
 
 ## Constrain
 Currently, Weex Android do not support listening to gesture on `scroller`, 
`list` and `webview`, as it would lead a large amount of event conflicting.



[2/2] incubator-weex-site git commit: [doc] add force property and add examples (#90)

2018-03-06 Thread hanks
[doc] add force property and add examples (#90)


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

Branch: refs/heads/master
Commit: 23d960516a184886044fdbdec31581a613faf730
Parents: 60fc302 ee306b5
Author: Hanks 
Authored: Wed Mar 7 10:49:24 2018 +0800
Committer: Hanks 
Committed: Wed Mar 7 10:49:24 2018 +0800

--
 source/cn/wiki/gestures.md | 6 +-
 source/wiki/gestures.md| 6 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
--




[GitHub] incubator-weex issue #1050: [WEEX-239] add more download image interface for...

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

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





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




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




---


[GitHub] incubator-weex pull request #1050: [WEEX-239] add more download image interf...

2018-03-06 Thread acton393
GitHub user acton393 opened a pull request:

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

[WEEX-239] add more download image interface for imageloader

add more download image interface, you can obtain more details such as the 
progress of downloading image

Bug:239


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

$ git pull https://github.com/acton393/incubator-weex 
ios-feature-image-downloading

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

https://github.com/apache/incubator-weex/pull/1050.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 #1050


commit c994aa86d8335a6c6ea1dd58bcf55296391608a2
Author: acton393 
Date:   2018-03-06T12:06:17Z

[WEEX-239] add more download image interface for imageloader

  add more download image interface, you can obtain more details such as 
the progress of downloading image

Bug:239




---


[3/3] incubator-weex-site git commit: integrate the browsersync plugin

2018-03-06 Thread hanks
integrate the browsersync plugin


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

Branch: refs/heads/master
Commit: 60fc30223a19816abaf3b8ebac9ba7c1fd24c64d
Parents: 6f74ff0
Author: Hanks 
Authored: Tue Mar 6 18:20:57 2018 +0800
Committer: Hanks 
Committed: Tue Mar 6 18:20:57 2018 +0800

--
 README.md |9 +-
 _config.yml   |5 +
 _config_cn.yml|5 +
 package-lock.json | 3367 +---
 package.json  |3 +-
 5 files changed, 2898 insertions(+), 491 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/README.md
--
diff --git a/README.md b/README.md
index eef4d15..c99518d 100644
--- a/README.md
+++ b/README.md
@@ -7,14 +7,19 @@ This is the source code of Weex official website.
 
 ## Develop
 
-First you should install the [Node.js](https://nodejs.org/), then run:
+First you should install the [Node.js](https://nodejs.org/), and install 
dependencies:
 
 ```bash
 npm install
+```
+
+After that, you can start a web server to preview the website on your local 
machine.
+
+```bash
 npm run server
 ```
 
-It will start a server at `http://localhost:4000`.
+It will start a web server at `http://localhost:4000`. The pages will be 
updated automatically once you save the corresponding source file.
 
 ## Contribute
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/_config.yml
--
diff --git a/_config.yml b/_config.yml
index de23f5a..f4e5290 100644
--- a/_config.yml
+++ b/_config.yml
@@ -68,6 +68,11 @@ permalink_defaults:
 permalink: :lang/:title/
 new_post_name: :lang/:title.md
 
+browsersync:
+  logLevel: "warn"
+  ghostMode:
+scroll: true
+
 # Directory
 source_dir: source
 public_dir: public

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/_config_cn.yml
--
diff --git a/_config_cn.yml b/_config_cn.yml
index 5c430a6..82c8f13 100644
--- a/_config_cn.yml
+++ b/_config_cn.yml
@@ -66,6 +66,11 @@ permalink_defaults:
 permalink: :lang/:title/
 new_post_name: :lang/:title.md
 
+browsersync:
+  logLevel: "warn"
+  ghostMode:
+scroll: true
+
 # Directory
 source_dir: source
 public_dir: public



[1/3] incubator-weex-site git commit: integrate the browsersync plugin

2018-03-06 Thread hanks
Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 6f74ff0ca -> 60fc30223


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/package.json
--
diff --git a/package.json b/package.json
index 901dcf2..b6e5832 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
 "cheerio": "^1.0.0-rc.2",
 "hexo": "^3.3.9",
 "hexo-autoprefixer": "^1.0.0",
+"hexo-browsersync": "^0.3.0",
 "hexo-deployer-git": "^0.3.1",
 "hexo-generator-alias": "^0.1.3",
 "hexo-generator-archive": "^0.1.4",
@@ -30,4 +31,4 @@
 "hexo-toc": "^1.1.0",
 "uglify-js": "^3.3.7"
   }
-}
\ No newline at end of file
+}



[2/3] incubator-weex-site git commit: integrate the browsersync plugin

2018-03-06 Thread hanks
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/60fc3022/package-lock.json
--
diff --git a/package-lock.json b/package-lock.json
index 1f67267..d6c6afa 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2,17 +2,21 @@
   "name": "weex-site",
   "version": "0.0.0",
   "lockfileVersion": 1,
+  "requires": true,
   "dependencies": {
 "@types/node": {
   "version": "8.5.7",
   "resolved": "https://registry.npmjs.org/@types/node/-/node-8.5.7.tgz";,
   "integrity": 
"sha512-+1ZfzGIq8Y3EV7hPF7bs3i+Gi2mqYOiEGGRxGYPrn+hTYLMmzg+/5TkMkCHiRtLB38XSNvr/43aQ9+cUq4BbBg=="
 },
-"abab": {
-  "version": "1.0.4",
-  "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz";,
-  "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=",
-  "optional": true
+"JSONStream": {
+  "version": "1.3.2",
+  "resolved": 
"https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz";,
+  "integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=",
+  "requires": {
+"jsonparse": "1.3.1",
+"through": "2.3.8"
+  }
 },
 "abbrev": {
   "version": "1.1.1",
@@ -22,23 +26,27 @@
 "accepts": {
   "version": "1.3.4",
   "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz";,
-  "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8="
-},
-"acorn": {
-  "version": "2.7.0",
-  "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz";,
-  "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc="
+  "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=",
+  "requires": {
+"mime-types": "2.1.17",
+"negotiator": "0.6.1"
+  }
 },
-"acorn-globals": {
-  "version": "1.0.9",
-  "resolved": 
"https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz";,
-  "integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=",
-  "optional": true
+"after": {
+  "version": "0.8.2",
+  "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz";,
+  "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
 },
 "ajv": {
   "version": "5.5.2",
   "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz";,
-  "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU="
+  "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
+  "requires": {
+"co": "4.6.0",
+"fast-deep-equal": "1.0.0",
+"fast-json-stable-stringify": "2.0.0",
+"json-schema-traverse": "0.3.1"
+  }
 },
 "amdefine": {
   "version": "1.0.1",
@@ -48,7 +56,10 @@
 "ansi-red": {
   "version": "0.1.1",
   "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz";,
-  "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw="
+  "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=",
+  "requires": {
+"ansi-wrap": "0.1.0"
+  }
 },
 "ansi-regex": {
   "version": "2.1.1",
@@ -68,7 +79,11 @@
 "anymatch": {
   "version": "1.3.2",
   "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz";,
-  "integrity": 
"sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA=="
+  "integrity": 
"sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==",
+  "requires": {
+"micromatch": "2.3.11",
+"normalize-path": "2.1.1"
+  }
 },
 "aproba": {
   "version": "1.2.0",
@@ -83,17 +98,27 @@
 "are-we-there-yet": {
   "version": "1.1.4",
   "resolved": 
"https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz";,
-  "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0="
+  "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=",
+  "requires": {
+"delegates": "1.0.0",
+"readable-stream": "2.3.3"
+  }
 },
 "argparse": {
   "version": "1.0.9",
   "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz";,
-  "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY="
+  "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=",
+  "requires": {
+"sprintf-js": "1.0.3"
+  }
 },
 "arr-diff": {
   "version": "2.0.0",
   "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz";,
-  "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8="
+  "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
+  "requires": {
+"arr-flatten": "1.1.0"
+  }
 },
 "arr-flatten": {
   "version": "1.1.0",
@@ -115,6 +140,11 @@
   "resolved": 
"https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz";,
   "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM="
 },
+"arraybuffer.slice": {
+  "version": "0.0.7",
+  "resolved": 
"https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz";,
+  "integrity": 
"sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ

[GitHub] incubator-weex issue #1049: [WEEX-230][android] Weex Input Value Filter By D...

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

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





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




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




---


[GitHub] incubator-weex pull request #1049: [WEEX-230][android] Weex Input Value Filt...

2018-03-06 Thread gubaojian
GitHub user gubaojian opened a pull request:

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

[WEEX-230][android] Weex Input Value Filter By Diff Update

[WEEX-230][android] Weex Input Value Filter By Diff Update


http://rax.alibaba-inc.com/playground/08c38f41-49a9-4484-868e-8cd2da21c5cc

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

$ git pull https://github.com/gubaojian/incubator-weex 
release-0.18-input-filter-by-diff

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

https://github.com/apache/incubator-weex/pull/1049.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 #1049


commit a16bb9f3ade31feaeb28e8076f94d5b363f7bbda
Author: jianbai.gbj 
Date:   2018-03-06T09:01:00Z

[WEEX-230][android] Weex Input Value Filter By Diff Update




---