+ [ios] add license @notdanger

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

Branch: refs/heads/0.16-dev
Commit: 816bde1bdedfdc79d4f6ae4f3404564d4fa60741
Parents: 4d78365
Author: 齐山 <sunjjb...@163.com>
Authored: Thu Aug 10 16:10:46 2017 +0800
Committer: 齐山 <sunjjb...@163.com>
Committed: Thu Aug 10 16:10:46 2017 +0800

----------------------------------------------------------------------
 examples/vue/hello.vue                          | 54 ++------------------
 .../WeexDemo/WXExtendCallNativeTest.h           | 25 ++++++---
 .../WeexDemo/WXExtendCallNativeTest.m           | 25 ++++++---
 .../Sources/Manager/WXExtendCallNativeManager.h | 26 +++++++---
 .../Sources/Manager/WXExtendCallNativeManager.m | 25 ++++++---
 5 files changed, 75 insertions(+), 80 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/816bde1b/examples/vue/hello.vue
----------------------------------------------------------------------
diff --git a/examples/vue/hello.vue b/examples/vue/hello.vue
index 8309aaa..76272f7 100644
--- a/examples/vue/hello.vue
+++ b/examples/vue/hello.vue
@@ -1,53 +1,5 @@
-<!--
-  * <template>: html-like syntax
-  * CSS-like inline style
-  * <style scoped>: only support single-class selector
-  * <script>: define the behavior of component
-  * :attr data-binding support
-  * @xxx syntax to bind event with a component method
--->
-
-<!--
-  notes:
-  * <template> only could have just one child
-  * the text node is only allowed as the child of <text> as the shorthand of 
its `value` attribute
-  * the style is not inherited from parent (for example: `font-size`)
-  * <script> support ECMAScript 5
-  * all component options assigns to `module.exports`
--->
-
 <template>
-  <div class="wrapper" @click="update">
-    <image :src="logoUrl" class="logo"></image>
-    <text class="title">Hello {{target}}</text>
+  <div>
+    <text style="font-size: 100px;">Hello World.</text>
   </div>
-</template>
-
-<style scoped>
-  .wrapper {align-items: center; margin-top: 120px;}
-  .title {font-size: 48px;}
-  .logo {width: 360px; height: 82px;}
-</style>
-
-<script>
-  var modal = weex.requireModule('modal')
-  module.exports = {
-    data: {
-      logoUrl: 'https://alibaba.github.io/weex/img/weex_logo_b...@3x.png',
-      target: 'World'
-    },
-    methods: {
-      update: function (e) {
-        this.target = 'Weex'
-        console.log('target:', this.target)
-        var dict = extendCallNative({
-          'className':'test'
-        })
-        modal.toast({
-          'message': dict['value'],
-          'duration': 1000
-        })
-      }
-    }
-  }
-</script>
+</template>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/816bde1b/ios/playground/WeexDemo/WXExtendCallNativeTest.h
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXExtendCallNativeTest.h 
b/ios/playground/WeexDemo/WXExtendCallNativeTest.h
index 50d2c2a..4671779 100644
--- a/ios/playground/WeexDemo/WXExtendCallNativeTest.h
+++ b/ios/playground/WeexDemo/WXExtendCallNativeTest.h
@@ -1,10 +1,21 @@
-//
-//  WXExtendCallNativeTest.h
-//  WeexDemo
-//
-//  Created by 齐山 on 2017/7/27.
-//  Copyright © 2017年 taobao. All rights reserved.
-//
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 #import <Foundation/Foundation.h>
 #import "WXExtendCallNativeProtocol.h"

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/816bde1b/ios/playground/WeexDemo/WXExtendCallNativeTest.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXExtendCallNativeTest.m 
b/ios/playground/WeexDemo/WXExtendCallNativeTest.m
index afedde1..ba11caf 100644
--- a/ios/playground/WeexDemo/WXExtendCallNativeTest.m
+++ b/ios/playground/WeexDemo/WXExtendCallNativeTest.m
@@ -1,10 +1,21 @@
-//
-//  WXExtendCallNativeTest.m
-//  WeexDemo
-//
-//  Created by 齐山 on 2017/7/27.
-//  Copyright © 2017年 taobao. All rights reserved.
-//
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 #import "WXExtendCallNativeTest.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/816bde1b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.h 
b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.h
index cb5fea6..ded9bc7 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.h
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.h
@@ -1,10 +1,21 @@
-//
-//  WXExtendCallNativeManager.h
-//  WeexSDK
-//
-//  Created by 齐山 on 2017/7/27.
-//  Copyright © 2017年 taobao. All rights reserved.
-//
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 #import <Foundation/Foundation.h>
 
@@ -12,5 +23,4 @@
 
 + (id)sendExtendCallNativeEvent:(NSDictionary *)parameters;
 + (void)registerExtendCallNative:(NSString *)name withClass:(Class)clazz;
-+ (Class)classWithComponentName:(NSString *)name;
 @end

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/816bde1b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.m 
b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.m
index 58a7cdd..17b1541 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.m
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXExtendCallNativeManager.m
@@ -1,10 +1,21 @@
-//
-//  WXExtendCallNativeManager.m
-//  WeexSDK
-//
-//  Created by 齐山 on 2017/7/27.
-//  Copyright © 2017年 taobao. All rights reserved.
-//
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 #import "WXExtendCallNativeManager.h"
 #import "WXExtendCallNativeProtocol.h"

Reply via email to