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/09/05 21:41:08 UTC

git commit: Simplify build instructions.

Updated Branches:
  refs/heads/master 715ffaed7 -> a49a7a9da


Simplify build instructions.


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/a49a7a9d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/a49a7a9d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/a49a7a9d

Branch: refs/heads/master
Commit: a49a7a9dae714d79a2b92427958d3376dfb03a3f
Parents: 715ffae
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Sep 5 15:40:47 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Sep 5 15:40:47 2013 -0400

----------------------------------------------------------------------
 README.md      | 23 ++---------------------
 www/config.xml | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/a49a7a9d/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 36567cb..4f66c5f 100644
--- a/README.md
+++ b/README.md
@@ -5,43 +5,24 @@ An wrapper app for Cordova that can download and run Cordova apps as well as Chr
 
 ## Building the App Harness
 
-* Install `plugman` and `cordova-cli`.
 * Create a new CLI app:
 
         cordova create CordovaAppHarness com.yourcompany.appharness CordovaAppHarness
 
-* Add whichever platforms you want:
+* Add whichever platforms you want (currently only iOS and Android are supported by the underlying plugins: AppBundle, zip):
 
         cordova platform add android ios
 
 * Add the `zip` ([](https://github.com/MobileChromeApps/zip)) and `AppBundle` ([](https://github.com/MobileChromeApps/AppBundle)) plugins to the project (`cordova plugin add ...`)
 * If you want to be able to scan QR codes instead of typing URLs, add the `BarcodeScanner` ([](https://github.com/filmaj/BarcodeScanner)) plugin.
 * If you want to support Chrome apps, also add the `MobileChromeApps` `chrome-bootstrap` plugin, and any other Chrome APIs you want to support (`socket`, `identity`, etc.).
-    * After each `cordova prepare`, you'll have to edit the `config.xml` on each platform to remove the new `<content>` tag that looks like this:
-
-            <content src="chrome-extension://some_junk_here/chromeapp.html" />
 
 * Clone the the `cordova-app-harness` repository.
 * Copy the `www` directory into the project:
 
+     rm -r CordovaAppHarness/www
      cp -a cordova-app-harness/www CordovaAppHarness/www
 
-* Run `cordova prepare`.
-* Remove all `<content>` tags in `platforms/android/res/xml/config.xml`, and add:
-
-        <content src="cdvah_index.html" />
-
-* Remove all `<content>` tags in `platforms/ios/CordovaAppHarness/config.xml`, and add:
-
-        <content src="cdvah_index.html" />
-
-* Also ensure the `config.xml` for iOS has the tags
-
-        <access origin="app-bundle://*" />
-        <access origin="chrome-extension://*" />
-
-* Now you can build the AppHarness with Eclipse/Xcode or `cordova compile`. Don't run `cordova build`, and if you run `cordova prepare` make sure you redo the above edits to the `<content>` tags.
-
 ##Features
 
 *   Install and test multiple applications.

http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/a49a7a9d/www/config.xml
----------------------------------------------------------------------
diff --git a/www/config.xml b/www/config.xml
new file mode 100644
index 0000000..3ad17db
--- /dev/null
+++ b/www/config.xml
@@ -0,0 +1,23 @@
+<?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.appharness" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+    <name>CordovaAppHarness</name>
+    <content src="cdvah_index.html" />
+</widget>