flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [5/6] git commit: [flex-asjs] [refs/heads/release0.8.0] - get cordova build to work for CameraExample
Date Wed, 31 May 2017 23:36:09 GMT
get cordova build to work for CameraExample


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

Branch: refs/heads/release0.8.0
Commit: a2586ab7fc0cf4b4ea22d630e0ae29dc1234f71f
Parents: dd489a4
Author: Alex Harui <aharui@apache.org>
Authored: Wed May 31 16:35:20 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed May 31 16:35:20 2017 -0700

----------------------------------------------------------------------
 examples/flexjs/CordovaCameraExample/build.xml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a2586ab7/examples/flexjs/CordovaCameraExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/CordovaCameraExample/build.xml b/examples/flexjs/CordovaCameraExample/build.xml
index e293491..55bd7ae 100644
--- a/examples/flexjs/CordovaCameraExample/build.xml
+++ b/examples/flexjs/CordovaCameraExample/build.xml
@@ -36,14 +36,21 @@
     <include file="${basedir}/../../build_example.xml" />
 
     <target name="main" depends="clean,build_example.compile,build_example.compile.cordova"
description="Clean build of ${example}">
+        <antcall target="cordova-plugins" />
     </target>
     
+    <target name="cordova-plugins" if="has.cordova" >
+        <ant antfile="${FLEXJS_HOME}/cordova-build.xml" target="load-plugin" >
+            <property name="plugin" value="cordova-plugin-camera"/>
+        </ant>
+    </target>
+
     <target name="cordova" description="Executes the Cordova build script to create Cordova
app">
     	<ant antfile="../../../cordova-build.xml" />
     </target>
     
     <target name="run-android" description="Executes the Cordova build script to run the
app on a device.">
-    	<ant antfile="../../../cordova-build.xml" target="run" />
+    	<ant antfile="../../../cordova-build.xml" target="run.android" />
     </target>
     
     <target name="all" depends="main, cordova" description="Builds the app then runs the
Cordova script">


Mime
View raw message