You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/11/20 21:19:13 UTC

[24/41] git commit: [flex-asjs] [refs/heads/core_js_to_as] - Minor changes to get CordovaCameraExample to work for android again.

Minor changes to get CordovaCameraExample to work for android again.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8dcd7ca9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8dcd7ca9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8dcd7ca9

Branch: refs/heads/core_js_to_as
Commit: 8dcd7ca9427a3f9996a3cde23d16c4b6da8a3f04
Parents: ad4955f
Author: Peter Ent <pe...@apache.org>
Authored: Fri Oct 16 14:17:29 2015 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Oct 16 14:17:29 2015 -0400

----------------------------------------------------------------------
 cordova-build.xml                                   |  1 +
 examples/flexjs/CordovaCameraExample/src/README.txt | 11 +++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8dcd7ca9/cordova-build.xml
----------------------------------------------------------------------
diff --git a/cordova-build.xml b/cordova-build.xml
index 4d3b400..1e209b8 100644
--- a/cordova-build.xml
+++ b/cordova-build.xml
@@ -79,6 +79,7 @@
 		<!-- build the app -->
 		<exec executable="cordova" dir="${app.dir}">
 			<arg value="build" />
+			<arg value="android" />
 		</exec>
     </target>
     

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8dcd7ca9/examples/flexjs/CordovaCameraExample/src/README.txt
----------------------------------------------------------------------
diff --git a/examples/flexjs/CordovaCameraExample/src/README.txt b/examples/flexjs/CordovaCameraExample/src/README.txt
index 52d21ff..a3ebcaf 100644
--- a/examples/flexjs/CordovaCameraExample/src/README.txt
+++ b/examples/flexjs/CordovaCameraExample/src/README.txt
@@ -8,17 +8,20 @@ Go to your mobile development directory:
 %cd ~/mobile
 
 Copy into this directory, the cordova-build.xml ANT script:
-% cp ~/dev/flex-asjs/cordova-build.xml
+% cp ~/dev/flex-asjs/cordova-build.xml .
 
 Create the Cordova project for your FlexJS application:
-% ant -f cordova-build.xml -DPROJECT_NAME=CordovaCameraExample -DTARGET_DIR=. -DPROJECT_DIR=/Users/home/dev/flex-asjs/examples/CordovaCameraExample/
+% ant -f cordova-build.xml -DPROJECT_NAME=CordovaCameraExample -DTARGET_DIR=. -DPROJECT_DIR=/Users/home/dev/flex-asjs/examples/flexjs/CordovaCameraExample
 
 Load the Cordova camera plugin:
 cd CordovaCameraExample
-% cordova plugin add org.apache.cordova.camera
+% cordova plugin add cordova-plugin-camera
 
 Modify the www/index.html file to include the cordova.js source (place this line with the other <script> elements):
 <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
 
 Run your app on your connected device:
-% cordova run
\ No newline at end of file
+% cordova run
+
+Or run on the simulator
+% cordova emulate android
\ No newline at end of file