Home | History | Annotate | Download | only in Examples
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3   ~ Copyright 2012 AndroidPlot.com
      4   ~
      5   ~    Licensed under the Apache License, Version 2.0 (the "License");
      6   ~    you may not use this file except in compliance with the License.
      7   ~    You may obtain a copy of the License at
      8   ~
      9   ~        http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~    Unless required by applicable law or agreed to in writing, software
     12   ~    distributed under the License is distributed on an "AS IS" BASIS,
     13   ~    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~    See the License for the specific language governing permissions and
     15   ~    limitations under the License.
     16   -->
     17 
     18 <project xmlns="http://maven.apache.org/POM/4.0.0"
     19          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     20          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     21     <parent>
     22         <artifactId>androidplot</artifactId>
     23         <groupId>com.androidplot</groupId>
     24         <version>0.6.0-SNAPSHOT</version>
     25     </parent>
     26     <modelVersion>4.0.0</modelVersion>
     27 
     28     <artifactId>androidplot-examples</artifactId>
     29     <name>AndroidPlot-Examples</name>
     30     <packaging>pom</packaging>
     31 
     32     <dependencies>
     33         <dependency>
     34             <groupId>com.google.android</groupId>
     35             <artifactId>android</artifactId>
     36         </dependency>
     37         <!--<dependency>
     38             <groupId>com.google.android</groupId>
     39             <artifactId>android</artifactId>
     40             <version>2.1_r1</version>
     41             <scope>provided</scope>
     42         </dependency>-->
     43         <!-- TODO: figure out how to use this dependency without breaking the clean target;
     44         used as-is, the clean target can fail because the dependency is erased by maven.
     45         <dependency>
     46             <groupId>com.androidplot</groupId>
     47             <artifactId>androidplot-core</artifactId>
     48             <version>${applicationVersion}</version>
     49         </dependency>
     50         -->
     51     </dependencies>
     52 
     53     <build>
     54         <plugins>
     55             <plugin>
     56                 <artifactId>maven-antrun-plugin</artifactId>
     57                 <version>1.6</version>
     58                 <executions>
     59                     <execution>
     60                         <id>compile</id>
     61                         <phase>compile</phase>
     62                         <goals>
     63                             <goal>run</goal>
     64                         </goals>
     65                         
     66                         <configuration>
     67                             <target name="build-examples">
     68                                 <!--
     69                                 <property name="key.store" value="test"/>
     70                                 <property name="key.alias" value="test"/>
     71                                 -->
     72                                 <!--<property name="sdk.dir" value="C:/android-sdk"/>-->
     73                                 <property environment="env"/>
     74                                 <property name="sdk.dir" value="${env.ANDROID_HOME}"/>
     75                                 <!-- todo: include only the release jar, not everything inside
     76                                            the artifacts dir.-->
     77                                 <!--<property name="jar.libs.dir" value="../../AndroidPlot-Core/target/obfuscated/"/>-->
     78                                 <property name="build.compiler" value="extJavac"/>
     79                                 <property environment="env"/>
     80                                 <property name="sdk.dir" value="${env.ANDROID_HOME}"/>
     81                                 <!--<property name="apkeystore" value="${env.AP_KEYSTORE}"/>-->
     82                                 
     83                                 <!-- DemoApp-->
     84                                 <ant antfile="build.xml" target="debug" dir="DemoApp"/>
     85 
     86                                 <!-- DynamicXYPlotExample-->
     87                                 <ant antfile="build.xml" target="debug" dir="DynamicXYPlotExample"/>
     88 
     89                                 <!-- HelperExample-->
     90                                 <ant antfile="build.xml" target="debug" dir="HelperExample"/>
     91 
     92                                 <!-- OrientationSensorExample-->
     93                                 <ant antfile="build.xml" target="debug" dir="OrientationSensorExample"/>
     94 
     95                                 <!-- SimpleXYPlotExample-->
     96                                 <ant antfile="build.xml" target="debug" dir="SimpleXYPlotExample"/>
     97 
     98                                 <!-- StepChartExample-->
     99                                 <ant antfile="build.xml" target="debug" dir="StepChartExample"/>
    100 
    101                                 <!-- TimedXYPlotExample
    102                                 <ant antfile="build.xml" target="debug" dir="TimedXYPlotExample"/>
    103                                 -->
    104                             </target>
    105 
    106                         </configuration>
    107                         
    108                     </execution>
    109                     <execution>
    110                         <id>clean</id>
    111                         <phase>clean</phase>
    112                         <goals>
    113                             <goal>run</goal>
    114                         </goals>
    115                         <configuration>
    116                             <tasks>
    117                                 <property environment="env"/>
    118                                 <property name="sdk.dir" value="${env.ANDROID_HOME}"/>
    119 
    120                                 <!-- DemoApp-->
    121                                 <ant antfile="build.xml" target="clean" dir="DemoApp"/>
    122 
    123                                 <!-- DynamicXYPlotExample-->
    124                                 <ant antfile="build.xml" target="clean" dir="DynamicXYPlotExample"/>
    125 
    126                                 <!-- HelperExample-->
    127                                 <ant antfile="build.xml" target="clean" dir="HelperExample"/>
    128 
    129                                 <!-- OrientationSensorExample-->
    130                                 <ant antfile="build.xml" target="clean" dir="OrientationSensorExample"/>
    131 
    132                                 <!-- SimpleXYPlotExample-->
    133                                 <ant antfile="build.xml" target="clean" dir="SimpleXYPlotExample"/>
    134 
    135                                 <!-- StepChartExample-->
    136                                 <ant antfile="build.xml" target="clean" dir="StepChartExample"/>
    137                                 
    138                                 <!-- TimedXYPlotExample
    139                                 <ant antfile="build.xml" target="clean" dir="TimedXYPlotExample"/>
    140 -->
    141                             </tasks>
    142                         </configuration>
    143                     </execution>
    144                 </executions>
    145             </plugin>
    146         </plugins>
    147     </build>
    148 
    149 
    150 </project>