You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/07/17 23:28:45 UTC

[1/3] spec commit: Add missing license header to config.xml

Updated Branches:
  refs/heads/3.0.x 406b53791 -> d1c1221c6
  refs/heads/master 3296c314f -> e064f5037


Add missing license header to config.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d1c1221c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d1c1221c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d1c1221c

Branch: refs/heads/3.0.x
Commit: d1c1221c67195f6431e1f185f7d246fde26efd5e
Parents: 406b537
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 17 14:57:20 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 17 14:57:49 2013 -0400

----------------------------------------------------------------------
 config.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d1c1221c/config.xml
----------------------------------------------------------------------
diff --git a/config.xml b/config.xml
index d7cc3ee..5902196 100644
--- a/config.xml
+++ b/config.xml
@@ -1,4 +1,22 @@
 <?xml version='1.0' encoding='utf-8'?>
+<!--
+  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.
+-->
 <widget id="org.apache.mobilespec" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
     <name>mobilespec</name>
     <description>


[3/3] spec commit: Add script to create a mobilespec project using local repos.

Posted by ag...@apache.org.
Add script to create a mobilespec project using local repos.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/270bfe79
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/270bfe79
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/270bfe79

Branch: refs/heads/master
Commit: 270bfe7901bcb7bdcff4ee723614f3ee251a283a
Parents: 3296c31
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 17 14:55:39 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 17 17:28:36 2013 -0400

----------------------------------------------------------------------
 createmobilespec.sh | 80 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/270bfe79/createmobilespec.sh
----------------------------------------------------------------------
diff --git a/createmobilespec.sh b/createmobilespec.sh
new file mode 100755
index 0000000..29a5ab0
--- /dev/null
+++ b/createmobilespec.sh
@@ -0,0 +1,80 @@
+#!/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.
+
+
+# Script creates a mobilespec project that uses all local repositories.
+# It currently installs only the iOS and Android platforms.
+# Based on: https://wiki.apache.org/cordova/WorkingWithThree#preview
+
+if [[ ! -d cordova-mobile-spec ]]; then
+  echo "Please run this script from the directory that contains cordova-mobile-spec"
+  exit 1
+fi
+
+if [[ -e mobilespec ]]; then
+  echo "Directory \"mobilespec\" already exists. Delete it first then re-run."
+  exit 1
+fi
+
+echo "Creating mobilespec project. If you have any errors, it may be from missing repositories."
+echo "To clone needed repositories:"
+echo "  ./cordova-coho/coho repo-clone -r plugins -r mobile-spec -r android -r ios -r cli"
+echo "To update all repositories:"
+echo "  ./cordova-coho/coho repo-update -r auto"
+REPO_PARENT="$PWD"
+set -e
+
+./cordova-cli/bin/cordova create mobilespec org.apache.mobilespec mobilespec
+( cd cordova-js; grunt )
+cd mobilespec
+echo '{
+  "id":"org.apache.mobilespec",
+  "name":"mobilespec",
+  "lib": {
+    "android": {
+      "uri": "'"$REPO_PARENT/cordova-android"'",
+      "version": "dev",
+      "id": "cordova-android-dev"
+    },
+    "ios": {
+      "uri": "'"$REPO_PARENT/cordova-ios"'",
+      "version": "dev",
+      "id": "cordova-ios-dev"
+    }
+  }
+}' > .cordova/config.json
+
+set -x
+../cordova-cli/bin/cordova platform add ios android
+../cordova-cli/bin/cordova plugin add ../cordova-mobile-spec/dependencies-plugin
+rm -r www
+ln -s ../cordova-mobile-spec www
+rm -rf platforms/ios/CordovaLib
+../cordova-ios/bin/update_cordova_subproject platforms/ios/mobilespec.xcodeproj
+../cordova-cli/bin/cordova prepare
+cp ../cordova-js/pkg/cordova.android.js platforms/android/assets/www/cordova.js
+cp ../cordova-js/pkg/cordova.ios.js platforms/ios/www/cordova.js
+ln -s ../cordova-cli/bin/cordova cordova
+
+set +x
+echo "App created in the mobilespec/ directory."
+echo "Symlink to CLI created as mobilespec/cordova"
+
+
+


[2/3] spec commit: Add missing license header to config.xml

Posted by ag...@apache.org.
Add missing license header to config.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/e064f503
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/e064f503
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/e064f503

Branch: refs/heads/master
Commit: e064f5037af0d36e03739fb74b9ea3910f931cb5
Parents: 270bfe7
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 17 14:57:20 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 17 17:28:36 2013 -0400

----------------------------------------------------------------------
 config.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/e064f503/config.xml
----------------------------------------------------------------------
diff --git a/config.xml b/config.xml
index d7cc3ee..5902196 100644
--- a/config.xml
+++ b/config.xml
@@ -1,4 +1,22 @@
 <?xml version='1.0' encoding='utf-8'?>
+<!--
+  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.
+-->
 <widget id="org.apache.mobilespec" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
     <name>mobilespec</name>
     <description>