MobileMap output to cordova
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/71d7d8b5 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/71d7d8b5 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/71d7d8b5 Branch: refs/heads/release0.8.0 Commit: 71d7d8b5b80e281692f53575371d689494b901c1 Parents: 73a6a10 Author: Alex Harui <aha...@apache.org> Authored: Wed May 31 21:50:00 2017 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Wed May 31 21:50:00 2017 -0700 ---------------------------------------------------------------------- examples/flexjs/MobileMap/build.xml | 9 ++++++++- examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/71d7d8b5/examples/flexjs/MobileMap/build.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileMap/build.xml b/examples/flexjs/MobileMap/build.xml index f50c4b7..ce1fe68 100644 --- a/examples/flexjs/MobileMap/build.xml +++ b/examples/flexjs/MobileMap/build.xml @@ -36,6 +36,13 @@ <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-geolocation"/> + </ant> </target> <target name="cordova" description="Executes the Cordova build script to create Cordova app"> @@ -43,7 +50,7 @@ </target> <target name="run" 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"> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/71d7d8b5/examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml b/examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml index 1a68662..2e63648 100644 --- a/examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml +++ b/examples/flexjs/MobileMap/src/main/flex/MobileMap.mxml @@ -27,7 +27,7 @@ limitations under the License. </js:valuesImpl> <fx:Script> <![CDATA[ - import org.apache.cordova.geolocation.Geolocation; + import org.apache.flex.cordova.geolocation.Geolocation; import google.maps.LatLng; private function onDeviceReady():void {