You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/05/09 08:35:04 UTC
[17/18] incubator-weex git commit: * [all] fix apache release
* [all] fix apache release
* add apache release build instruction README
* release file rsync rules
* a all-in-one cmd to build js
* add vue’s license header to source code from vue project
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/b4018063
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/b4018063
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/b4018063
Branch: refs/heads/master
Commit: b40180637ecd6866d282ba79046bf9bb7b8fdc13
Parents: 6808fd3
Author: sospartan <so...@apache.org>
Authored: Tue May 9 12:09:08 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Tue May 9 16:34:11 2017 +0800
----------------------------------------------------------------------
.wwprc | 3 -
README_RELEASE.md | 61 ++++++
android/build.gradle | 5 +
android/sdk/build.gradle | 13 ++
bin/commit-msg.sh | 16 ++
bin/dist-browser.sh | 16 ++
bin/dist-js-framework.sh | 16 ++
bin/dist-vue.sh | 17 +-
bin/install-hooks.sh | 16 ++
bin/pre-commit.sh | 16 ++
bin/pre-push.sh | 16 ++
bin/release.sh | 16 ++
bin/welcome.sh | 16 ++
html5/frameworks/legacy/core/array.js | 23 +++
html5/frameworks/legacy/core/dep.js | 23 +++
html5/frameworks/legacy/core/object.js | 23 +++
html5/frameworks/legacy/core/observer.js | 23 +++
html5/frameworks/legacy/core/state.js | 23 +++
html5/frameworks/legacy/core/watcher.js | 23 +++
.../vue/components/slider/slider-neighbor.js | 18 ++
ios/sdk/LICENSE | 202 -------------------
ios/sdk/NOTICE | 13 --
ios/sdk/WeexSDKTests/testRootView.js | 18 ++
package.json | 1 +
scripts/rat-ant-build.xml | 37 ++--
scripts/release_files.rules | 63 ++++++
26 files changed, 479 insertions(+), 238 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/.wwprc
----------------------------------------------------------------------
diff --git a/.wwprc b/.wwprc
index eb1fc88..bc997be 100644
--- a/.wwprc
+++ b/.wwprc
@@ -36,8 +36,5 @@
"stream",
"webview",
"webSocket"
- ],
- "npm": [
- "weex-picker"
]
}
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/README_RELEASE.md
----------------------------------------------------------------------
diff --git a/README_RELEASE.md b/README_RELEASE.md
new file mode 100644
index 0000000..29427f0
--- /dev/null
+++ b/README_RELEASE.md
@@ -0,0 +1,61 @@
+
+
+
+## Build from source
+
+### Build Javascript Framework and Html5 SDK
+Javascript Framework is required by SDKs. **So this must be built first.**
+Install npm dependencies(You must have node&npm installed):
+> `$ npm install`
+
+Install `flow-typed` module
+> `$ npm install -g flow-typed`
+
+Use `flow-typed` to install libdef:
+> `$ flow-typed install`
+
+Build the javascript libraries:
+> `$ npm run build:source`
+
+The artifacts are under `dist/`.
+> ```
+> $ ls dist
+> browser.js browser.min.js browser.min.js.gz
+> native.js native.min.js native.min.js.gz
+>```
+
+### Before build Native SDK
+Move `min` version to Native SDK folder, which will be used by native SDK build.
+> `cp dist/native.min.js ios/sdk/WeexSDK/Resources/main.js`
+> `cp dist/native.min.js android/sdk/assets/main.js`
+
+### Build Android SDK
+Make sure you have install gradle, see install guide in [gradle website](https://gradle.org/install).
+Go into the `android` folder then execute
+> `$ cd android `
+> `$ gradle wrapper --gradle-version 2.14.1`
+
+Create a Gradle setting file
+> `$ echo 'include ":sdk"'>settings.gradle`
+
+Build the SDK
+> `$ ./gradlew :sdk:assemble -PasfRelease`
+
+Now, you can see the artifacts under `android/sdk/build/output/`.
+
+### Build iOS SDK
+
+`$ xcodebuild -project ios/sdk/WeexSDK.xcodeproj -target WeexSDK_MTL`
+
+## Run Apache-Rat
+
+### Download Apache Rat
+Download the binary from [Rat's website](https://creadur.apache.org/rat/download_rat.cgi), decompress it somewhere.
+We've tested using v0.12.
+
+### Run Rat against Release files
+Just execute in your termial:
+
+> `$ ant -buildfile scripts/rat-ant-build.xml -lib path_to_the_folder_you_place_rat/apache-rat-0.12.jar`
+
+See '`scripts/rat-ant-build.xml`' for details about rules we use.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/android/build.gradle
----------------------------------------------------------------------
diff --git a/android/build.gradle b/android/build.gradle
index 990f492..d5c17ec 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -9,6 +9,10 @@ buildscript {
}
}
+plugins {
+ id "de.undercouch.download" version "3.2.0"
+}
+
repositories {
mavenCentral()
jcenter()
@@ -42,3 +46,4 @@ subprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
+
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/android/sdk/build.gradle
----------------------------------------------------------------------
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 4283830..eaaf870 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -46,6 +46,19 @@ android {
def jsfmVersion = m[0][1]
println jsfmVersion
+ if(project.hasProperty('asfRelease')){
+ //download so file if not exist, when compile in source release
+ download{
+ src 'https://git-wip-us.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/armeabi/libweexjsc.so;hb=refs/heads/master'
+ dest "${projectDir}/libs/armeabi/libweexjsc.so"
+ overwrite false
+ }
+ download{
+ src 'https://git-wip-us.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/x86/libweexjsc.so;hb=refs/heads/master'
+ dest "${projectDir}/libs/x86/libweexjsc.so"
+ overwrite false
+ }
+ }
def ARMEABI_Size = new File(projectDir,"libs/armeabi/libweexjsc.so").length();
def X86_Size = new File(projectDir,"libs/x86/libweexjsc.so").length();
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/commit-msg.sh
----------------------------------------------------------------------
diff --git a/bin/commit-msg.sh b/bin/commit-msg.sh
index a7f8884..64381a9 100755
--- a/bin/commit-msg.sh
+++ b/bin/commit-msg.sh
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
+# 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.
# Validate commit log
commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|website|example|test|all)\] .{1,50}'
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/dist-browser.sh
----------------------------------------------------------------------
diff --git a/bin/dist-browser.sh b/bin/dist-browser.sh
index f1eda76..2ad1f84 100755
--- a/bin/dist-browser.sh
+++ b/bin/dist-browser.sh
@@ -1,4 +1,20 @@
#!/user/bin/env bash
+# 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.
echo ''
echo ''
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/dist-js-framework.sh
----------------------------------------------------------------------
diff --git a/bin/dist-js-framework.sh b/bin/dist-js-framework.sh
index 24bbdfe..f814186 100755
--- a/bin/dist-js-framework.sh
+++ b/bin/dist-js-framework.sh
@@ -1,4 +1,20 @@
#!/bin/bash
+# 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.
echo 'packing weex-js-framework'
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/dist-vue.sh
----------------------------------------------------------------------
diff --git a/bin/dist-vue.sh b/bin/dist-vue.sh
index 7edc254..60fce06 100644
--- a/bin/dist-vue.sh
+++ b/bin/dist-vue.sh
@@ -1,5 +1,20 @@
#!/user/bin/env bash
-
+# 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.
echo ''
# echo ' => cping files for vue dist...'
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/install-hooks.sh
----------------------------------------------------------------------
diff --git a/bin/install-hooks.sh b/bin/install-hooks.sh
index 14dae7d..49736dd 100755
--- a/bin/install-hooks.sh
+++ b/bin/install-hooks.sh
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
+# 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.
if test -e .git/hooks; then
ln -sf ../../bin/pre-commit.sh .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/pre-commit.sh
----------------------------------------------------------------------
diff --git a/bin/pre-commit.sh b/bin/pre-commit.sh
index f2c3e76..8723e25 100755
--- a/bin/pre-commit.sh
+++ b/bin/pre-commit.sh
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
+# 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.
sh ./bin/welcome.sh
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/pre-push.sh
----------------------------------------------------------------------
diff --git a/bin/pre-push.sh b/bin/pre-push.sh
index dbc0577..d8dc4c1 100755
--- a/bin/pre-push.sh
+++ b/bin/pre-push.sh
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
+# 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.
# Validate branch name
branch_regex="^(\d+\.\d+\.\d+)|(master|dev|android|ios|jsfm|html5|component|doc|website|example|test|all)(-(bugfix|feature|hotfix)-.+)?$"
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/release.sh
----------------------------------------------------------------------
diff --git a/bin/release.sh b/bin/release.sh
index ef82840..003e0a4 100644
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -1,4 +1,20 @@
# Export bugfix log
+# 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.
git log --pretty=format:"%s %h" --no-merges --since="2016-05-17" | grep -E "^[\\*]\s*\[(jsfm|html5|android|ios)\].*(fix|bug|close)" > commit-history.log
# git log --pretty=format:"%s %h" --no-merges --since="2016-05-17" | grep -E "^[\\*]\s*\[(jsfm|html5|android|ios)\]" > commit-history.log
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/bin/welcome.sh
----------------------------------------------------------------------
diff --git a/bin/welcome.sh b/bin/welcome.sh
index 6cb8a7c..03c980f 100644
--- a/bin/welcome.sh
+++ b/bin/welcome.sh
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
+# 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.
if ! test -e ./bin/.welcome; then
touch ./bin/.welcome
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/array.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/array.js b/html5/frameworks/legacy/core/array.js
index e2f89de..56cb9e7 100644
--- a/html5/frameworks/legacy/core/array.js
+++ b/html5/frameworks/legacy/core/array.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/dep.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/dep.js b/html5/frameworks/legacy/core/dep.js
index 9796312..5a8ea73 100644
--- a/html5/frameworks/legacy/core/dep.js
+++ b/html5/frameworks/legacy/core/dep.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/object.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/object.js b/html5/frameworks/legacy/core/object.js
index 6b4b392..31987cf 100644
--- a/html5/frameworks/legacy/core/object.js
+++ b/html5/frameworks/legacy/core/object.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/observer.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/observer.js b/html5/frameworks/legacy/core/observer.js
index 1288824..1639691 100644
--- a/html5/frameworks/legacy/core/observer.js
+++ b/html5/frameworks/legacy/core/observer.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/state.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/state.js b/html5/frameworks/legacy/core/state.js
index d17e211..43b9f8f 100644
--- a/html5/frameworks/legacy/core/state.js
+++ b/html5/frameworks/legacy/core/state.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/frameworks/legacy/core/watcher.js
----------------------------------------------------------------------
diff --git a/html5/frameworks/legacy/core/watcher.js b/html5/frameworks/legacy/core/watcher.js
index 4bb949b..842d44c 100644
--- a/html5/frameworks/legacy/core/watcher.js
+++ b/html5/frameworks/legacy/core/watcher.js
@@ -16,6 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2015 Yuxi Evan You
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+*/
/* eslint-disable */
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/html5/render/vue/components/slider/slider-neighbor.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/components/slider/slider-neighbor.js b/html5/render/vue/components/slider/slider-neighbor.js
index ec118e9..fd30c09 100644
--- a/html5/render/vue/components/slider/slider-neighbor.js
+++ b/html5/render/vue/components/slider/slider-neighbor.js
@@ -1,3 +1,21 @@
+/*
+ * 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 { validateStyles } from '../../validator'
import './slider-neighbor.css'
import { extractComponentStyle, createEventMap } from '../../core'
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/ios/sdk/LICENSE
----------------------------------------------------------------------
diff --git a/ios/sdk/LICENSE b/ios/sdk/LICENSE
deleted file mode 100755
index cfc27db..0000000
--- a/ios/sdk/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 2016 Alibaba Group
-
- Licensed 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.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/ios/sdk/NOTICE
----------------------------------------------------------------------
diff --git a/ios/sdk/NOTICE b/ios/sdk/NOTICE
deleted file mode 100755
index 8423281..0000000
--- a/ios/sdk/NOTICE
+++ /dev/null
@@ -1,13 +0,0 @@
-Weex Sdk iOS
-Copyright 2016 Alibaba Group
-
-This product includes software developed at Alibaba Group. (http://www.alibabagroup.com)
-
-This product contains software css-layout(https://github.com/facebook/css-layout) developed
-by Facebook Inc., licensed under the BSD License.
-
-This product contains software React Native(https://github.com/facebook/react-native) developed
-by Facebook Inc., licensed under the BSD License.
-
-This product contains software SRWebSocket (https://github.com/facebook/SocketRocket)by Facebook Inc., licensed under the Apache License, Version 2.0.
-
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/ios/sdk/WeexSDKTests/testRootView.js
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDKTests/testRootView.js b/ios/sdk/WeexSDKTests/testRootView.js
index dd75b93..05db329 100644
--- a/ios/sdk/WeexSDKTests/testRootView.js
+++ b/ios/sdk/WeexSDKTests/testRootView.js
@@ -1,4 +1,22 @@
/*
+ * 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.
+ */
+/*
<template>
<div style='left:{{left}};top:{{top}};width:{{width}};height:{{height}};background-color:red'>
<div style='width:100;height:200'>
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 90b949c..dfc73cf 100644
--- a/package.json
+++ b/package.json
@@ -40,6 +40,7 @@
"postinstall": "bash ./bin/install-hooks.sh",
"build:native": "node build/build.js native",
"build:runtime": "node build/build.js runtime",
+ "build:source": "npm run build:native && npm run build:browser && npm run build:vue",
"build:browser": "wwp && node build/build.js browser",
"build:browser:common": "rollup -c build/rollup.browser.common.config.js",
"build:vue": "flow check && node build/build.js vue",
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/scripts/rat-ant-build.xml
----------------------------------------------------------------------
diff --git a/scripts/rat-ant-build.xml b/scripts/rat-ant-build.xml
index c909080..15a9c2f 100644
--- a/scripts/rat-ant-build.xml
+++ b/scripts/rat-ant-build.xml
@@ -1,32 +1,31 @@
+<!--
+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.
+-->
<project xmlns:rat="antlib:org.apache.rat.anttasks"
xmlns="antlib:org.apache.tools.ant">
<rat:report>
<fileset dir="../" includes="**/*.xml,**/*.m,**/*.h,**/*.mm,**/*.java,**/*.js">
- <exclude name="**/scripts/*.xml"/>
- <exclude name="**/ios/sdk/WeexSDKTests/*.js"/>
- <exclude name="**/packages/weex-html5/demo/build/**.js"/>
<exclude name="**/ios/sdk/WeexSDK/Sources/Layout/*.*"/>
- <exclude name="**/ios/sdk/WeexSDK/Resources/*.js"/>
- <exclude name="**/ios/playground/bundlejs/**/*.js"/>
- <exclude name="**/ios/playground/bundlejs/**/*.js"/>
- <exclude name="**/doc/themes/**/*.js"/>
<exclude name="**/android/sdk/src/main/java/com/taobao/weex/dom/flex/*.java"/>
- <exclude name="**/android/sdk/assets/**/*.js"/>
- <exclude name="**/android/playground/app/src/main/java_zxing/**/*.java"/>
- <exclude name="**/android/playground/app/src/main/assets/**/*.js"/>
- <exclude name="**/html5/frameworks/legacy/*.js"/>
- <exclude name="**/*.output.js"/>
- <exclude name="**/html5/test/render/vue/vender/vue-*.js"/>
- <exclude name="**/flow-typed/**/*.js"/>
<!--
exclude:
- - generated js exmpales under ios folder
- - weex html render builder artifacts
- ios test dependency folder
- - generated js framework under ios and android sdk
- - third part js under doc theme folder
- css layout source code under android sdk
- - html 5 legacy framework
-->
</fileset>
</rat:report>
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b4018063/scripts/release_files.rules
----------------------------------------------------------------------
diff --git a/scripts/release_files.rules b/scripts/release_files.rules
new file mode 100644
index 0000000..a1d7937
--- /dev/null
+++ b/scripts/release_files.rules
@@ -0,0 +1,63 @@
+#
+# Use this with rsync
+# 'rsync -rvv --include-from=test.rules ./ dest_dir/
+# * watch out the space after every line.
+# * include folder before include anything in it
+#
+- .git*
+- .DS_Store
+# This line only include folder itself, not files or subfolder under it.
++ /scripts/
++ /scripts/rat-ant-build.xml
++ /LICENSE
++ /NOTICE
++ /POSSIBLE-NOTICES-FOR-BIN-DIST
++ /DISCLAIMER
++ /README.MD
++ /README_RELEASE.md
++ /package.json
++ /.wwprc
++ /.flowconfig
++ /.eslintrc
++ /.eslintignore
++ /.babelrc
++ /bin
++ /bin/*.sh
++ /src
+- /src/h5-render/dist/index.js
+- /src/h5-render/node_modules
+- /src/js-framework/node_modules
++ /src/**
++ /html5
+- /html5/**.output.js
+- /html5/render/browser/extend/packer.js
+- /html5/test/render/**
++ /html5/**
++ /packages
++ /packages/weex-html5
++ /packages/weex-html5/package.json
++ /packages/weex-vue-render
++ /packages/weex-vue-render/package.json
++ /build
++ /build/**
+
+###### android #######
++ /android
++ /android/build.gradle
++ /android/sdk/
+- /android/sdk/assets/main.js
+- /android/sdk/.gradle
+- /android/sdk/build
+- /android/sdk/NOTICE
+- /android/sdk/libs/*/*.so
++ /android/sdk/**
+
+###### ios ###########
++ /ios
++ /ios/sdk/
+- /ios/sdk/LICENSE
+- /ios/sdk/NOTICE
+- /ios/sdk/WeexSDK/Resources/main.js
++ /ios/sdk/**
+
+- *
\ No newline at end of file