You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/09 08:38:42 UTC

[01/50] incubator-weex git commit: * [ios] revert nil placeholder value

Repository: incubator-weex
Updated Branches:
  refs/heads/release 717913371 -> 767d4eceb


* [ios] revert nil placeholder value


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

Branch: refs/heads/release
Commit: 05053f02559f9c6cabbfed8858ac4cb1fbb70eb1
Parents: 8eef91f
Author: acton393 <zh...@gmail.com>
Authored: Fri Sep 29 14:54:20 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Sep 29 14:54:20 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/05053f02/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 1183e38..90c29a1 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -376,7 +376,7 @@ WX_EXPORT_METHOD(@selector(save:))
 {
     NSString *placeholderSrc = self.placeholdSrc;
     
-    if (!placeholderSrc || [WXUtility isBlankString:placeholderSrc]) {
+    if ([WXUtility isBlankString:placeholderSrc]) {
         return;
     }
     


[34/50] incubator-weex git commit: * [ios] make WXTextView inherited from WXView

Posted by gu...@apache.org.
* [ios] make WXTextView inherited from WXView


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

Branch: refs/heads/release
Commit: 2c04586a9fbdfc8ae0c93798c04a726ec708ad3c
Parents: 52cfd68
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 18:24:00 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2c04586a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index 4653089..1470189 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -25,11 +25,12 @@
 #import "WXConvert.h"
 #import "WXRuleManager.h"
 #import "WXDefine.h"
+#import "WXView.h"
 #import <pthread/pthread.h>
 #import <CoreText/CoreText.h>
 
 // WXText is a non-public is not permitted
-@interface WXTextView : UIView
+@interface WXTextView : WXView
 @property (nonatomic, strong) NSTextStorage *textStorage;
 @end
 


[20/50] incubator-weex git commit: * [doc] update define ref to new version for vue

Posted by gu...@apache.org.
* [doc] update define ref to new version for vue


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

Branch: refs/heads/release
Commit: cf4dcd96eab7fe366d15af2b4ff656beaf803d88
Parents: b5e1fdf
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 14:10:20 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Oct 2 14:10:20 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/advanced/extend-to-ios.md | 4 ++--
 doc/source/references/advanced/extend-to-ios.md    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cf4dcd96/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md b/doc/source/cn/references/advanced/extend-to-ios.md
index bf949fd..3b3b54b 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -313,12 +313,12 @@ WeexSDK 0.9.5 之后支持了在 js 中直接调用 component 的方法,这里
 
   ```html
   <template>
-    <mycomponent id='mycomponent'></mycomponent>
+    <mycomponent ref='mycomponent'></mycomponent>
   </template>
   <script>
     module.exports = {
       created:function() {
-        this.$el('mycomponent').focus();
+        this.$refs.mycomponent.focus();
       }
     }
   </script>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cf4dcd96/doc/source/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-ios.md b/doc/source/references/advanced/extend-to-ios.md
index 9039754..02dc037 100644
--- a/doc/source/references/advanced/extend-to-ios.md
+++ b/doc/source/references/advanced/extend-to-ios.md
@@ -329,12 +329,12 @@ after your registration for your own custom component, now you can call it in yo
 
 ```html
 <template>
-  <mycomponent id='mycomponent'></mycomponent>
+  <mycomponent ref='mycomponent'></mycomponent>
 </template>
 <script>
   module.exports = {
     created: function() {
-      this.$el('mycomponent').focus();
+      this.$refs.mycomponent.focus();
     }
   }
 </script>


[38/50] incubator-weex git commit: * [doc] Fixed grammar glitches in set-up-env.

Posted by gu...@apache.org.
* [doc] Fixed grammar glitches in set-up-env.

Updated grammar and expression glitches in "Setup Development
Environment", also added dotWe link to the corresponding Chinese
version of this document.

Bug: WEEX-76


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

Branch: refs/heads/release
Commit: 64510dd46dbda33d8473610dfac257afb1c36b06
Parents: 4d0359e
Author: Jonathan Dong <do...@aliyun.com>
Authored: Wed Sep 27 23:05:46 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/guide/set-up-env.md |  4 ++--
 doc/source/guide/set-up-env.md    | 34 +++++++++++++++++-----------------
 2 files changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/64510dd4/doc/source/cn/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/set-up-env.md b/doc/source/cn/guide/set-up-env.md
index 48ae606..222495a 100644
--- a/doc/source/cn/guide/set-up-env.md
+++ b/doc/source/cn/guide/set-up-env.md
@@ -8,7 +8,7 @@ has_chapter_content: true
 
 # 搭建开发环境
 
-使用 dotWe 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发 Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行 Weex 开发。
+使用 [dotWe](http://dotwe.org/vue) 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发 Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行 Weex 开发。
 
 ## 第一步:安装依赖
 
@@ -129,4 +129,4 @@ $ weex create awesome-project
 </script>
 ```
 
-关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在 dotWe 写代码并随时预览。
+关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在 [dotWe](http://dotwe.org/vue) 写代码并随时预览。

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/64510dd4/doc/source/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/set-up-env.md b/doc/source/guide/set-up-env.md
index af52bb3..ac52367 100644
--- a/doc/source/guide/set-up-env.md
+++ b/doc/source/guide/set-up-env.md
@@ -1,68 +1,68 @@
 ---
-title: Set Up Development Environment 
+title: Setup Development Environment
 type: guide
 order: 1.1
 version: 2.1
 has_chapter_content: true
 ---
 
-# Set up development environment 
+# Setup Development Environment
 
 Using [dotWe](http://dotwe.org/vue) is a good choice, but if you want to develop locally on your own machine, you will need to set up your development environment.
 
 You will need Node.js and the [Weex CLI](https://github.com/weexteam/weex-toolkit).
 
-You can install Node using [nvm](https://github.com/creationix/nvm) (Simple bash script to manage multiple active node.js versions). Run the following commands in a Terminal after installing nvm:
+Install Node.js using [nvm](https://github.com/creationix/nvm) (Simple bash script to manage multiple active Node.js versions). Run the following commands in a terminal after installing nvm:
 
 ```bash
 $ nvm install 6.10.0
 $ nvm use 6.10.0
 ```
 
-Node.js comes with npm, which lets you install the Weex CLI.
+And `npm` comes with Node.js, with witch you can install the Weex command line tools.
 
-**NOTE: ** After the `weex-toolkit`1.0.8 version, the npm-shrinkwrap.json` npm5 specification has been added to lock the package dependencies, so the npm version <5 needs to be updated by` npm i npm @latest -g` npm version, please confirm whether the version is correct before use.
+**NOTE: ** After upgrading the `weex-toolkit` to v1.0.8, the `npm-shrinkwrap.json` npm 5 specification has been added to lock the package dependencies, it is needed to upgrade your npm version to 5 above by command: `npm install npm @latest -g` if your version is lower than this, please check your npm version before using it.
 
-Run the following command in a Terminal:
+Run the following commands in a terminal:
 
 ```bash
 $ npm install -g weex-toolkit
 $ weex -v
 ```
-You can use 'update@x.x.x' command to update specify version of weex-devtool,weex-previewer,weex-builder and weexpack
+You can use 'weex update <component>@x.x.x' to update weex-devtool, weex-previewer, weex-builder and weexpack to a specific version.
 ```
-weex update weex-devtool@latest //latest sign means install latest version
+weex update weex-devtool@latest // Here latest means to install the latest version
 ```
-**NOTE: ** If you get an error like "permission error", try installing with `sudo`.
 
+**NOTE: ** If you receive an error like "permission error", try another time with `sudo`.
 
-Then you can use the Weex command to verify that the installation is successful:
+Then you can use the Weex command to verify if the installation is successful:
 
 ![](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
 
 ### Generate a new Weex project
 
-You can use the CLI to generate a Weex project called "awesome-project". Run the following command in a Terminal:
+Use the command line tool to generate a Weex project called "awesome-project". Run the following command in a terminal:
 
 ```bash
 $ weex create awesome-project
 ```
 
-Then enter the awesome-project folder, the CLI has been for us to generate a standard project structure.
+Then enter the awesome-project folder, you will see a standard project skeleton has been generated.
 
 ### Usage
 
-We enter the awesome-project folder and install dependencies with the following commands:
+In the awesome-project folder, install dependencies with the following command:
 
 ```bash
 npm install
 ```
 
-Then we run `npm run serve` in root directory to start watch mode and static server.
+Then run `npm run serve` in root directory to start watching mode and static server.
 
-Finally, we can see the Weex page in `http://localhost:8080/index.html`.
+Finally, you can access the Weex page in `http://localhost:8080/index.html`.
 
-You can modify this page in `src/index.vue`. The code is shown below:
+This page can be modified in `src/index.vue`. The codes are shown below:
 
 ```html
 <template>
@@ -96,4 +96,4 @@ You can modify this page in `src/index.vue`. The code is shown below:
 </script>
 ```
 
-If you're curious to learn more about technical details, continue on to the next section. And don't forget to write code at [dotWe](http://dotwe.org) and preview at anytime.
+For more technical details, please continue to read the next section. And don't forget to write and preview your codes at [dotWe](http://dotwe.org/vue).


[07/50] incubator-weex git commit: * [android] fix android new Date() cannot get accuracy time [ISSUE ID] https://aone.alibaba-inc.com/issue/12636699?from=ak&

Posted by gu...@apache.org.
  * [android] fix android new Date() cannot get accuracy time
  [ISSUE ID] https://aone.alibaba-inc.com/issue/12636699?from=ak&


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

Branch: refs/heads/release
Commit: e8c1230b8068a54e30cb39d0e043af1fc0decf87
Parents: 70098ce
Author: yuhun-alibaba <to...@gmail.com>
Authored: Wed Sep 27 15:45:26 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Sun Oct 1 11:09:18 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e8c1230b/android/sdk/libs/armeabi/libweexjsc.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjsc.so b/android/sdk/libs/armeabi/libweexjsc.so
index b08a455..2cde143 100755
Binary files a/android/sdk/libs/armeabi/libweexjsc.so and b/android/sdk/libs/armeabi/libweexjsc.so differ


[39/50] incubator-weex git commit: * [ios] support accessibility magic Tap event

Posted by gu...@apache.org.
* [ios] support accessibility magic Tap event


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

Branch: refs/heads/release
Commit: 06d160befb9e708628fcf78ce2de3392c49939d8
Parents: 927cc65
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 15:09:01 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 .../WeexSDK/Sources/Component/WXComponent_internal.h |  2 ++
 ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m  | 15 ++++++++++++++-
 ios/sdk/WeexSDK/Sources/View/WXView.m                |  9 +++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/06d160be/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
index 5d9b687..f1163a9 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
+++ b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
@@ -72,6 +72,8 @@ typedef id (^WXDataBindingBlock)(NSDictionary *data, BOOL *needUpdate);
     NSString * _accessibilityHintContent; // hint for the action
     NSString * _testId;// just for auto-test
     
+    BOOL _accessibilityMagicTapEvent;
+    
     /**
      *  PseudoClass
      */

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/06d160be/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
index 6247f07..2c343f4 100644
--- a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
+++ b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
@@ -172,6 +172,7 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     WX_ADD_EVENT(touchmove, addTouchMoveEvent)
     WX_ADD_EVENT(touchend, addTouchEndEvent)
     WX_ADD_EVENT(touchcancel, addTouchCancelEvent)
+    WX_ADD_EVENT(accessibilityMagicTap, addAccessibilityMagicTapEvent)
     
     if(_isListenPseudoTouch) {
         self.touchGesture.listenPseudoTouch = YES;
@@ -200,7 +201,7 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     WX_REMOVE_EVENT(touchmove, removeTouchMoveEvent)
     WX_REMOVE_EVENT(touchend, removeTouchEndEvent)
     WX_REMOVE_EVENT(touchcancel, removeTouchCancelEvent)
-    
+    WX_REMOVE_EVENT(accessibilityMagicTap, removeAccessibilityMagicTapEvent)
     if(_isListenPseudoTouch) {
         self.touchGesture.listenPseudoTouch = NO;
     }
@@ -259,6 +260,18 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     [self checkRemoveTouchGesture];
 }
 
+#pragma mark - Accessibility Event
+
+- (void)addAccessibilityMagicTapEvent
+{
+    _accessibilityMagicTapEvent = YES;
+}
+
+- (void)removeAccessibilityMagicTapEvent
+{
+    _accessibilityMagicTapEvent = NO;
+}
+
 #pragma mark - Click Event
 
 - (void)addClickEvent

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/06d160be/ios/sdk/WeexSDK/Sources/View/WXView.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/View/WXView.m b/ios/sdk/WeexSDK/Sources/View/WXView.m
index 4619ef1..397ece3 100644
--- a/ios/sdk/WeexSDK/Sources/View/WXView.m
+++ b/ios/sdk/WeexSDK/Sources/View/WXView.m
@@ -20,6 +20,7 @@
 #import "WXView.h"
 #import "WXComponent.h"
 #import "WXLayer.h"
+#import "WXComponent_internal.h"
 
 @implementation WXView
 
@@ -61,4 +62,12 @@
     return nil;
 }
 
+- (BOOL)accessibilityPerformMagicTap
+{
+    if (self.wx_component->_accessibilityMagicTapEvent) {
+        [self.wx_component fireEvent:@"accessibilityPerformMagicTap" params:nil];
+    }
+    return [super accessibilityPerformMagicTap];
+}
+
 @end


[17/50] incubator-weex git commit: * [test] danger file log

Posted by gu...@apache.org.
* [test] danger file log


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

Branch: refs/heads/release
Commit: 5f16b33ce745b4840d4ca298a08859d275423e32
Parents: 587be0d
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 11:28:33 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 11:45:36 2017 +0800

----------------------------------------------------------------------
 dangerfile-android.js | 6 +++---
 dangerfile-ios.js     | 6 +++---
 dangerfile-jsfm.js    | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5f16b33c/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index f10dd94..0e2bf8a 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -91,18 +91,18 @@ if (!hasAndroidFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasAndroidFile-----------------------------:'+hasAndroidFile);
 if(hasAndroidFile){
   var runTestCmd='source ~/.bash_profile; '
     +'cd android; '
     +'./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true '
     +'-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m '
     +'-XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 '
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("android platform run unit test failed!");
   }
 }else{
-  message('has no android file changed,skip test!');
+  console.log('has no android file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5f16b33c/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index 007d830..eb48577 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -91,17 +91,17 @@ if (!hasIosFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasIosFile-----------------------------:'+hasIosFile);
 if(hasIosFile){
   var runTestCmd='source ~/.bash_profile; '
     +'xcodebuild -project ios/sdk/WeexSDK.xcodeproj test '
     +'-scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO '
     +'-destination "platform=iOS Simulator,name=iPhone 6"'
-  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("ios platform run unit test failed!");
   }
 }else{
-  message('has no ios file changed,skip test!');
+  console.log('has no ios file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5f16b33c/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index 71d6402..c9361c2 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -91,15 +91,15 @@ if (!hasJsfmFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasJsfmFile-----------------------------:'+hasJsfmFile);
 if(hasJsfmFile){
   var runTestCmd='source ~/.bash_profile; '
     + 'npm run build && npm run test'
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("jsfm run test failed!");
   }
 }else{
-  message('has no jsfm file changed,skip test!');
+  console.log('has no jsfm file changed!');
 }
 


[26/50] incubator-weex git commit: update so for jsf init exception

Posted by gu...@apache.org.
 update so for jsf init exception


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

Branch: refs/heads/release
Commit: cfd95b85b802c5a5ad9731162887a166e9c75b46
Parents: 66d8dde
Author: yuhun-alibaba <to...@gmail.com>
Authored: Wed Oct 4 13:13:50 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:03:14 2017 +0800

----------------------------------------------------------------------
 android/sdk/libs/armeabi/libweexjsb.so | Bin 22556 -> 22620 bytes
 android/sdk/libs/armeabi/libweexjsc.so | Bin 325664 -> 338160 bytes
 android/sdk/libs/armeabi/libweexjss.so | Bin 6754016 -> 6754016 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cfd95b85/android/sdk/libs/armeabi/libweexjsb.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjsb.so b/android/sdk/libs/armeabi/libweexjsb.so
index c46e857..4b13b06 100755
Binary files a/android/sdk/libs/armeabi/libweexjsb.so and b/android/sdk/libs/armeabi/libweexjsb.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cfd95b85/android/sdk/libs/armeabi/libweexjsc.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjsc.so b/android/sdk/libs/armeabi/libweexjsc.so
index 2cde143..12f6df2 100755
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/cfd95b85/android/sdk/libs/armeabi/libweexjss.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjss.so b/android/sdk/libs/armeabi/libweexjss.so
index 13e5bc6..0187882 100755
Binary files a/android/sdk/libs/armeabi/libweexjss.so and b/android/sdk/libs/armeabi/libweexjss.so differ


[44/50] incubator-weex git commit: Add Telegram Russian Community Group link

Posted by gu...@apache.org.
Add Telegram Russian Community Group link

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

Branch: refs/heads/release
Commit: 4b3f0e071c697efe513179582de1b221d401c7aa
Parents: 1d2d39a
Author: Ivan Boldyrev <ib...@gmail.com>
Authored: Thu Sep 28 22:08:00 2017 +0300
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 README.md | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4b3f0e07/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 6f82038..ded537a 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,7 @@ See more stuff on [this wiki page](https://github.com/alibaba/weex/wiki/Weex-Com
 * [SegmentFault (cn)](https://segmentfault.com/t/weex): 中文交流与讨论
 * [FAQ](https://weex.apache.org/faq.html)
 * [Articles (cn)](https://github.com/weexteam/article/issues): Weex 相关文章集合
+* [Telegram Russian Community Group](https://telegram.me/weex_ru)
 
 ## Contributing
 


[35/50] incubator-weex git commit: * [ios] fire accessibilityMagicTap Event

Posted by gu...@apache.org.
* [ios] fire accessibilityMagicTap Event


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

Branch: refs/heads/release
Commit: 52cfd68de679d7b0423ee2e7d2cab80b49d77b72
Parents: 06d160b
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 16:02:03 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/View/WXView.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/52cfd68d/ios/sdk/WeexSDK/Sources/View/WXView.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/View/WXView.m b/ios/sdk/WeexSDK/Sources/View/WXView.m
index 397ece3..5e099c3 100644
--- a/ios/sdk/WeexSDK/Sources/View/WXView.m
+++ b/ios/sdk/WeexSDK/Sources/View/WXView.m
@@ -65,7 +65,7 @@
 - (BOOL)accessibilityPerformMagicTap
 {
     if (self.wx_component->_accessibilityMagicTapEvent) {
-        [self.wx_component fireEvent:@"accessibilityPerformMagicTap" params:nil];
+        [self.wx_component fireEvent:@"accessibilityMagicTap" params:nil];
     }
     return [super accessibilityPerformMagicTap];
 }


[27/50] incubator-weex git commit: * [test] update travis , for message info

Posted by gu...@apache.org.
* [test] update travis , for message info


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

Branch: refs/heads/release
Commit: bb1dbef3575ea96f98a2110bd74b77ffba80cded
Parents: cfd95b8
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 14:34:13 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:34:13 2017 +0800

----------------------------------------------------------------------
 .travis.yml           | 4 +---
 dangerfile-android.js | 1 +
 dangerfile-ios.js     | 3 +++
 dangerfile-jsfm.js    | 1 +
 dangerfile.js         | 2 +-
 5 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb1dbef3/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index d0d6fd3..a7bca6f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,9 +60,7 @@ before_script:
 script:
   - |
     if [[ $TEST_SUITE = "android" ]]; then
-      cd android
-      ./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 &&
-      cd $TRAVIS_BUILD_DIR
+      npm run danger -- run --dangerfile ./dangerfile-android.js
     fi
   - |
     if [[ $TEST_SUITE = "jsfm" ]]; then

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb1dbef3/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index 06986df..51ca400 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -107,3 +107,4 @@ if(hasAndroidFile){
   message('has no android file changed.')
 }
 
+message('android test finished.')

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb1dbef3/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index e0c61e1..93c5a1e 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -106,3 +106,6 @@ if(hasIosFile){
   message('has no ios file changed.');
 }
 
+message('ios test finished.')
+
+

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb1dbef3/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index 45a6a3c..2f663bd 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -104,3 +104,4 @@ if(hasJsfmFile){
   message('has no jsfm file changed.');
 }
 
+message('jsfm test finished.')

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb1dbef3/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 2a7829f..248276a 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -461,7 +461,7 @@ function findBlameReviewers(fileToDeletedLinesMap, fileToNormalLinesMap, fileToB
     message("According to the blame info, we recommended " + names.join(' , ') + " to be the reviewers.")
   }
 }
-
+message('danger test finished.')
 /*
  * find reviewer end
  */


[08/50] incubator-weex git commit: * [android] add init fail case

Posted by gu...@apache.org.
 * [android] add init fail case


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

Branch: refs/heads/release
Commit: 122aae12d85f9008f9b775f50df7deae90b250be
Parents: 707605e
Author: zshshr <zh...@gmail.com>
Authored: Thu Sep 28 17:52:38 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Sun Oct 1 11:09:19 2017 +0800

----------------------------------------------------------------------
 android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java       | 3 ++-
 .../src/main/java/com/taobao/weex/bridge/WXBridgeManager.java    | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/122aae12/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 175e96e..3a287cc 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKEngine.java
@@ -141,7 +141,8 @@ public class WXSDKEngine {
 
   public static boolean isInitialized(){
     synchronized(mLock) {
-      return mIsInit;
+
+      return mIsInit && WXEnvironment.JsFrameworkInit;
     }
   }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/122aae12/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 ba13bed..16ac34b 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
@@ -895,12 +895,12 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   public int callAddElement(String instanceId, String ref,String dom,String index, String callback){
 
-    // if (WXEnvironment.isApkDebugable()) {
+    if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callNative::callAddElement >>>> instanceId:").append(instanceId)
               .append(", ref:").append(ref).append(", dom:").append(dom).append(", callback:").append(callback);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    // }
+    }
 
     if(mDestroyedInstanceId!=null && mDestroyedInstanceId.contains(instanceId)){
       return IWXBridge.DESTROY_INSTANCE;


[24/50] incubator-weex git commit: * [ios] make WXTextView inherited from WXView

Posted by gu...@apache.org.
* [ios] make WXTextView inherited from WXView


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

Branch: refs/heads/release
Commit: 9237765ddfed1f2aaec993a1fbc6de59f3c113ee
Parents: f7e2591
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 18:24:00 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Oct 3 18:24:00 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9237765d/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index 4653089..1470189 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -25,11 +25,12 @@
 #import "WXConvert.h"
 #import "WXRuleManager.h"
 #import "WXDefine.h"
+#import "WXView.h"
 #import <pthread/pthread.h>
 #import <CoreText/CoreText.h>
 
 // WXText is a non-public is not permitted
-@interface WXTextView : UIView
+@interface WXTextView : WXView
 @property (nonatomic, strong) NSTextStorage *textStorage;
 @end
 


[02/50] incubator-weex git commit: * [ios] fix perspective bug

Posted by gu...@apache.org.
* [ios] fix perspective 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/cfdaa679
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cfdaa679
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cfdaa679

Branch: refs/heads/release
Commit: cfdaa679a4123858325ad25a0efa473903aff134
Parents: 05053f0
Author: acton393 <zh...@gmail.com>
Authored: Fri Sep 29 16:18:38 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Sep 29 16:18:38 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTransform.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cfdaa679/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTransform.m b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
index 4bf202f..9e5c362 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
@@ -22,6 +22,7 @@
 #import "WXLength.h"
 #import "WXUtility.h"
 #import "WXSDKInstance.h"
+#import "WXConvert.h"
 
 @interface WXTransform()
 
@@ -174,7 +175,7 @@
     CATransform3D nativeTansform3D = CATransform3DIdentity;
     
     if (_perspective && !isinf(_perspective)) {
-        nativeTansform3D.m34 = -1.0/_perspective*[UIScreen mainScreen].scale;
+        nativeTansform3D.m34 = -1.0/_perspective;
     }
     if (!view || view.bounds.size.width <= 0 || view.bounds.size.height <= 0) {
         return nativeTansform3D;
@@ -339,7 +340,7 @@
 
 - (void)parsePerspective:(NSArray *)value
 {
-    _perspective = [value[0] doubleValue];
+    _perspective = [WXConvert WXPixelType:value[0] scaleFactor:self.weexInstance.pixelScaleFactor];
     if (_perspective <= 0 ) {
         _perspective = CGFLOAT_MAX;
     }


[48/50] incubator-weex git commit: Merge branch 'release-0.16' of https://git-wip-us.apache.org/repos/asf/incubator-weex into release-0.16

Posted by gu...@apache.org.
Merge branch 'release-0.16' of https://git-wip-us.apache.org/repos/asf/incubator-weex into release-0.16


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

Branch: refs/heads/release
Commit: 46226330b3c644841e3bec923fbdabb597077121
Parents: 762f66b bb1dbef
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 16:23:14 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:23:14 2017 +0800

----------------------------------------------------------------------

----------------------------------------------------------------------



[42/50] incubator-weex git commit: * [doc] update define ref to new version for vue

Posted by gu...@apache.org.
* [doc] update define ref to new version for vue


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

Branch: refs/heads/release
Commit: 927cc656426a808ea0c424e8dfe74a98356f6edc
Parents: b2fa4be
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 14:10:20 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/advanced/extend-to-ios.md | 4 ++--
 doc/source/references/advanced/extend-to-ios.md    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/927cc656/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md b/doc/source/cn/references/advanced/extend-to-ios.md
index bf949fd..3b3b54b 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -313,12 +313,12 @@ WeexSDK 0.9.5 之后支持了在 js 中直接调用 component 的方法,这里
 
   ```html
   <template>
-    <mycomponent id='mycomponent'></mycomponent>
+    <mycomponent ref='mycomponent'></mycomponent>
   </template>
   <script>
     module.exports = {
       created:function() {
-        this.$el('mycomponent').focus();
+        this.$refs.mycomponent.focus();
       }
     }
   </script>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/927cc656/doc/source/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-ios.md b/doc/source/references/advanced/extend-to-ios.md
index 9039754..02dc037 100644
--- a/doc/source/references/advanced/extend-to-ios.md
+++ b/doc/source/references/advanced/extend-to-ios.md
@@ -329,12 +329,12 @@ after your registration for your own custom component, now you can call it in yo
 
 ```html
 <template>
-  <mycomponent id='mycomponent'></mycomponent>
+  <mycomponent ref='mycomponent'></mycomponent>
 </template>
 <script>
   module.exports = {
     created: function() {
-      this.$el('mycomponent').focus();
+      this.$refs.mycomponent.focus();
     }
   }
 </script>


[43/50] incubator-weex git commit: [WEEX-74] Added Jira issue number as commit log title

Posted by gu...@apache.org.
[WEEX-74] Added Jira issue number as commit log title

As Apache Jira provides the function that can automatically connect
commit and Jira issue according to the issue number with specific
format, so added a new way in commit message title check regex to
allow this.

Removed the Merge title because we are not going to allow merge
and start to follow the rebase way.

Also updated error message to point to the correct URL.


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

Branch: refs/heads/release
Commit: 1d2d39aa63d21b1b82e6897100ca5dd498af6064
Parents: fd58942
Author: Jonathan Dong <do...@aliyun.com>
Authored: Wed Sep 27 23:18:51 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 scripts/commit-msg.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1d2d39aa/scripts/commit-msg.sh
----------------------------------------------------------------------
diff --git a/scripts/commit-msg.sh b/scripts/commit-msg.sh
index ff1a967..3a767cb 100755
--- a/scripts/commit-msg.sh
+++ b/scripts/commit-msg.sh
@@ -17,11 +17,11 @@
 # under the License.
 
 # Validate commit log
-commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|build|website|example|test|all)\] .{1,50}'
+commit_regex='[+*-] \[(android|ios|jsfm|html5|component|doc|build|website|example|test|all)\] .{1,50}|\[WEEX-[0-9]*\] .{1,50}'
 
 if ! grep -iqE "$commit_regex" "$1"; then
-    echo "ERROR: commit log format is not correct!"
-    echo "See https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#commit-log"
+    echo "ERROR: Incorrect commit log format, please refer to:"
+    echo "https://github.com/apache/incubator-weex/blob/master/CONTRIBUTING.md#commit-log"
     exit 1
 fi
 # FIXME no effect after editor (like vim) exits


[37/50] incubator-weex git commit: * [test] add danger message

Posted by gu...@apache.org.
* [test]  add danger message


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

Branch: refs/heads/release
Commit: 933de5cdbb6d8c15bf49e6bc9d4c1cec3809fe37
Parents: 456097f
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 13:44:28 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 dangerfile-android.js | 3 ++-
 dangerfile-ios.js     | 3 ++-
 dangerfile-jsfm.js    | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/933de5cd/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index 0e2bf8a..06986df 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -103,6 +103,7 @@ if(hasAndroidFile){
     fail("android platform run unit test failed!");
   }
 }else{
-  console.log('has no android file changed!');
+  console.log('has no android file changed.');
+  message('has no android file changed.')
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/933de5cd/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index eb48577..e0c61e1 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -102,6 +102,7 @@ if(hasIosFile){
     fail("ios platform run unit test failed!");
   }
 }else{
-  console.log('has no ios file changed!');
+  console.log('has no ios file changed.');
+  message('has no ios file changed.');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/933de5cd/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index c9361c2..45a6a3c 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -100,6 +100,7 @@ if(hasJsfmFile){
     fail("jsfm run test failed!");
   }
 }else{
-  console.log('has no jsfm file changed!');
+  console.log('has no jsfm file changed.');
+  message('has no jsfm file changed.');
 }
 


[09/50] incubator-weex git commit: delete debug condition

Posted by gu...@apache.org.
delete debug condition


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

Branch: refs/heads/release
Commit: 707605e1f6f95656eda77106a7361095f31802b9
Parents: b3d96fe
Author: 御魂 <we...@alibaba-inc.com>
Authored: Thu Sep 28 16:57:08 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Sun Oct 1 11:09:19 2017 +0800

----------------------------------------------------------------------
 android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/707605e1/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
index c4e4b96..1f2b4b1 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
@@ -114,6 +114,10 @@ public class WXLogUtils {
   }
 
   public static void d(String tag, String msg) {
+    if (!TextUtils.isEmpty(msg) && !TextUtils.isEmpty(tag)) {
+      log(tag, msg, LogLevel.DEBUG);
+    }
+
     if (WXEnvironment.isApkDebugable() && !TextUtils.isEmpty(msg) && WXEnvironment.sLogLevel.compare(LogLevel.DEBUG) >= 0) {
       Log.d(tag, msg);
 


[18/50] incubator-weex git commit: * [test] add danger message

Posted by gu...@apache.org.
* [test]  add danger message


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

Branch: refs/heads/release
Commit: be52f693f36c8966b4033c5572da018d4b0d02be
Parents: 5f16b33
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 13:44:28 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 13:44:28 2017 +0800

----------------------------------------------------------------------
 dangerfile-android.js | 3 ++-
 dangerfile-ios.js     | 3 ++-
 dangerfile-jsfm.js    | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/be52f693/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index 0e2bf8a..06986df 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -103,6 +103,7 @@ if(hasAndroidFile){
     fail("android platform run unit test failed!");
   }
 }else{
-  console.log('has no android file changed!');
+  console.log('has no android file changed.');
+  message('has no android file changed.')
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/be52f693/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index eb48577..e0c61e1 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -102,6 +102,7 @@ if(hasIosFile){
     fail("ios platform run unit test failed!");
   }
 }else{
-  console.log('has no ios file changed!');
+  console.log('has no ios file changed.');
+  message('has no ios file changed.');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/be52f693/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index c9361c2..45a6a3c 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -100,6 +100,7 @@ if(hasJsfmFile){
     fail("jsfm run test failed!");
   }
 }else{
-  console.log('has no jsfm file changed!');
+  console.log('has no jsfm file changed.');
+  message('has no jsfm file changed.');
 }
 


[33/50] incubator-weex git commit: * [doc] release note update for tag

Posted by gu...@apache.org.
* [doc]  release note update for tag


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

Branch: refs/heads/release
Commit: afb6476ffbdee5198b46c15b467b2282aa46abdc
Parents: e882091
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 18:33:31 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/releasenote.md | 4 ++--
 doc/source/releasenote.md    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/afb6476f/doc/source/cn/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/releasenote.md b/doc/source/cn/releasenote.md
index 971089e..d237fec 100644
--- a/doc/source/cn/releasenote.md
+++ b/doc/source/cn/releasenote.md
@@ -7,7 +7,7 @@ layout: post
 # Release Note
 
 
-## 0.16
+## v0.16
 -----
 * + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
 * + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
@@ -34,7 +34,7 @@ layout: post
 * * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
 * * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
 
-## 0.15
+## v0.15
 ------
 * + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
 * + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/afb6476f/doc/source/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/releasenote.md b/doc/source/releasenote.md
index 78736f0..fbfe14d 100644
--- a/doc/source/releasenote.md
+++ b/doc/source/releasenote.md
@@ -6,7 +6,7 @@ layout: post
 
 # Release Note
 
-## 0.16
+## v0.16
 -----
 * + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
 * + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
@@ -33,7 +33,7 @@ layout: post
 * * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
 * * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
 
-## 0.15
+## v0.15
 ------
 * + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
 * + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)


[41/50] incubator-weex git commit: * [test] revert travisci for android

Posted by gu...@apache.org.
* [test] revert travisci for android


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

Branch: refs/heads/release
Commit: 6492c33fe5679dd49fd44df66d6099b97f838449
Parents: 2c04586
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 12:22:16 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 .travis.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6492c33f/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index a7bca6f..d0d6fd3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,7 +60,9 @@ before_script:
 script:
   - |
     if [[ $TEST_SUITE = "android" ]]; then
-      npm run danger -- run --dangerfile ./dangerfile-android.js
+      cd android
+      ./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 &&
+      cd $TRAVIS_BUILD_DIR
     fi
   - |
     if [[ $TEST_SUITE = "jsfm" ]]; then


[25/50] incubator-weex git commit: * [test] revert travisci for android

Posted by gu...@apache.org.
* [test] revert travisci for android


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

Branch: refs/heads/release
Commit: 66d8ddef4b41fadd6a2f8a82296dc2d6e22f07da
Parents: 9237765
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 12:22:16 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 12:22:16 2017 +0800

----------------------------------------------------------------------
 .travis.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/66d8ddef/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index a7bca6f..d0d6fd3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,7 +60,9 @@ before_script:
 script:
   - |
     if [[ $TEST_SUITE = "android" ]]; then
-      npm run danger -- run --dangerfile ./dangerfile-android.js
+      cd android
+      ./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 &&
+      cd $TRAVIS_BUILD_DIR
     fi
   - |
     if [[ $TEST_SUITE = "jsfm" ]]; then


[46/50] incubator-weex git commit: * [test] update travis , for message info

Posted by gu...@apache.org.
* [test] update travis , for message info


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

Branch: refs/heads/release
Commit: 762f66b84f3976270d6fda60301063bf42aa5224
Parents: f2d6a33
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 14:34:13 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:39 2017 +0800

----------------------------------------------------------------------
 .travis.yml           | 4 +---
 dangerfile-android.js | 1 +
 dangerfile-ios.js     | 3 +++
 dangerfile-jsfm.js    | 1 +
 dangerfile.js         | 2 +-
 5 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/762f66b8/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index d0d6fd3..a7bca6f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,9 +60,7 @@ before_script:
 script:
   - |
     if [[ $TEST_SUITE = "android" ]]; then
-      cd android
-      ./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 &&
-      cd $TRAVIS_BUILD_DIR
+      npm run danger -- run --dangerfile ./dangerfile-android.js
     fi
   - |
     if [[ $TEST_SUITE = "jsfm" ]]; then

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/762f66b8/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index 06986df..51ca400 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -107,3 +107,4 @@ if(hasAndroidFile){
   message('has no android file changed.')
 }
 
+message('android test finished.')

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/762f66b8/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index e0c61e1..93c5a1e 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -106,3 +106,6 @@ if(hasIosFile){
   message('has no ios file changed.');
 }
 
+message('ios test finished.')
+
+

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/762f66b8/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index 45a6a3c..2f663bd 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -104,3 +104,4 @@ if(hasJsfmFile){
   message('has no jsfm file changed.');
 }
 
+message('jsfm test finished.')

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/762f66b8/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 2a7829f..248276a 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -461,7 +461,7 @@ function findBlameReviewers(fileToDeletedLinesMap, fileToNormalLinesMap, fileToB
     message("According to the blame info, we recommended " + names.join(' , ') + " to be the reviewers.")
   }
 }
-
+message('danger test finished.')
 /*
  * find reviewer end
  */


[49/50] incubator-weex git commit: Merge branch 'master' into release-0.16

Posted by gu...@apache.org.
Merge branch 'master' into release-0.16


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

Branch: refs/heads/release
Commit: cab09ceef683df551d505f0442aadbe0591ee14b
Parents: 4622633 cbe3682
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 16:59:51 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:59:51 2017 +0800

----------------------------------------------------------------------
 WeexSDK.podspec                                      |  2 +-
 .../Component/RecycleList/WXRecycleListComponent.m   |  7 -------
 .../Sources/Component/Recycler/WXRecyclerComponent.m |  7 -------
 ios/sdk/WeexSDK/Sources/Component/WXListComponent.m  |  7 -------
 .../WeexSDK/Sources/Component/WXScrollerComponent.m  | 15 +++++++--------
 ios/sdk/WeexSDK/Sources/Utility/WXDefine.h           |  2 +-
 6 files changed, 9 insertions(+), 31 deletions(-)
----------------------------------------------------------------------



[11/50] incubator-weex git commit: * [doc] release note update for tag

Posted by gu...@apache.org.
* [doc]  release note update for tag


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

Branch: refs/heads/release
Commit: 587be0dd6e13fbb4dec696d95c132774aeda4e34
Parents: ec4a4ca
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 18:33:31 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/releasenote.md | 4 ++--
 doc/source/releasenote.md    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/587be0dd/doc/source/cn/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/releasenote.md b/doc/source/cn/releasenote.md
index 971089e..d237fec 100644
--- a/doc/source/cn/releasenote.md
+++ b/doc/source/cn/releasenote.md
@@ -7,7 +7,7 @@ layout: post
 # Release Note
 
 
-## 0.16
+## v0.16
 -----
 * + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
 * + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
@@ -34,7 +34,7 @@ layout: post
 * * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
 * * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
 
-## 0.15
+## v0.15
 ------
 * + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
 * + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/587be0dd/doc/source/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/releasenote.md b/doc/source/releasenote.md
index 78736f0..fbfe14d 100644
--- a/doc/source/releasenote.md
+++ b/doc/source/releasenote.md
@@ -6,7 +6,7 @@ layout: post
 
 # Release Note
 
-## 0.16
+## v0.16
 -----
 * + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
 * + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
@@ -33,7 +33,7 @@ layout: post
 * * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
 * * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
 
-## 0.15
+## v0.15
 ------
 * + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
 * + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)


[45/50] incubator-weex git commit: * [doc] update release note

Posted by gu...@apache.org.
* [doc] update release note


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

Branch: refs/heads/release
Commit: 4d0359e450855b8b4eb284ff1ec8746209feff5f
Parents: 4b3f0e0
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 14:23:44 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/releasenote.md | 51 +++++++++++++++++++++++++++++++++++++++
 doc/source/releasenote.md    | 51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4d0359e4/doc/source/cn/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/releasenote.md b/doc/source/cn/releasenote.md
index bc69bba..971089e 100644
--- a/doc/source/cn/releasenote.md
+++ b/doc/source/cn/releasenote.md
@@ -6,6 +6,57 @@ layout: post
 
 # Release Note
 
+
+## 0.16
+-----
+* + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
+* + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
+* + new feature support save image to photo album ([547](https://github.com/apache/incubator-weex/pull/547) [575](https://github.com/apache/incubator-weex/pull/575) [544](https://github.com/apache/incubator-weex/pull/544))
+* + support `image.save` ([#575](https://github.com/apache/incubator-weex/pull/575)).
+* + optimize event binding and support mobile firefox, and also fix a lot of other things ([#606](https://github.com/apache/incubator-weex/pull/606)).
+* + Support js service in Rax DSL.
+* + Partial support of sending `ArrayBuffer` between js and native.
+* + Add basic support of `<recycle-list>`, both in Vue and Rax DSL.
+* + Support saving image to photo alubm in `image` [#547](https://github.com/apache/incubator-weex/pull/547)
+* + Support perspective features [#551](https://github.com/apache/incubator-weex/pull/551)
+* + New interface to performance tracing [#586](https://github.com/apache/incubator-weex/pull/586)
+* + Add the ability of FlatGUI, it can reduce the view hierarchy in `cell` [#643](https://github.com/apache/incubator-weex/pull/643)
+* + Support the `box-shadow` style for Android 4.3 and higher [#685](https://github.com/apache/incubator-weex/pull/685)
+* + Support float interval/delay in timer [#699](https://github.com/apache/incubator-weex/pull/699)
+* + New `recycle-list` compoent with hight performance and low memory cost [#726](https://github.com/apache/incubator-weex/pull/726)
+* * remove dependency about socketRocket dependency in iOS.
+* * fix coretext crash in iOS.
+* * fix toast view still pop while the page was destroyed in iOS.
+* * separate weex-vue-render into two parts: render core and plugins ([#533](https://github.com/apache/incubator-weex/pull/533)).
+* * Fix Jni crash due to emoji [#574](https://github.com/apache/incubator-weex/pull/574)
+* * Fix the lost refresh header of `list` in viewpager [#601](https://github.com/apache/incubator-weex/pull/601)
+* * Fix draw iconfont fail when first download iconfont [#625](https://github.com/apache/incubator-weex/pull/625)
+* * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
+* * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
+
+## 0.15
+------
+* + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
+* + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)
+* + Change default image quality to `WXImageQuality.AUTO` [#478](https://github.com/apache/incubator-weex/pull/478)
+* + Support the `scroll` event on horizontal scroller[#494](https://github.com/apache/incubator-weex/pull/494)
+* * Fix the console API to adapt JSC on Android. [#470](https://github.com/apache/incubator-weex/pull/470)
+* * Fix invalid call scrollToElement when has not option param [#491](https://github.com/apache/incubator-weex/pull/491)
+* * Fix the lines of `text` cannot be reset [#493](https://github.com/apache/incubator-weex/pull/493)
+* * Fix invalid init index on `slider` [#510](https://github.com/apache/incubator-weex/pull/510)
+* * Fix Memory optimization for `list` [#512](https://github.com/apache/incubator-weex/pull/512)
+
+## v0.14
+------
+* + support `waterfall` component ([#438](https://github.com/apache/incubator-weex/pull/438)).
+* + support pseudo-class ([#474](https://github.com/apache/incubator-weex/pull/474)).
+* + Support component method in Vue DSL. ([proposal](https://github.com/alibaba/weex/issues/969))
+* + Support returning value synchronously for module methods. ([proposal](https://github.com/alibaba/weex/issues/1677))
+* + Support drag-drop on `list` [#416](https://github.com/apache/incubator-weex/pull/416)
+* + Support rotateX and rotateY, optimize animation as well [#418](https://github.com/apache/incubator-weex/pull/418)
+* * Fix wrong vertical offset in scroll event on `waterfall` [#424](https://github.com/apache/incubator-weex/pull/424)
+* * Fix `clearTimeout` and `clearInterval` doesn't work when funId is greater than 127 [#439](https://github.com/apache/incubator-weex/pull/439)
+
 ## v0.13.0
 ------
 ### Notable Changes

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4d0359e4/doc/source/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/releasenote.md b/doc/source/releasenote.md
index bc69bba..78736f0 100644
--- a/doc/source/releasenote.md
+++ b/doc/source/releasenote.md
@@ -6,6 +6,57 @@ layout: post
 
 # Release Note
 
+## 0.16
+-----
+* + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
+* + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
+* + new feature support save image to photo album ([547](https://github.com/apache/incubator-weex/pull/547) [575](https://github.com/apache/incubator-weex/pull/575) [544](https://github.com/apache/incubator-weex/pull/544))
+* + support `image.save` ([#575](https://github.com/apache/incubator-weex/pull/575)).
+* + optimize event binding and support mobile firefox, and also fix a lot of other things ([#606](https://github.com/apache/incubator-weex/pull/606)).
+* + Support js service in Rax DSL.
+* + Partial support of sending `ArrayBuffer` between js and native.
+* + Add basic support of `<recycle-list>`, both in Vue and Rax DSL.
+* + Support saving image to photo alubm in `image` [#547](https://github.com/apache/incubator-weex/pull/547)
+* + Support perspective features [#551](https://github.com/apache/incubator-weex/pull/551)
+* + New interface to performance tracing [#586](https://github.com/apache/incubator-weex/pull/586)
+* + Add the ability of FlatGUI, it can reduce the view hierarchy in `cell` [#643](https://github.com/apache/incubator-weex/pull/643)
+* + Support the `box-shadow` style for Android 4.3 and higher [#685](https://github.com/apache/incubator-weex/pull/685)
+* + Support float interval/delay in timer [#699](https://github.com/apache/incubator-weex/pull/699)
+* + New `recycle-list` compoent with hight performance and low memory cost [#726](https://github.com/apache/incubator-weex/pull/726)
+* * remove dependency about socketRocket dependency in iOS.
+* * fix coretext crash in iOS.
+* * fix toast view still pop while the page was destroyed in iOS.
+* * separate weex-vue-render into two parts: render core and plugins ([#533](https://github.com/apache/incubator-weex/pull/533)).
+* * Fix Jni crash due to emoji [#574](https://github.com/apache/incubator-weex/pull/574)
+* * Fix the lost refresh header of `list` in viewpager [#601](https://github.com/apache/incubator-weex/pull/601)
+* * Fix draw iconfont fail when first download iconfont [#625](https://github.com/apache/incubator-weex/pull/625)
+* * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
+* * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
+
+## 0.15
+------
+* + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
+* + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)
+* + Change default image quality to `WXImageQuality.AUTO` [#478](https://github.com/apache/incubator-weex/pull/478)
+* + Support the `scroll` event on horizontal scroller[#494](https://github.com/apache/incubator-weex/pull/494)
+* * Fix the console API to adapt JSC on Android. [#470](https://github.com/apache/incubator-weex/pull/470)
+* * Fix invalid call scrollToElement when has not option param [#491](https://github.com/apache/incubator-weex/pull/491)
+* * Fix the lines of `text` cannot be reset [#493](https://github.com/apache/incubator-weex/pull/493)
+* * Fix invalid init index on `slider` [#510](https://github.com/apache/incubator-weex/pull/510)
+* * Fix Memory optimization for `list` [#512](https://github.com/apache/incubator-weex/pull/512)
+
+## v0.14
+------
+* + support `waterfall` component ([#438](https://github.com/apache/incubator-weex/pull/438)).
+* + support pseudo-class ([#474](https://github.com/apache/incubator-weex/pull/474)).
+* + Support component method in Vue DSL. ([proposal](https://github.com/alibaba/weex/issues/969))
+* + Support returning value synchronously for module methods. ([proposal](https://github.com/alibaba/weex/issues/1677))
+* + Support drag-drop on `list` [#416](https://github.com/apache/incubator-weex/pull/416)
+* + Support rotateX and rotateY, optimize animation as well [#418](https://github.com/apache/incubator-weex/pull/418)
+* * Fix wrong vertical offset in scroll event on `waterfall` [#424](https://github.com/apache/incubator-weex/pull/424)
+* * Fix `clearTimeout` and `clearInterval` doesn't work when funId is greater than 127 [#439](https://github.com/apache/incubator-weex/pull/439)
+
+
 ## v0.13.0
 ------
 ### Notable Changes


[12/50] incubator-weex git commit: * [doc] update branch flow

Posted by gu...@apache.org.
* [doc] update branch flow


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

Branch: refs/heads/release
Commit: ec4a4ca1532931c2043dd02961ebf12273879f7a
Parents: 5a65cc7
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 19:33:32 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 CONTRIBUTING.md | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ec4a4ca1/CONTRIBUTING.md
----------------------------------------------------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a688622..e30a65c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -17,20 +17,20 @@ Besides Weex dev mailing list, we also have some other mailing lists for you. Yo
 ## Branch Management
 
 ```
-master
+release
  ↑
-dev         <--- PR(hotfix/typo/3rd-PR)
+master         <--- PR(hotfix/typo/3rd-PR)
  ↑ PR
-{domain}-feature-{date}
+{domain}-feature-{point}
 ```
 
-0. `master` branch
-    0. `master` is the latest (pre-)release branch.
-0. `dev` branch
-    0. `dev` is the stable developing branch.
-    0. ***It's RECOMMENDED to commit hotfix (like typo) or feature PR to `dev`***.
-0. `{domain}-feature-{date}` branch
-    0. The branch for a developing iteration, e.g. `android-feature-20160607` is an android developing iteration which is done at 2016.06.07. `{domain}` consists of `android`, `ios`, `jsfm` and `html5`. 
+0. `release` branch
+    0. `release ` is the latest release branch.
+0. `master ` branch
+    0. `master ` is the stable developing branch.
+    0. ***It's RECOMMENDED to commit hotfix (like typo) or feature PR to `master `***.
+0. `{domain}-feature-{point}` branch
+    0. The branch for a developing iteration, e.g. `android-feature-list-update` is an android developing iteration which is for list update. `{domain}` consists of `android`, `ios`, `jsfm` and `html5`. 
     0. **DO NOT commit any PR to such a branch**.
 
 ### Branch Name 


[23/50] incubator-weex git commit: * [ios] fire accessibilityMagicTap Event

Posted by gu...@apache.org.
* [ios] fire accessibilityMagicTap Event


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

Branch: refs/heads/release
Commit: f7e2591c44257208ad3f4799bb080e2364776492
Parents: ddadd54
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 16:02:03 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Oct 3 16:02:03 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/View/WXView.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f7e2591c/ios/sdk/WeexSDK/Sources/View/WXView.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/View/WXView.m b/ios/sdk/WeexSDK/Sources/View/WXView.m
index 397ece3..5e099c3 100644
--- a/ios/sdk/WeexSDK/Sources/View/WXView.m
+++ b/ios/sdk/WeexSDK/Sources/View/WXView.m
@@ -65,7 +65,7 @@
 - (BOOL)accessibilityPerformMagicTap
 {
     if (self.wx_component->_accessibilityMagicTapEvent) {
-        [self.wx_component fireEvent:@"accessibilityPerformMagicTap" params:nil];
+        [self.wx_component fireEvent:@"accessibilityMagicTap" params:nil];
     }
     return [super accessibilityPerformMagicTap];
 }


[47/50] incubator-weex git commit: update so for jsf init exception

Posted by gu...@apache.org.
 update so for jsf init exception


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

Branch: refs/heads/release
Commit: f2d6a33be7ced318b06e273f60eaa6a8a26edf39
Parents: 6492c33
Author: yuhun-alibaba <to...@gmail.com>
Authored: Wed Oct 4 13:13:50 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:39 2017 +0800

----------------------------------------------------------------------
 android/sdk/libs/armeabi/libweexjsb.so | Bin 22556 -> 22620 bytes
 android/sdk/libs/armeabi/libweexjsc.so | Bin 325664 -> 338160 bytes
 android/sdk/libs/armeabi/libweexjss.so | Bin 6754016 -> 6754016 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f2d6a33b/android/sdk/libs/armeabi/libweexjsb.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjsb.so b/android/sdk/libs/armeabi/libweexjsb.so
index c46e857..4b13b06 100755
Binary files a/android/sdk/libs/armeabi/libweexjsb.so and b/android/sdk/libs/armeabi/libweexjsb.so differ

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f2d6a33b/android/sdk/libs/armeabi/libweexjsc.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjsc.so b/android/sdk/libs/armeabi/libweexjsc.so
index 2cde143..12f6df2 100755
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/f2d6a33b/android/sdk/libs/armeabi/libweexjss.so
----------------------------------------------------------------------
diff --git a/android/sdk/libs/armeabi/libweexjss.so b/android/sdk/libs/armeabi/libweexjss.so
index 13e5bc6..0187882 100755
Binary files a/android/sdk/libs/armeabi/libweexjss.so and b/android/sdk/libs/armeabi/libweexjss.so differ


[36/50] incubator-weex git commit: * [test] danger file log

Posted by gu...@apache.org.
* [test] danger file log


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

Branch: refs/heads/release
Commit: 456097f812ccad78f4e6b6e4451e30327ec6c264
Parents: afb6476
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 11:28:33 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 dangerfile-android.js | 6 +++---
 dangerfile-ios.js     | 6 +++---
 dangerfile-jsfm.js    | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index f10dd94..0e2bf8a 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -91,18 +91,18 @@ if (!hasAndroidFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasAndroidFile-----------------------------:'+hasAndroidFile);
 if(hasAndroidFile){
   var runTestCmd='source ~/.bash_profile; '
     +'cd android; '
     +'./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true '
     +'-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m '
     +'-XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 '
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("android platform run unit test failed!");
   }
 }else{
-  message('has no android file changed,skip test!');
+  console.log('has no android file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index 007d830..eb48577 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -91,17 +91,17 @@ if (!hasIosFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasIosFile-----------------------------:'+hasIosFile);
 if(hasIosFile){
   var runTestCmd='source ~/.bash_profile; '
     +'xcodebuild -project ios/sdk/WeexSDK.xcodeproj test '
     +'-scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO '
     +'-destination "platform=iOS Simulator,name=iPhone 6"'
-  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("ios platform run unit test failed!");
   }
 }else{
-  message('has no ios file changed,skip test!');
+  console.log('has no ios file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index 71d6402..c9361c2 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -91,15 +91,15 @@ if (!hasJsfmFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasJsfmFile-----------------------------:'+hasJsfmFile);
 if(hasJsfmFile){
   var runTestCmd='source ~/.bash_profile; '
     + 'npm run build && npm run test'
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("jsfm run test failed!");
   }
 }else{
-  message('has no jsfm file changed,skip test!');
+  console.log('has no jsfm file changed!');
 }
 


[22/50] incubator-weex git commit: * [android] add init jsf exception collection if init framework fail, will collect info and upload

Posted by gu...@apache.org.
 * [android] add init jsf exception collection
 if init framework fail, will collect info and upload


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

Branch: refs/heads/release
Commit: e0fea1699c3529fd4ddd21d44ab6ff9b7826cfdd
Parents: 122aae1
Author: yuhun-alibaba <to...@gmail.com>
Authored: Tue Oct 3 15:04:44 2017 +0800
Committer: yuhun-alibaba <to...@gmail.com>
Committed: Tue Oct 3 15:04:44 2017 +0800

----------------------------------------------------------------------
 .../com/taobao/weex/bridge/WXBridgeManager.java | 122 +++++++++++++------
 1 file changed, 88 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e0fea169/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 16ac34b..d1ea794 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
@@ -64,7 +64,9 @@ import com.taobao.weex.utils.batch.Interceptor;
 
 import java.io.BufferedReader;
 import java.io.File;
+import java.io.FileInputStream;
 import java.io.FileReader;
+import java.io.InputStreamReader;
 import java.lang.reflect.Constructor;
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
@@ -139,6 +141,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   private static String crashUrl = null;
   private static long lastCrashTime = 0;
+  public static final String INITLOGFILE = "/jsserver_start.log";
 
 
   /**
@@ -433,7 +436,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
     // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callNative >>>> instanceId:").append(instanceId)
           .append(", tasks:").append(tasks).append(", callback:").append(callback);
-      WXLogUtils.e(mLodBuilder.substring(0));
+      WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
     // }
 
@@ -495,7 +498,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
   public int callCreateBody(String instanceId, String tasks, String callback) {
     if (TextUtils.isEmpty(tasks)) {
       // if (WXEnvironment.isApkDebugable()) {
-        WXLogUtils.e("[WXBridgeManager] callCreateBody: call CreateBody tasks is null");
+        WXLogUtils.d("[WXBridgeManager] callCreateBody: call CreateBody tasks is null");
       // }
       commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_DOM_CREATEBODY,"[WXBridgeManager] callCreateBody: call CreateBody tasks is null");
       return IWXBridge.INSTANCE_RENDERING_ERROR;
@@ -987,7 +990,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
     long time = System.currentTimeMillis();
     if (crashUrl == null ||
             (crashUrl != null && !crashUrl.equals(aUrl)) ||
-            ((time - lastCrashTime) > 10000)) {
+            ((time - lastCrashTime) > 15000)) {
       crashUrl = aUrl;
       lastCrashTime = time;
       return true;
@@ -1263,7 +1266,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
         }
         String err = "[WXBridgeManager] invokeRefreshInstance: framework.js uninitialized.";
         commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_INVOKE_NATIVE,err);
-        WXLogUtils.e(err);
+        WXLogUtils.d(err);
         return;
       }
       long start = System.currentTimeMillis();
@@ -1581,8 +1584,8 @@ public class WXBridgeManager implements Callback,BactchExecutor {
           commitJSFrameworkAlarmMonitor(IWXUserTrackAdapter.JS_FRAMEWORK, WXErrorCode.WX_SUCCESS, reinitInfo + "success");
         }else{
           if (reInitCount > 1) {
-            WXLogUtils.e("[WXBridgeManager] invokeInitFramework  ExecuteJavaScript fail");
-            String err="[WXBridgeManager] invokeInitFramework  ExecuteJavaScript fail reinit FrameWork";
+            WXLogUtils.e("[WXBridgeManager] invokeReInitFramework  ExecuteJavaScript fail");
+            String err="[WXBridgeManager] invokeReInitFramework  ExecuteJavaScript fail reinit FrameWork";
             commitJSFrameworkAlarmMonitor(IWXUserTrackAdapter.JS_FRAMEWORK, WXErrorCode.WX_ERR_JS_REINIT_FRAMEWORK, err);
           } else {
             WXLogUtils.e("[WXBridgeManager] invokeInitFramework  ExecuteJavaScript fail");
@@ -1777,7 +1780,7 @@ public class WXBridgeManager implements Callback,BactchExecutor {
   private void invokeRegisterModules(Map<String, Object> modules, List<Map<String, Object>> failReceiver) {
     if (modules == null || !isJSFrameworkInit()) {
       if (!isJSFrameworkInit()) {
-        WXLogUtils.e("[WXBridgeManager] invokeRegisterModules: framework.js uninitialized.");
+        WXLogUtils.d("[WXBridgeManager] invokeRegisterModules: framework.js uninitialized.");
       }
       failReceiver.add(modules);
       return;
@@ -1835,41 +1838,92 @@ public class WXBridgeManager implements Callback,BactchExecutor {
    */
   public void reportJSException(String instanceId, String function,
                                 String exception) {
-    if (WXEnvironment.isApkDebugable()) {
       WXLogUtils.e("reportJSException >>>> instanceId:" + instanceId
-                   + ", exception function:" + function + ", exception:"
-                   + exception);
-    }
-    WXSDKInstance instance;
-    if (instanceId != null && (instance = WXSDKManager.getInstance().getSDKInstance(instanceId)) != null) {
-      instance.onJSException(WXErrorCode.WX_ERR_JS_EXECUTE.getErrorCode(), function, exception);
+              + ", exception function:" + function + ", exception:"
+              + exception);
+	  WXSDKInstance instance = null;
+      if (instanceId != null && (instance = WXSDKManager.getInstance().getSDKInstance(instanceId)) != null) {
+          instance.onJSException(WXErrorCode.WX_ERR_JS_EXECUTE.getErrorCode(), function, exception);
 
-      if (METHOD_CREATE_INSTANCE.equals(function)) {
-        try {
-          if (reInitCount > 1 && !instance.isNeedReLoad()) {
-            // JSONObject domObject = JSON.parseObject(tasks);
-            WXDomModule domModule = getDomModule(instanceId);
-            Action action = Actions.getReloadPage(instanceId, true);
-            domModule.postAction((DOMAction)action, true);
-            instance.setNeedLoad(true);
-            return;
+          if (METHOD_CREATE_INSTANCE.equals(function)) {
+              try {
+                  if (reInitCount > 1 && !instance.isNeedReLoad()) {
+                      // JSONObject domObject = JSON.parseObject(tasks);
+                      WXDomModule domModule = getDomModule(instanceId);
+                      Action action = Actions.getReloadPage(instanceId, true);
+                      domModule.postAction((DOMAction) action, true);
+                      instance.setNeedLoad(true);
+                      return;
+                  }
+              } catch (Exception e) {
+                  e.printStackTrace();
+              }
           }
-        } catch (Exception e) {
-          e.printStackTrace();
-        }
+          String err = "function:" + function + "#exception:" + exception;
+          commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_JS_EXECUTE, err);
       }
-      String err = "function:" + function + "#exception:" + exception;
-      commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_JS_EXECUTE, err);
 
       IWXJSExceptionAdapter adapter = WXSDKManager.getInstance().getIWXJSExceptionAdapter();
       if (adapter != null) {
-        WXJSExceptionInfo jsException = new WXJSExceptionInfo(instanceId, instance.getBundleUrl(), WXErrorCode.WX_ERR_JS_EXECUTE.getErrorCode(), function, exception, null);
-        adapter.onJSException(jsException);
-        if (WXEnvironment.isApkDebugable()) {
-          WXLogUtils.d(jsException.toString());
-        }
+          String bundleUrl;
+          String exceptionId = instanceId;
+
+          if (instanceId == "" || instanceId == null) {
+              exceptionId = "instanceIdisNull";
+          }
+
+          if (instance == null) {
+              if (("initFramework").equals(function)) {
+                  bundleUrl = "jsExceptionBeforeRenderInstanceNull";
+                  String exceptionExt = null;
+                  try {
+                      if (WXEnvironment.getApplication() != null) {
+                          final String fileName = WXEnvironment.getApplication().getApplicationContext().getCacheDir().getPath() + INITLOGFILE;
+                          try {
+                              File file = new File(fileName);
+                              if (file.exists()) {
+                                  if (file.length() > 0) {
+                                      StringBuilder result = new StringBuilder();
+                                      try {
+                                          InputStreamReader read = new InputStreamReader(new FileInputStream(file), "UTF-8");
+                                          BufferedReader br = new BufferedReader(read);
+                                          String s = null;
+                                          while ((s = br.readLine()) != null) {
+                                              result.append(s + "\n");
+                                          }
+                                          exceptionExt = result.toString();
+                                          br.close();
+                                      } catch (Exception e) {
+                                          e.printStackTrace();
+                                      }
+                                  }
+                                  file.delete();
+                              }
+                          } catch (Throwable throwable) {
+
+                          }
+                      }
+                  } catch (Throwable e) {
+                      e.printStackTrace();
+                  }
+                  exception += "\n" + exceptionExt;
+                  WXLogUtils.e("reportJSException:" + exception);
+
+              } else if (function == null) {
+                  bundleUrl = "jsExceptionInstanceAndFunctionNull";
+              } else {
+                  bundleUrl = "jsExceptionInstanceNull" + function;
+              }
+          } else {
+              bundleUrl = instance.getBundleUrl();
+          }
+
+          WXJSExceptionInfo jsException = new WXJSExceptionInfo(exceptionId, bundleUrl, WXErrorCode.WX_ERR_JS_EXECUTE.getErrorCode(), function, exception, null);
+          adapter.onJSException(jsException);
+          if (WXEnvironment.isApkDebugable()) {
+              WXLogUtils.d(jsException.toString());
+          }
       }
-    }
   }
 
   public static class TimerInfo {


[06/50] incubator-weex git commit: + [android] add LogWatcher interface

Posted by gu...@apache.org.
+ [android] add LogWatcher interface


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

Branch: refs/heads/release
Commit: 3baa9e048928b8ada9ea9f2e88ab363a93e9b36e
Parents: e8c1230
Author: misakuo <mi...@apache.org>
Authored: Thu Sep 28 13:50:43 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Sun Oct 1 11:09:18 2017 +0800

----------------------------------------------------------------------
 .../main/java/com/taobao/weex/utils/WXLogUtils.java    | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3baa9e04/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
index 4f1b818..c4e4b96 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
@@ -41,6 +41,7 @@ public class WXLogUtils {
   private static StringBuilder builder = new StringBuilder(50);
   private static HashMap<String, Class> clazzMaps = new HashMap<>(2);
   private static JsLogWatcher jsLogWatcher;
+  private static LogWatcher sLogWatcher;
 
   static {
     clazzMaps.put(CLAZZ_NAME_DEBUG_TOOL, loadClass(CLAZZ_NAME_DEBUG_TOOL));
@@ -75,6 +76,9 @@ public class WXLogUtils {
       writeConsoleLog(level.getName(), msg);
       sendLog(level, msg);
     }
+    if (sLogWatcher != null) {
+      sLogWatcher.onLog(level.getName(), tag, msg);
+    }
   }
 
   public static void d(String msg) {
@@ -139,6 +143,7 @@ public class WXLogUtils {
         }
       }
       sendLog(LogLevel.DEBUG, tag + ":" + msg);
+      log(tag, msg, LogLevel.DEBUG);
     }
   }
 
@@ -298,7 +303,15 @@ public class WXLogUtils {
     jsLogWatcher = watcher;
   }
 
+  public static void setLogWatcher(LogWatcher watcher) {
+    sLogWatcher = watcher;
+  }
+
   public interface JsLogWatcher {
     void onJsLog(int level, String log);
   }
+
+  public interface LogWatcher {
+    void onLog(String level, String tag, String msg);
+  }
 }


[29/50] incubator-weex git commit: * [ios] adapter for iOS 11

Posted by gu...@apache.org.
* [ios] adapter for iOS 11


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

Branch: refs/heads/release
Commit: 840094a3b12d54f1ebe404235af045bf05701749
Parents: 66d8dde
Author: acton393 <zh...@gmail.com>
Authored: Tue Oct 3 18:48:30 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:55:39 2017 +0800

----------------------------------------------------------------------
 .../Component/RecycleList/WXRecycleListComponent.m   |  7 -------
 .../Sources/Component/Recycler/WXRecyclerComponent.m |  7 -------
 ios/sdk/WeexSDK/Sources/Component/WXListComponent.m  |  7 -------
 .../WeexSDK/Sources/Component/WXScrollerComponent.m  | 15 +++++++--------
 4 files changed, 7 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m b/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
index a1be149..71a52f5 100644
--- a/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/RecycleList/WXRecycleListComponent.m
@@ -101,13 +101,6 @@ WX_EXPORT_METHOD(@selector(scrollTo:options:))
     _collectionView.allowsMultipleSelection = NO;
     _collectionView.dataSource = self;
     _collectionView.delegate = self;
-#ifdef __IPHONE_11_0
-    if (@available(iOS 11.0, *)) {
-        _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    } else {
-        // Fallback on earlier versions
-    }
-#endif
     
     _templateManager.collectionView = _collectionView;
     _updateManager.collectionView = _collectionView;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
index 63cbf29..1164472 100644
--- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m
@@ -173,13 +173,6 @@ typedef enum : NSUInteger {
     
     _dragController.dragingCell = [[WXCollectionViewCell alloc] initWithFrame:CGRectMake(0, 0, 100, 100/2.0f)];
     _dragController.collectionView = _collectionView;
-#ifdef __IPHONE_11_0
-    if (@available(iOS 11.0, *)) {
-        _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    } else {
-        // Fallback on earlier versions
-    }
-#endif
     
     [self performUpdatesWithCompletion:^(BOOL finished) {
         

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
index f1b3361..cb9237f 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
@@ -155,13 +155,6 @@
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.userInteractionEnabled = YES;
-#ifdef __IPHONE_11_0
-    if (@available(iOS 11.0, *)) {
-        _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    } else {
-        // Fallback on earlier versions
-    }
-#endif
 }
 
 - (void)viewWillUnload

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/840094a3/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index d592a8c..5d4da0a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -26,6 +26,9 @@
 #import "WXUtility.h"
 #import "WXLoadingComponent.h"
 #import "WXRefreshComponent.h"
+@interface UIScrollView(UIScrollerView_ContentInsetAdjustmentBehavior)
+@property(nonatomic, assign)NSUInteger contentInsetAdjustmentBehavior;
+@end
 
 @interface WXScrollToTarget : NSObject
 
@@ -154,14 +157,10 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
     scrollView.pagingEnabled = _pagingEnabled;
     scrollView.alwaysBounceHorizontal = _alwaysScrollableHorizontal;
     scrollView.alwaysBounceVertical = _alwaysScrollableVertical;
-    
-#ifdef __IPHONE_11_0
-    if (@available(iOS 11.0, *)) {
-        scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
-    } else {
-        // Fallback on earlier versions
+    if (WX_SYS_VERSION_GREATER_THAN_OR_EQUAL_TO(@"11.0")) {
+        // now use the runtime to forbid the contentInset being Adjusted
+        scrollView.contentInsetAdjustmentBehavior = 2;
     }
-#endif
     
     if (self.ancestorScroller) {
         scrollView.scrollsToTop = NO;
@@ -522,7 +521,7 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
             distance = scrollView.contentOffset.y - _lastScrollEventFiredOffset.y;
         }
         if (fabs(distance) >= _offsetAccuracy) {
-            [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
+//            [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
             _lastScrollEventFiredOffset = scrollView.contentOffset;
         }
     }


[40/50] incubator-weex git commit: + [doc] update new feature documentation for image component

Posted by gu...@apache.org.
+ [doc] update new feature documentation for image component


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

Branch: refs/heads/release
Commit: b2fa4be101a525550652c85b2e84a279311fe9d7
Parents: 933de5c
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 10:28:38 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/components/image.md | 24 +++++++++++++++++++++++
 doc/source/references/components/image.md    | 22 +++++++++++++++++++++
 2 files changed, 46 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2fa4be1/doc/source/cn/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/image.md b/doc/source/cn/references/components/image.md
index bc675cb..c096a48 100644
--- a/doc/source/cn/references/components/image.md
+++ b/doc/source/cn/references/components/image.md
@@ -99,6 +99,30 @@ version: 2.1
 
   查看 [通用事件](../common-event.html)
 
+## 组件方法
+  <sup class="api-version">v0.16.0+</sup>
+  
+  - save:保存当前图片到本地
+    - 参数    
+      回调函数作为方法入参,接收保存结果.
+      ```
+     	var image = this.$refs.imageRef; // image 是之前已经定义过的ref
+  		image.save(function(result) {
+  			console.log(JSON.stringify(result))
+		}); 
+    	```
+    - 异步返回的数据描述
+     ```
+      	{
+    		"success" : true/false, // 保存成功或失败
+    		"errorDesc": "errordesc" // 在success 为false的情况会返回
+     	}
+     	```
+    - 说明
+      对于 iOS 系统需要添加 `NSPhotoLibraryAddUsageDescription`相册访问权限, iOS 11 需要再添加一个`NSPhotoLibraryAddUsageDescription`权限, [查看更多iOS系统权限](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
+      
+ [试一试](http://dotwe.org/vue/fadcd44a7031943ff0feaaf1895df414)
+
 ## 约束
 
 1. 需要指定宽高;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b2fa4be1/doc/source/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/image.md b/doc/source/references/components/image.md
index cd8c59b..d0f2520 100644
--- a/doc/source/references/components/image.md
+++ b/doc/source/references/components/image.md
@@ -47,6 +47,28 @@ This component supports no child components.
     - `success` : `true` if the image was loaded successfully, otherwise `false`
     - `size` : the original size of image, contains two parameters: `naturalWidth` representing the original width of image in pixels, `naturalHeight` representing the original height of image in pixels. default value. The default value for both parameters is `0`.
 
+**component method**
+
+- support save <sup class="api-version">v0.16.0+</sup> image to local device or photo album.
+  - you should specify a callback function to receive the saving result. 
+	  ```
+	 	var image = this.$refs.imageRef; // image 是之前已经定义过的ref
+	  		image.save(function(result) {
+	  			console.log(JSON.stringify(result))
+		}); 
+		```
+    	and the result can be the following format
+     ```
+      	{
+    		"success" : true/false, // 保存成功或失败
+    		"errorDesc": "errordesc" // 在success 为false的情况会返回
+     	}
+     ```
+  - note
+   you must add `NSPhotoLibraryAddUsageDescription` and `NSPhotoLibraryAddUsageDescription `(iOS 11) privacy to access photo album for iOS, [see more privacy](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
+ 
+ [try it for saving image](http://dotwe.org/vue/fadcd44a7031943ff0feaaf1895df414)
+
 ### Examples
 
 ```html


[16/50] incubator-weex git commit: Add Telegram Russian Community Group link

Posted by gu...@apache.org.
Add Telegram Russian Community Group link

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

Branch: refs/heads/release
Commit: 7791538dbfd14bc2357756a7f766a80dac0f4449
Parents: 383fe58
Author: Ivan Boldyrev <ib...@gmail.com>
Authored: Thu Sep 28 22:08:00 2017 +0300
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 README.md | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7791538d/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 6f82038..ded537a 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,7 @@ See more stuff on [this wiki page](https://github.com/alibaba/weex/wiki/Weex-Com
 * [SegmentFault (cn)](https://segmentfault.com/t/weex): 中文交流与讨论
 * [FAQ](https://weex.apache.org/faq.html)
 * [Articles (cn)](https://github.com/weexteam/article/issues): Weex 相关文章集合
+* [Telegram Russian Community Group](https://telegram.me/weex_ru)
 
 ## Contributing
 


[30/50] incubator-weex git commit: * [ios] update weexsdk version to 0.16.1

Posted by gu...@apache.org.
* [ios] update weexsdk version to 0.16.1


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

Branch: refs/heads/release
Commit: cbe368254d9f293e5496c58345aa64e422056e84
Parents: bfa7828
Author: gurisxie <27...@qq.com>
Authored: Wed Oct 4 15:15:02 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 15:15:02 2017 +0800

----------------------------------------------------------------------
 WeexSDK.podspec                            | 2 +-
 ios/sdk/WeexSDK/Sources/Utility/WXDefine.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cbe36825/WeexSDK.podspec
----------------------------------------------------------------------
diff --git a/WeexSDK.podspec b/WeexSDK.podspec
index 5cb6864..47f2085 100644
--- a/WeexSDK.podspec
+++ b/WeexSDK.podspec
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
 
   s.name         = "WeexSDK"
 
-  s.version      = "0.16.0"
+  s.version      = "0.16.1"
 
   s.summary      = "WeexSDK Source ."
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cbe36825/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
index 0867e99..48fe117 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXDefine.h
@@ -20,7 +20,7 @@
 #ifndef __WX_DEFINE_H__
 #define __WX_DEFINE_H__
 
-#define WX_SDK_VERSION @"0.16.0"
+#define WX_SDK_VERSION @"0.16.1"
 
 #if defined(__cplusplus)
 #define WX_EXTERN extern "C" __attribute__((visibility("default")))


[50/50] incubator-weex git commit: * [ios] bugfix scroll event not valid

Posted by gu...@apache.org.
* [ios] bugfix scroll event not valid


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

Branch: refs/heads/release
Commit: 767d4eceb57f1145cff42726ee16234cfa1abbcb
Parents: cab09ce
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 9 16:32:56 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 9 16:32:56 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/767d4ece/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index ae43cd6..88c934c 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -521,7 +521,7 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
             distance = scrollView.contentOffset.y - _lastScrollEventFiredOffset.y;
         }
         if (fabs(distance) >= _offsetAccuracy) {
-//            [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
+            [self fireEvent:@"scroll" params:@{@"contentSize":contentSizeData,@"contentOffset":contentOffsetData} domChanges:nil];
             _lastScrollEventFiredOffset = scrollView.contentOffset;
         }
     }


[05/50] incubator-weex git commit: * [ios] add config to clear data when did receive response

Posted by gu...@apache.org.
* [ios] add config to clear data when did receive response


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

Branch: refs/heads/release
Commit: 70098ce3a1871a40d8fca64ccddddcbb1be549b7
Parents: bf3ab44
Author: acton393 <zh...@gmail.com>
Authored: Sat Sep 30 17:38:18 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Sat Sep 30 17:38:18 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/70098ce3/ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m b/ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m
index e3b58fd..9015625 100644
--- a/ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m
+++ b/ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m
@@ -22,6 +22,8 @@
 #import "WXLog.h"
 #import "WXHandlerFactory.h"
 #import "WXSDKError.h"
+#import "WXConfigCenterProtocol.h"
+#import "WXSDKEngine.h"
 
 //deprecated
 #import "WXNetworkProtocol.h"
@@ -138,6 +140,14 @@
     WXLogDebug(@"request:%@ didReceiveResponse:%@ ", request, response);
     
     _response = response;
+    id<WXConfigCenterProtocol> configCenter = [WXSDKEngine handlerForProtocol:@protocol(WXConfigCenterProtocol)];
+    if ([configCenter respondsToSelector:@selector(configForKey:defaultValue:isDefault:)]) {
+        BOOL isDefault;
+        BOOL clearResponseData = [[configCenter configForKey:@"iOS_weex_ext_config.clearResponseDataWhenDidReceiveResponse" defaultValue:@(NO) isDefault:&isDefault] boolValue];
+        if(clearResponseData) {
+            _data = nil;
+        }
+    }
     
     if (self.onResponseReceived) {
         self.onResponseReceived(response);


[32/50] incubator-weex git commit: * [doc] update branch flow

Posted by gu...@apache.org.
* [doc] update branch flow


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

Branch: refs/heads/release
Commit: e88209120e0fd64dab7ff39c3775b93fa313c22e
Parents: 64510dd
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 19:33:32 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 CONTRIBUTING.md | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e8820912/CONTRIBUTING.md
----------------------------------------------------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a688622..e30a65c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -17,20 +17,20 @@ Besides Weex dev mailing list, we also have some other mailing lists for you. Yo
 ## Branch Management
 
 ```
-master
+release
  ↑
-dev         <--- PR(hotfix/typo/3rd-PR)
+master         <--- PR(hotfix/typo/3rd-PR)
  ↑ PR
-{domain}-feature-{date}
+{domain}-feature-{point}
 ```
 
-0. `master` branch
-    0. `master` is the latest (pre-)release branch.
-0. `dev` branch
-    0. `dev` is the stable developing branch.
-    0. ***It's RECOMMENDED to commit hotfix (like typo) or feature PR to `dev`***.
-0. `{domain}-feature-{date}` branch
-    0. The branch for a developing iteration, e.g. `android-feature-20160607` is an android developing iteration which is done at 2016.06.07. `{domain}` consists of `android`, `ios`, `jsfm` and `html5`. 
+0. `release` branch
+    0. `release ` is the latest release branch.
+0. `master ` branch
+    0. `master ` is the stable developing branch.
+    0. ***It's RECOMMENDED to commit hotfix (like typo) or feature PR to `master `***.
+0. `{domain}-feature-{point}` branch
+    0. The branch for a developing iteration, e.g. `android-feature-list-update` is an android developing iteration which is for list update. `{domain}` consists of `android`, `ios`, `jsfm` and `html5`. 
     0. **DO NOT commit any PR to such a branch**.
 
 ### Branch Name 


[28/50] incubator-weex git commit: * [ios] add prefix for category

Posted by gu...@apache.org.
* [ios] add prefix for category


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

Branch: refs/heads/release
Commit: bfa7828e1c0b30da1fc66ff0b47f5ca522c9319f
Parents: 840094a
Author: acton393 <zh...@gmail.com>
Authored: Wed Oct 4 12:33:52 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 14:55:39 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bfa7828e/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index 5d4da0a..ae43cd6 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -26,7 +26,7 @@
 #import "WXUtility.h"
 #import "WXLoadingComponent.h"
 #import "WXRefreshComponent.h"
-@interface UIScrollView(UIScrollerView_ContentInsetAdjustmentBehavior)
+@interface UIScrollView(WeexUIScrollerView_ContentInsetAdjustmentBehavior)
 @property(nonatomic, assign)NSUInteger contentInsetAdjustmentBehavior;
 @end
 


[04/50] incubator-weex git commit: * [ios] add delegate for WXBaseViewController

Posted by gu...@apache.org.
* [ios] add delegate for WXBaseViewController


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

Branch: refs/heads/release
Commit: bf3ab44e9f88b4e9896a3e8f343ef376afa28d8c
Parents: 2165b85
Author: acton393 <zh...@gmail.com>
Authored: Fri Sep 29 18:27:42 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Sep 29 18:27:42 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bf3ab44e/ios/sdk/WeexSDK/Sources/Controller/WXBaseViewController.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Controller/WXBaseViewController.h b/ios/sdk/WeexSDK/Sources/Controller/WXBaseViewController.h
index 34f710a..221c6c8 100644
--- a/ios/sdk/WeexSDK/Sources/Controller/WXBaseViewController.h
+++ b/ios/sdk/WeexSDK/Sources/Controller/WXBaseViewController.h
@@ -26,7 +26,7 @@
  * special bundle URL.
  */
 
-@interface WXBaseViewController : UIViewController
+@interface WXBaseViewController : UIViewController<UIGestureRecognizerDelegate>
 
 /**
  * @abstract initializes the viewcontroller with bundle url.


[31/50] incubator-weex git commit: check for test case fail

Posted by gu...@apache.org.
 check for test case fail


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

Branch: refs/heads/release
Commit: fd589427872b223a07d34f32d7965a48eeb08671
Parents: e0fea16
Author: yuhun-alibaba <to...@gmail.com>
Authored: Wed Oct 4 15:49:10 2017 +0800
Committer: yuhun-alibaba <to...@gmail.com>
Committed: Wed Oct 4 15:49:10 2017 +0800

----------------------------------------------------------------------
 .../src/test/java/com/taobao/weex/WXSDKEngineTest.java  | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fd589427/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java b/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
index a65f5bb..3d21b4c 100644
--- a/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
+++ b/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
@@ -67,7 +67,17 @@ public class WXSDKEngineTest {
   public void testInit() throws Exception {
     assertFalse(WXSDKEngine.isInitialized());
     WXSDKEngine.initialize(RuntimeEnvironment.application,null);
-    assertTrue(WXSDKEngine.isInitialized());
+
+    new Thread(){
+      public void run(){
+        try {
+          Thread.sleep(60000);
+          assertTrue(WXSDKEngine.isInitialized());
+        } catch (InterruptedException e) { }
+      }
+    }.start();
+
+
     //keep compatible
     WXSDKEngine.init(RuntimeEnvironment.application);
     WXSDKEngine.init(RuntimeEnvironment.application,null);


[19/50] incubator-weex git commit: + [doc] update new feature documentation for image component

Posted by gu...@apache.org.
+ [doc] update new feature documentation for image component


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

Branch: refs/heads/release
Commit: b5e1fdfd0ab3824258153e6f2ecbbf1af61c78c1
Parents: be52f69
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 10:28:38 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Oct 2 13:59:34 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/components/image.md | 24 +++++++++++++++++++++++
 doc/source/references/components/image.md    | 22 +++++++++++++++++++++
 2 files changed, 46 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b5e1fdfd/doc/source/cn/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/image.md b/doc/source/cn/references/components/image.md
index bc675cb..c096a48 100644
--- a/doc/source/cn/references/components/image.md
+++ b/doc/source/cn/references/components/image.md
@@ -99,6 +99,30 @@ version: 2.1
 
   查看 [通用事件](../common-event.html)
 
+## 组件方法
+  <sup class="api-version">v0.16.0+</sup>
+  
+  - save:保存当前图片到本地
+    - 参数    
+      回调函数作为方法入参,接收保存结果.
+      ```
+     	var image = this.$refs.imageRef; // image 是之前已经定义过的ref
+  		image.save(function(result) {
+  			console.log(JSON.stringify(result))
+		}); 
+    	```
+    - 异步返回的数据描述
+     ```
+      	{
+    		"success" : true/false, // 保存成功或失败
+    		"errorDesc": "errordesc" // 在success 为false的情况会返回
+     	}
+     	```
+    - 说明
+      对于 iOS 系统需要添加 `NSPhotoLibraryAddUsageDescription`相册访问权限, iOS 11 需要再添加一个`NSPhotoLibraryAddUsageDescription`权限, [查看更多iOS系统权限](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
+      
+ [试一试](http://dotwe.org/vue/fadcd44a7031943ff0feaaf1895df414)
+
 ## 约束
 
 1. 需要指定宽高;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b5e1fdfd/doc/source/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/image.md b/doc/source/references/components/image.md
index cd8c59b..d0f2520 100644
--- a/doc/source/references/components/image.md
+++ b/doc/source/references/components/image.md
@@ -47,6 +47,28 @@ This component supports no child components.
     - `success` : `true` if the image was loaded successfully, otherwise `false`
     - `size` : the original size of image, contains two parameters: `naturalWidth` representing the original width of image in pixels, `naturalHeight` representing the original height of image in pixels. default value. The default value for both parameters is `0`.
 
+**component method**
+
+- support save <sup class="api-version">v0.16.0+</sup> image to local device or photo album.
+  - you should specify a callback function to receive the saving result. 
+	  ```
+	 	var image = this.$refs.imageRef; // image 是之前已经定义过的ref
+	  		image.save(function(result) {
+	  			console.log(JSON.stringify(result))
+		}); 
+		```
+    	and the result can be the following format
+     ```
+      	{
+    		"success" : true/false, // 保存成功或失败
+    		"errorDesc": "errordesc" // 在success 为false的情况会返回
+     	}
+     ```
+  - note
+   you must add `NSPhotoLibraryAddUsageDescription` and `NSPhotoLibraryAddUsageDescription `(iOS 11) privacy to access photo album for iOS, [see more privacy](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
+ 
+ [try it for saving image](http://dotwe.org/vue/fadcd44a7031943ff0feaaf1895df414)
+
 ### Examples
 
 ```html


[15/50] incubator-weex git commit: * [doc] update release note

Posted by gu...@apache.org.
* [doc] update release note


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

Branch: refs/heads/release
Commit: 5b7516b94a677a2727ee88986e0f5c8cbe534236
Parents: 7791538
Author: gurisxie <27...@qq.com>
Authored: Sat Sep 30 14:23:44 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/releasenote.md | 51 +++++++++++++++++++++++++++++++++++++++
 doc/source/releasenote.md    | 51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b7516b9/doc/source/cn/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/releasenote.md b/doc/source/cn/releasenote.md
index bc69bba..971089e 100644
--- a/doc/source/cn/releasenote.md
+++ b/doc/source/cn/releasenote.md
@@ -6,6 +6,57 @@ layout: post
 
 # Release Note
 
+
+## 0.16
+-----
+* + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
+* + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
+* + new feature support save image to photo album ([547](https://github.com/apache/incubator-weex/pull/547) [575](https://github.com/apache/incubator-weex/pull/575) [544](https://github.com/apache/incubator-weex/pull/544))
+* + support `image.save` ([#575](https://github.com/apache/incubator-weex/pull/575)).
+* + optimize event binding and support mobile firefox, and also fix a lot of other things ([#606](https://github.com/apache/incubator-weex/pull/606)).
+* + Support js service in Rax DSL.
+* + Partial support of sending `ArrayBuffer` between js and native.
+* + Add basic support of `<recycle-list>`, both in Vue and Rax DSL.
+* + Support saving image to photo alubm in `image` [#547](https://github.com/apache/incubator-weex/pull/547)
+* + Support perspective features [#551](https://github.com/apache/incubator-weex/pull/551)
+* + New interface to performance tracing [#586](https://github.com/apache/incubator-weex/pull/586)
+* + Add the ability of FlatGUI, it can reduce the view hierarchy in `cell` [#643](https://github.com/apache/incubator-weex/pull/643)
+* + Support the `box-shadow` style for Android 4.3 and higher [#685](https://github.com/apache/incubator-weex/pull/685)
+* + Support float interval/delay in timer [#699](https://github.com/apache/incubator-weex/pull/699)
+* + New `recycle-list` compoent with hight performance and low memory cost [#726](https://github.com/apache/incubator-weex/pull/726)
+* * remove dependency about socketRocket dependency in iOS.
+* * fix coretext crash in iOS.
+* * fix toast view still pop while the page was destroyed in iOS.
+* * separate weex-vue-render into two parts: render core and plugins ([#533](https://github.com/apache/incubator-weex/pull/533)).
+* * Fix Jni crash due to emoji [#574](https://github.com/apache/incubator-weex/pull/574)
+* * Fix the lost refresh header of `list` in viewpager [#601](https://github.com/apache/incubator-weex/pull/601)
+* * Fix draw iconfont fail when first download iconfont [#625](https://github.com/apache/incubator-weex/pull/625)
+* * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
+* * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
+
+## 0.15
+------
+* + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
+* + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)
+* + Change default image quality to `WXImageQuality.AUTO` [#478](https://github.com/apache/incubator-weex/pull/478)
+* + Support the `scroll` event on horizontal scroller[#494](https://github.com/apache/incubator-weex/pull/494)
+* * Fix the console API to adapt JSC on Android. [#470](https://github.com/apache/incubator-weex/pull/470)
+* * Fix invalid call scrollToElement when has not option param [#491](https://github.com/apache/incubator-weex/pull/491)
+* * Fix the lines of `text` cannot be reset [#493](https://github.com/apache/incubator-weex/pull/493)
+* * Fix invalid init index on `slider` [#510](https://github.com/apache/incubator-weex/pull/510)
+* * Fix Memory optimization for `list` [#512](https://github.com/apache/incubator-weex/pull/512)
+
+## v0.14
+------
+* + support `waterfall` component ([#438](https://github.com/apache/incubator-weex/pull/438)).
+* + support pseudo-class ([#474](https://github.com/apache/incubator-weex/pull/474)).
+* + Support component method in Vue DSL. ([proposal](https://github.com/alibaba/weex/issues/969))
+* + Support returning value synchronously for module methods. ([proposal](https://github.com/alibaba/weex/issues/1677))
+* + Support drag-drop on `list` [#416](https://github.com/apache/incubator-weex/pull/416)
+* + Support rotateX and rotateY, optimize animation as well [#418](https://github.com/apache/incubator-weex/pull/418)
+* * Fix wrong vertical offset in scroll event on `waterfall` [#424](https://github.com/apache/incubator-weex/pull/424)
+* * Fix `clearTimeout` and `clearInterval` doesn't work when funId is greater than 127 [#439](https://github.com/apache/incubator-weex/pull/439)
+
 ## v0.13.0
 ------
 ### Notable Changes

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b7516b9/doc/source/releasenote.md
----------------------------------------------------------------------
diff --git a/doc/source/releasenote.md b/doc/source/releasenote.md
index bc69bba..78736f0 100644
--- a/doc/source/releasenote.md
+++ b/doc/source/releasenote.md
@@ -6,6 +6,57 @@ layout: post
 
 # Release Note
 
+## 0.16
+-----
+* + support 3d rotate ([#532](https://github.com/apache/incubator-weex/pull/532) [#418](https://github.com/apache/incubator-weex/pull/418))
+* + new feature support perspective function in transform ([#551](https://github.com/apache/incubator-weex/pull/551)[#532](https://github.com/apache/incubator-weex/pull/532))
+* + new feature support save image to photo album ([547](https://github.com/apache/incubator-weex/pull/547) [575](https://github.com/apache/incubator-weex/pull/575) [544](https://github.com/apache/incubator-weex/pull/544))
+* + support `image.save` ([#575](https://github.com/apache/incubator-weex/pull/575)).
+* + optimize event binding and support mobile firefox, and also fix a lot of other things ([#606](https://github.com/apache/incubator-weex/pull/606)).
+* + Support js service in Rax DSL.
+* + Partial support of sending `ArrayBuffer` between js and native.
+* + Add basic support of `<recycle-list>`, both in Vue and Rax DSL.
+* + Support saving image to photo alubm in `image` [#547](https://github.com/apache/incubator-weex/pull/547)
+* + Support perspective features [#551](https://github.com/apache/incubator-weex/pull/551)
+* + New interface to performance tracing [#586](https://github.com/apache/incubator-weex/pull/586)
+* + Add the ability of FlatGUI, it can reduce the view hierarchy in `cell` [#643](https://github.com/apache/incubator-weex/pull/643)
+* + Support the `box-shadow` style for Android 4.3 and higher [#685](https://github.com/apache/incubator-weex/pull/685)
+* + Support float interval/delay in timer [#699](https://github.com/apache/incubator-weex/pull/699)
+* + New `recycle-list` compoent with hight performance and low memory cost [#726](https://github.com/apache/incubator-weex/pull/726)
+* * remove dependency about socketRocket dependency in iOS.
+* * fix coretext crash in iOS.
+* * fix toast view still pop while the page was destroyed in iOS.
+* * separate weex-vue-render into two parts: render core and plugins ([#533](https://github.com/apache/incubator-weex/pull/533)).
+* * Fix Jni crash due to emoji [#574](https://github.com/apache/incubator-weex/pull/574)
+* * Fix the lost refresh header of `list` in viewpager [#601](https://github.com/apache/incubator-weex/pull/601)
+* * Fix draw iconfont fail when first download iconfont [#625](https://github.com/apache/incubator-weex/pull/625)
+* * Fix the problem of 'text-overflow:clip' [#718](https://github.com/apache/incubator-weex/pull/718)
+* * Fix android new Date() cannot get accuracy time [#753](https://github.com/apache/incubator-weex/pull/753)
+
+## 0.15
+------
+* + support fast click and hairlines border [#507](https://github.com/apache/incubator-weex/pull/507).
+* + Add `weex.supports` api for feature detections. [#6053](https://github.com/vuejs/vue/pull/6053)
+* + Change default image quality to `WXImageQuality.AUTO` [#478](https://github.com/apache/incubator-weex/pull/478)
+* + Support the `scroll` event on horizontal scroller[#494](https://github.com/apache/incubator-weex/pull/494)
+* * Fix the console API to adapt JSC on Android. [#470](https://github.com/apache/incubator-weex/pull/470)
+* * Fix invalid call scrollToElement when has not option param [#491](https://github.com/apache/incubator-weex/pull/491)
+* * Fix the lines of `text` cannot be reset [#493](https://github.com/apache/incubator-weex/pull/493)
+* * Fix invalid init index on `slider` [#510](https://github.com/apache/incubator-weex/pull/510)
+* * Fix Memory optimization for `list` [#512](https://github.com/apache/incubator-weex/pull/512)
+
+## v0.14
+------
+* + support `waterfall` component ([#438](https://github.com/apache/incubator-weex/pull/438)).
+* + support pseudo-class ([#474](https://github.com/apache/incubator-weex/pull/474)).
+* + Support component method in Vue DSL. ([proposal](https://github.com/alibaba/weex/issues/969))
+* + Support returning value synchronously for module methods. ([proposal](https://github.com/alibaba/weex/issues/1677))
+* + Support drag-drop on `list` [#416](https://github.com/apache/incubator-weex/pull/416)
+* + Support rotateX and rotateY, optimize animation as well [#418](https://github.com/apache/incubator-weex/pull/418)
+* * Fix wrong vertical offset in scroll event on `waterfall` [#424](https://github.com/apache/incubator-weex/pull/424)
+* * Fix `clearTimeout` and `clearInterval` doesn't work when funId is greater than 127 [#439](https://github.com/apache/incubator-weex/pull/439)
+
+
 ## v0.13.0
 ------
 ### Notable Changes


[13/50] incubator-weex git commit: [WEEX-74] Added Jira issue number as commit log title

Posted by gu...@apache.org.
[WEEX-74] Added Jira issue number as commit log title

As Apache Jira provides the function that can automatically connect
commit and Jira issue according to the issue number with specific
format, so added a new way in commit message title check regex to
allow this.

Removed the Merge title because we are not going to allow merge
and start to follow the rebase way.

Also updated error message to point to the correct URL.


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

Branch: refs/heads/release
Commit: 383fe587b176c2c5c87411ab9459ea2f1cdb1c12
Parents: 122aae1
Author: Jonathan Dong <do...@aliyun.com>
Authored: Wed Sep 27 23:18:51 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 scripts/commit-msg.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/383fe587/scripts/commit-msg.sh
----------------------------------------------------------------------
diff --git a/scripts/commit-msg.sh b/scripts/commit-msg.sh
index ff1a967..3a767cb 100755
--- a/scripts/commit-msg.sh
+++ b/scripts/commit-msg.sh
@@ -17,11 +17,11 @@
 # under the License.
 
 # Validate commit log
-commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|build|website|example|test|all)\] .{1,50}'
+commit_regex='[+*-] \[(android|ios|jsfm|html5|component|doc|build|website|example|test|all)\] .{1,50}|\[WEEX-[0-9]*\] .{1,50}'
 
 if ! grep -iqE "$commit_regex" "$1"; then
-    echo "ERROR: commit log format is not correct!"
-    echo "See https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#commit-log"
+    echo "ERROR: Incorrect commit log format, please refer to:"
+    echo "https://github.com/apache/incubator-weex/blob/master/CONTRIBUTING.md#commit-log"
     exit 1
 fi
 # FIXME no effect after editor (like vim) exits


[10/50] incubator-weex git commit: open debug log for exception

Posted by gu...@apache.org.
 open debug log for exception


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

Branch: refs/heads/release
Commit: b3d96fe09d371af73939bd388cad266481616ef1
Parents: 3baa9e0
Author: 御魂 <we...@alibaba-inc.com>
Authored: Thu Sep 28 15:58:18 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Sun Oct 1 11:09:19 2017 +0800

----------------------------------------------------------------------
 .../java/com/taobao/weex/WXSDKInstance.java     | 11 +++--
 .../java/com/taobao/weex/bridge/WXBridge.java   | 26 ++++++------
 .../com/taobao/weex/bridge/WXBridgeManager.java | 42 ++++++++++----------
 3 files changed, 40 insertions(+), 39 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b3d96fe0/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 427c9af..9b9e165 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
@@ -1043,9 +1043,8 @@ public class WXSDKInstance implements IWXActivityStateListener,DomContext, View.
       mWXPerformance.screenRenderTime =  time;
     }
     mWXPerformance.componentCount = WXComponent.mComponentNum;
-    if(WXEnvironment.isApkDebugable()) {
-      WXLogUtils.d(WXLogUtils.WEEX_PERF_TAG, "mComponentNum:" + WXComponent.mComponentNum);
-    }
+    WXLogUtils.d(WXLogUtils.WEEX_PERF_TAG, "mComponentNum:" + WXComponent.mComponentNum);
+
     WXComponent.mComponentNum = 0;
     if (mRenderListener != null && mContext != null) {
       runOnUiThread(new Runnable() {
@@ -1060,9 +1059,9 @@ public class WXSDKInstance implements IWXActivityStateListener,DomContext, View.
               performance.args=getBundleUrl();
               mUserTrackAdapter.commit(mContext,null,IWXUserTrackAdapter.JS_BRIDGE,performance,getUserTrackParams());
             }
-            if (WXEnvironment.isApkDebugable()) {
-              WXLogUtils.d(WXLogUtils.WEEX_PERF_TAG, mWXPerformance.toString());
-            }
+
+            WXLogUtils.d(WXLogUtils.WEEX_PERF_TAG, mWXPerformance.toString());
+
           }
         }
       });

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b3d96fe0/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 8d5bf6f..9d88fc2 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
@@ -91,9 +91,9 @@ class WXBridge implements IWXBridge {
       errorCode = WXBridgeManager.getInstance().callNative(instanceId, tasks, callback);
     }catch (Throwable e){
       //catch everything during call native.
-      if(WXEnvironment.isApkDebugable()){
+      // if(WXEnvironment.isApkDebugable()){
         WXLogUtils.e(TAG,"callNative throw exception:"+e.getMessage());
-      }
+      // }
     }
 
     if(instance != null) {
@@ -133,9 +133,9 @@ class WXBridge implements IWXBridge {
       errorCode = WXBridgeManager.getInstance().callCreateBody(instanceId, tasks, callback);
     }catch (Throwable e){
       //catch everything during call native.
-      if(WXEnvironment.isApkDebugable()){
+      // if(WXEnvironment.isApkDebugable()){
         WXLogUtils.e(TAG,"callCreateBody throw exception:"+e.getMessage());
-      }
+      // }
     }
     if(instance != null) {
       instance.callNativeTime(System.currentTimeMillis() - start);
@@ -160,20 +160,20 @@ class WXBridge implements IWXBridge {
       errorCode = WXBridgeManager.getInstance().callAddElement(instanceId, ref,dom,index, callback);
     }catch (Throwable e){
       //catch everything during call native.
-      if(WXEnvironment.isApkDebugable()){
+      // if(WXEnvironment.isApkDebugable()){
         e.printStackTrace();
         WXLogUtils.e(TAG,"callNative throw error:"+e.getMessage());
-      }
+      // }
     }
 
     if(instance != null) {
       instance.callNativeTime(System.currentTimeMillis() - start);
     }
-    if(WXEnvironment.isApkDebugable()){
+    // if(WXEnvironment.isApkDebugable()){
       if(errorCode == IWXBridge.DESTROY_INSTANCE){
         WXLogUtils.w("destroyInstance :"+instanceId+" JSF must stop callNative");
       }
-    }
+    // }
     return errorCode;
   }
 
@@ -273,6 +273,7 @@ class WXBridge implements IWXBridge {
    */
 
   public int callCreateFinish(String instanceId, byte [] tasks, String callback) {
+
     long start = System.currentTimeMillis();
     WXSDKInstance instance = WXSDKManager.getInstance().getSDKInstance(instanceId);
     if(instance != null) {
@@ -283,9 +284,9 @@ class WXBridge implements IWXBridge {
       errorCode = WXBridgeManager.getInstance().callCreateFinish(instanceId, callback);
     } catch (Throwable e) {
       //catch everything during call native.
-      if(WXEnvironment.isApkDebugable()){
+      // if(WXEnvironment.isApkDebugable()){
         WXLogUtils.e(TAG,"callCreateFinish throw exception:" + e.getMessage());
-      }
+      // }
     }
     if(instance != null) {
       instance.callNativeTime(System.currentTimeMillis() - start);
@@ -459,9 +460,9 @@ class WXBridge implements IWXBridge {
       errorCode = WXBridgeManager.getInstance().callAddEvent(instanceId, ref, event, callback);
     } catch (Throwable e) {
       //catch everything during call native.
-      if(WXEnvironment.isApkDebugable()){
+      // if(WXEnvironment.isApkDebugable()){
         WXLogUtils.e(TAG,"callAddEvent throw exception:" + e.getMessage());
-      }
+      // }
     }
     if(instance != null) {
       instance.callNativeTime(System.currentTimeMillis() - start);
@@ -499,6 +500,7 @@ class WXBridge implements IWXBridge {
   }
 
   public void reportServerCrash(String instanceId, String crashFile) {
+    WXLogUtils.e(TAG,"reportServerCrash instanceId:" + instanceId);
     int errorCode = IWXBridge.INSTANCE_RENDERING;
     try {
       errorCode = WXBridgeManager.getInstance().callReportCrashReloadPage(instanceId, crashFile);

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b3d96fe0/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 0d830b6..ba13bed 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
@@ -430,12 +430,12 @@ public class WXBridgeManager implements Callback,BactchExecutor {
       return IWXBridge.INSTANCE_RENDERING_ERROR;
     }
 
-    if (WXEnvironment.isApkDebugable()) {
+    // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callNative >>>> instanceId:").append(instanceId)
           .append(", tasks:").append(tasks).append(", callback:").append(callback);
-      WXLogUtils.d(mLodBuilder.substring(0));
+      WXLogUtils.e(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+    // }
 
     if(mDestroyedInstanceId!=null &&mDestroyedInstanceId.contains(instanceId)){
       return IWXBridge.DESTROY_INSTANCE;
@@ -494,19 +494,19 @@ public class WXBridgeManager implements Callback,BactchExecutor {
   // callCreateBody
   public int callCreateBody(String instanceId, String tasks, String callback) {
     if (TextUtils.isEmpty(tasks)) {
-      if (WXEnvironment.isApkDebugable()) {
+      // if (WXEnvironment.isApkDebugable()) {
         WXLogUtils.e("[WXBridgeManager] callCreateBody: call CreateBody tasks is null");
-      }
+      // }
       commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_DOM_CREATEBODY,"[WXBridgeManager] callCreateBody: call CreateBody tasks is null");
       return IWXBridge.INSTANCE_RENDERING_ERROR;
     }
 
-    if (WXEnvironment.isApkDebugable()) {
+    // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callCreateBody >>>> instanceId:").append(instanceId)
               .append(", tasks:").append(tasks).append(", callback:").append(callback);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+    // }
 
 
     if(mDestroyedInstanceId != null && mDestroyedInstanceId.contains(instanceId)){
@@ -578,12 +578,12 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   // callCreateFinish
   public int callCreateFinish(String instanceId, String callback) {
-    if (WXEnvironment.isApkDebugable()) {
+    // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callCreateFinish >>>> instanceId:").append(instanceId)
               .append(", callback:").append(callback);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+    // }
 
     if(mDestroyedInstanceId != null && mDestroyedInstanceId.contains(instanceId)) {
       return IWXBridge.DESTROY_INSTANCE;
@@ -704,14 +704,14 @@ public class WXBridgeManager implements Callback,BactchExecutor {
       commitJSBridgeAlarmMonitor(instanceId, WXErrorCode.WX_ERR_DOM_UPDATESTYLE,"[WXBridgeManager] callUpdateStyle: call UpdateStyle tasks is null");
       return IWXBridge.INSTANCE_RENDERING_ERROR;
     }
-    if (WXEnvironment.isApkDebugable()) {
+//    if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callUpdateStyle >>>> instanceId:").append(instanceId)
               .append(", ref:").append(ref)
               .append(", task:").append(task)
               .append(", callback:").append(callback);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+//    }
 
     if(mDestroyedInstanceId != null && mDestroyedInstanceId.contains(instanceId)) {
       return IWXBridge.DESTROY_INSTANCE;
@@ -821,13 +821,13 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   public int callAddEvent(String instanceId, String ref, String event, String callback) {
 
-    if (WXEnvironment.isApkDebugable()) {
+//    if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callAddEvent >>>> instanceId:").append(instanceId)
               .append(", ref:").append(ref)
               .append(", event:").append(event);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+//    }
 
     if(mDestroyedInstanceId != null && mDestroyedInstanceId.contains(instanceId)) {
       return IWXBridge.DESTROY_INSTANCE;
@@ -895,12 +895,12 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   public int callAddElement(String instanceId, String ref,String dom,String index, String callback){
 
-    if (WXEnvironment.isApkDebugable()) {
+    // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("[WXBridgeManager] callNative::callAddElement >>>> instanceId:").append(instanceId)
               .append(", ref:").append(ref).append(", dom:").append(dom).append(", callback:").append(callback);
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+    // }
 
     if(mDestroyedInstanceId!=null && mDestroyedInstanceId.contains(instanceId)){
       return IWXBridge.DESTROY_INSTANCE;
@@ -1351,9 +1351,9 @@ public class WXBridgeManager implements Callback,BactchExecutor {
     if (adapter != null) {
         WXJSExceptionInfo jsException = new WXJSExceptionInfo(instanceId, url, errorCode.getErrorCode(), method, exception, extParams);
         adapter.onJSException(jsException);
-        if (WXEnvironment.isApkDebugable()) {
+        // if (WXEnvironment.isApkDebugable()) {
           WXLogUtils.e(jsException.toString());
-        }
+        // }
     }
   }
 
@@ -1519,14 +1519,14 @@ public class WXBridgeManager implements Callback,BactchExecutor {
 
   public void invokeExecJS(String instanceId, String namespace, String function,
                             WXJSObject[] args,boolean logTaskDetail){
-    if (WXEnvironment.isApkDebugable()) {
+    // if (WXEnvironment.isApkDebugable()) {
       mLodBuilder.append("callJS >>>> instanceId:").append(instanceId)
               .append("function:").append(function);
       if(logTaskDetail)
         mLodBuilder.append(" tasks:").append(WXJsonUtils.fromObjectToJSONString(args));
       WXLogUtils.d(mLodBuilder.substring(0));
       mLodBuilder.setLength(0);
-    }
+    // }
     mWXBridge.execJS(instanceId, namespace, function, args);
   }
 
@@ -1544,9 +1544,9 @@ public class WXBridgeManager implements Callback,BactchExecutor {
   private void initFramework(String framework){
     if (!isJSFrameworkInit()) {
       if (TextUtils.isEmpty(framework)) {
-        if (WXEnvironment.isApkDebugable()) {
+        // if (WXEnvironment.isApkDebugable()) {
           WXLogUtils.d("weex JS framework from assets");
-        }
+        // }
         framework = WXFileUtils.loadAsset("main.js", WXEnvironment.getApplication());
       }
       if (TextUtils.isEmpty(framework)) {


[03/50] incubator-weex git commit: * [ios] cancel useless logic

Posted by gu...@apache.org.
* [ios] cancel useless logic


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

Branch: refs/heads/release
Commit: 2165b85ec47eb540068ec5b2566f36d238ad88be
Parents: cfdaa67
Author: acton393 <zh...@gmail.com>
Authored: Fri Sep 29 18:27:08 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Sep 29 18:27:08 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2165b85e/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index 6bcfd9a..d592a8c 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -223,12 +223,12 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
         ((UIScrollView *)self.view).scrollEnabled = _scrollable;
     }
     if (attributes[@"alwaysScrollableHorizontal"]) {
-        _alwaysScrollableHorizontal = attributes[@"alwaysScrollableHorizontal"]?[WXConvert BOOL:attributes[@"alwaysScrollableHorizontal"]]:NO;
+        _alwaysScrollableHorizontal = [WXConvert BOOL:attributes[@"alwaysScrollableHorizontal"]];
         ((UIScrollView*)self.view).alwaysBounceHorizontal = _alwaysScrollableHorizontal;
     }
     
     if (attributes[@"alwaysScrollableVertical"]) {
-        _alwaysScrollableVertical = attributes[@"alwaysScrollableVertical"]?[WXConvert BOOL:attributes[@"alwaysScrollableVertical"]]:NO;
+        _alwaysScrollableVertical = [WXConvert BOOL:attributes[@"alwaysScrollableVertical"]];
         ((UIScrollView*)self.view).alwaysBounceVertical = _alwaysScrollableVertical;
     }
     if (attributes[@"offsetAccuracy"]) {


[14/50] incubator-weex git commit: * [doc] Fixed grammar glitches in set-up-env.

Posted by gu...@apache.org.
* [doc] Fixed grammar glitches in set-up-env.

Updated grammar and expression glitches in "Setup Development
Environment", also added dotWe link to the corresponding Chinese
version of this document.

Bug: WEEX-76


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

Branch: refs/heads/release
Commit: 5a65cc7edcc710d5102ba8f0f330cf7e872e0876
Parents: 5b7516b
Author: Jonathan Dong <do...@aliyun.com>
Authored: Wed Sep 27 23:05:46 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 10:52:49 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/guide/set-up-env.md |  4 ++--
 doc/source/guide/set-up-env.md    | 34 +++++++++++++++++-----------------
 2 files changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5a65cc7e/doc/source/cn/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/set-up-env.md b/doc/source/cn/guide/set-up-env.md
index 48ae606..222495a 100644
--- a/doc/source/cn/guide/set-up-env.md
+++ b/doc/source/cn/guide/set-up-env.md
@@ -8,7 +8,7 @@ has_chapter_content: true
 
 # 搭建开发环境
 
-使用 dotWe 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发 Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行 Weex 开发。
+使用 [dotWe](http://dotwe.org/vue) 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发 Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行 Weex 开发。
 
 ## 第一步:安装依赖
 
@@ -129,4 +129,4 @@ $ weex create awesome-project
 </script>
 ```
 
-关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在 dotWe 写代码并随时预览。
+关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在 [dotWe](http://dotwe.org/vue) 写代码并随时预览。

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5a65cc7e/doc/source/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/set-up-env.md b/doc/source/guide/set-up-env.md
index af52bb3..ac52367 100644
--- a/doc/source/guide/set-up-env.md
+++ b/doc/source/guide/set-up-env.md
@@ -1,68 +1,68 @@
 ---
-title: Set Up Development Environment 
+title: Setup Development Environment
 type: guide
 order: 1.1
 version: 2.1
 has_chapter_content: true
 ---
 
-# Set up development environment 
+# Setup Development Environment
 
 Using [dotWe](http://dotwe.org/vue) is a good choice, but if you want to develop locally on your own machine, you will need to set up your development environment.
 
 You will need Node.js and the [Weex CLI](https://github.com/weexteam/weex-toolkit).
 
-You can install Node using [nvm](https://github.com/creationix/nvm) (Simple bash script to manage multiple active node.js versions). Run the following commands in a Terminal after installing nvm:
+Install Node.js using [nvm](https://github.com/creationix/nvm) (Simple bash script to manage multiple active Node.js versions). Run the following commands in a terminal after installing nvm:
 
 ```bash
 $ nvm install 6.10.0
 $ nvm use 6.10.0
 ```
 
-Node.js comes with npm, which lets you install the Weex CLI.
+And `npm` comes with Node.js, with witch you can install the Weex command line tools.
 
-**NOTE: ** After the `weex-toolkit`1.0.8 version, the npm-shrinkwrap.json` npm5 specification has been added to lock the package dependencies, so the npm version <5 needs to be updated by` npm i npm @latest -g` npm version, please confirm whether the version is correct before use.
+**NOTE: ** After upgrading the `weex-toolkit` to v1.0.8, the `npm-shrinkwrap.json` npm 5 specification has been added to lock the package dependencies, it is needed to upgrade your npm version to 5 above by command: `npm install npm @latest -g` if your version is lower than this, please check your npm version before using it.
 
-Run the following command in a Terminal:
+Run the following commands in a terminal:
 
 ```bash
 $ npm install -g weex-toolkit
 $ weex -v
 ```
-You can use 'update@x.x.x' command to update specify version of weex-devtool,weex-previewer,weex-builder and weexpack
+You can use 'weex update <component>@x.x.x' to update weex-devtool, weex-previewer, weex-builder and weexpack to a specific version.
 ```
-weex update weex-devtool@latest //latest sign means install latest version
+weex update weex-devtool@latest // Here latest means to install the latest version
 ```
-**NOTE: ** If you get an error like "permission error", try installing with `sudo`.
 
+**NOTE: ** If you receive an error like "permission error", try another time with `sudo`.
 
-Then you can use the Weex command to verify that the installation is successful:
+Then you can use the Weex command to verify if the installation is successful:
 
 ![](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
 
 ### Generate a new Weex project
 
-You can use the CLI to generate a Weex project called "awesome-project". Run the following command in a Terminal:
+Use the command line tool to generate a Weex project called "awesome-project". Run the following command in a terminal:
 
 ```bash
 $ weex create awesome-project
 ```
 
-Then enter the awesome-project folder, the CLI has been for us to generate a standard project structure.
+Then enter the awesome-project folder, you will see a standard project skeleton has been generated.
 
 ### Usage
 
-We enter the awesome-project folder and install dependencies with the following commands:
+In the awesome-project folder, install dependencies with the following command:
 
 ```bash
 npm install
 ```
 
-Then we run `npm run serve` in root directory to start watch mode and static server.
+Then run `npm run serve` in root directory to start watching mode and static server.
 
-Finally, we can see the Weex page in `http://localhost:8080/index.html`.
+Finally, you can access the Weex page in `http://localhost:8080/index.html`.
 
-You can modify this page in `src/index.vue`. The code is shown below:
+This page can be modified in `src/index.vue`. The codes are shown below:
 
 ```html
 <template>
@@ -96,4 +96,4 @@ You can modify this page in `src/index.vue`. The code is shown below:
 </script>
 ```
 
-If you're curious to learn more about technical details, continue on to the next section. And don't forget to write code at [dotWe](http://dotwe.org) and preview at anytime.
+For more technical details, please continue to read the next section. And don't forget to write and preview your codes at [dotWe](http://dotwe.org/vue).


[21/50] incubator-weex git commit: * [ios] support accessibility magic Tap event

Posted by gu...@apache.org.
* [ios] support accessibility magic Tap event


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

Branch: refs/heads/release
Commit: ddadd5434f9eda04592e1cd730ccfa5ca8ed2a08
Parents: cf4dcd9
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 15:09:01 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Oct 2 15:09:01 2017 +0800

----------------------------------------------------------------------
 .../WeexSDK/Sources/Component/WXComponent_internal.h |  2 ++
 ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m  | 15 ++++++++++++++-
 ios/sdk/WeexSDK/Sources/View/WXView.m                |  9 +++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ddadd543/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
index 5d9b687..f1163a9 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
+++ b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
@@ -72,6 +72,8 @@ typedef id (^WXDataBindingBlock)(NSDictionary *data, BOOL *needUpdate);
     NSString * _accessibilityHintContent; // hint for the action
     NSString * _testId;// just for auto-test
     
+    BOOL _accessibilityMagicTapEvent;
+    
     /**
      *  PseudoClass
      */

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ddadd543/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
index 6247f07..2c343f4 100644
--- a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
+++ b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
@@ -172,6 +172,7 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     WX_ADD_EVENT(touchmove, addTouchMoveEvent)
     WX_ADD_EVENT(touchend, addTouchEndEvent)
     WX_ADD_EVENT(touchcancel, addTouchCancelEvent)
+    WX_ADD_EVENT(accessibilityMagicTap, addAccessibilityMagicTapEvent)
     
     if(_isListenPseudoTouch) {
         self.touchGesture.listenPseudoTouch = YES;
@@ -200,7 +201,7 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     WX_REMOVE_EVENT(touchmove, removeTouchMoveEvent)
     WX_REMOVE_EVENT(touchend, removeTouchEndEvent)
     WX_REMOVE_EVENT(touchcancel, removeTouchCancelEvent)
-    
+    WX_REMOVE_EVENT(accessibilityMagicTap, removeAccessibilityMagicTapEvent)
     if(_isListenPseudoTouch) {
         self.touchGesture.listenPseudoTouch = NO;
     }
@@ -259,6 +260,18 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     [self checkRemoveTouchGesture];
 }
 
+#pragma mark - Accessibility Event
+
+- (void)addAccessibilityMagicTapEvent
+{
+    _accessibilityMagicTapEvent = YES;
+}
+
+- (void)removeAccessibilityMagicTapEvent
+{
+    _accessibilityMagicTapEvent = NO;
+}
+
 #pragma mark - Click Event
 
 - (void)addClickEvent

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ddadd543/ios/sdk/WeexSDK/Sources/View/WXView.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/View/WXView.m b/ios/sdk/WeexSDK/Sources/View/WXView.m
index 4619ef1..397ece3 100644
--- a/ios/sdk/WeexSDK/Sources/View/WXView.m
+++ b/ios/sdk/WeexSDK/Sources/View/WXView.m
@@ -20,6 +20,7 @@
 #import "WXView.h"
 #import "WXComponent.h"
 #import "WXLayer.h"
+#import "WXComponent_internal.h"
 
 @implementation WXView
 
@@ -61,4 +62,12 @@
     return nil;
 }
 
+- (BOOL)accessibilityPerformMagicTap
+{
+    if (self.wx_component->_accessibilityMagicTapEvent) {
+        [self.wx_component fireEvent:@"accessibilityPerformMagicTap" params:nil];
+    }
+    return [super accessibilityPerformMagicTap];
+}
+
 @end