android-example
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.joynr.examples</groupId>
<artifactId>android-example</artifactId>
<version>0.8.0</version>
</dependency><!--
#%L
%%
Copyright (C) 2011 - 2013 BMW Car IT GmbH
%%
Licensed 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.
#L%
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.joynr.examples</groupId>
<artifactId>android-example</artifactId>
<packaging>apk</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<parent>
<groupId>io.joynr</groupId>
<artifactId>examples</artifactId>
<version>0.8.0</version>
</parent>
<properties>
<!-- NOTE: platform version and level must match -->
<platform.version>4.1.1.4</platform.version>
<!--
ATTENTION:
If the platform level is changed here, the target property
inside ${basedir}/project.properties must be changed accordingly.
-->
<platform.level>19</platform.level>
</properties>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${platform.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
</exclusion>
<exclusion>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents</groupId>
</exclusion>
<exclusion>
<artifactId>opengl-api</artifactId>
<groupId>org.khronos</groupId>
</exclusion>
<exclusion>
<artifactId>xmlParserAPIs</artifactId>
<groupId>xerces</groupId>
</exclusion>
<exclusion>
<artifactId>xpp3</artifactId>
<groupId>xpp3</groupId>
</exclusion>
<exclusion>
<artifactId>json</artifactId>
<groupId>org.json</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.joynr.java.android</groupId>
<artifactId>joynr-android-runtime</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<!-- this dependency is only required for the development phase, so that the model is accessible via classpath-->
<dependency>
<groupId>io.joynr</groupId>
<artifactId>basemodel</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>regular-clean</id>
<phase>none</phase>
<configuration>
<filesets>
<fileset>
<directory>gen</directory>
</fileset>
<fileset>
<directory>bin</directory>
</fileset>
<fileset>
<directory>target</directory>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>auto-clean</id>
<phase>validate</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>target/classes/unpacked-embedded-jars</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<genDirectory>gen</genDirectory>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>
<sdk>
<platform>${platform.level}</platform>
</sdk>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<extractDuplicates>true</extractDuplicates>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>io.joynr.tools.generator</groupId>
<artifactId>joynr-generator-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<model>${basedir}/model/Gps.fidl</model>
<generationLanguage>java</generationLanguage>
<outputPath>${basedir}/src/main/generated</outputPath>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.joynr.java</groupId>
<artifactId>java-generator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.joynr</groupId>
<artifactId>basemodel</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<!--
copying NOTICE file must be disabled here to avoid duplicate file error
during android apk packaging
NOTE: this means the NOTICE file from io.joynr.java.android:joynr-android-runtime
is copied to the apk file instead of the NOTICE file generated for this project
-->
<execution>
<id>copy-notice-license-to-classes</id>
<phase>none</phase>
</execution>
<execution>
<id>copy-notice-license-to-test-classes</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>gen</source>
<source>src/main/generated</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<!--
unpacking LICENSE file must be disabled here to avoid duplicate file error
during android apk packaging
NOTE: this means the LICENSE file from io.joynr.java.android:joynr-android-runtime
is copied to the apk file. However, this is the same as it is copied originally
from io.joynr.tools:build-resources.
-->
<execution>
<id>unpack-license-info</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>