mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 06:17:27 +00:00
173 lines
6.9 KiB
XML
173 lines
6.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
|
|
<parent>
|
|
<groupId>com.sap.sailing</groupId>
|
|
<artifactId>mobile</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>com.sap.sailing</groupId>
|
|
<artifactId>com.sap.sailing.android.tracking.app</artifactId>
|
|
<packaging>apk</packaging>
|
|
|
|
<dependencies>
|
|
<!-- needed on remote repository -->
|
|
<dependency>
|
|
<groupId>android</groupId>
|
|
<artifactId>android</artifactId>
|
|
</dependency>
|
|
|
|
<!--
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>support-annotations</artifactId>
|
|
<version>21.0.3</version>
|
|
<type>aar</type>
|
|
</dependency>
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>support-v4</artifactId>
|
|
<version>21.0.3</version>
|
|
<type>aar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>appcompat-v7</artifactId>
|
|
<version>21.0.3</version>
|
|
<type>aar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.android.gms</groupId>
|
|
<artifactId>play-services</artifactId>
|
|
<version>6.5.87</version>
|
|
<type>aar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sap.sailing</groupId>
|
|
<artifactId>com.sap.sailing.android.shared</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<type>apklib</type>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<sourceDirectory>src</sourceDirectory>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
<configuration>
|
|
<undeployBeforeDeploy>true</undeployBeforeDeploy>
|
|
<extractDuplicates>true</extractDuplicates>
|
|
<sdk>
|
|
<platform>21</platform>
|
|
</sdk>
|
|
<release>true</release>
|
|
<proguard>
|
|
<!-- Someone needs to look into this - quite hard to find a configuration that doesnt break everything -->
|
|
<skip>true</skip>
|
|
<config>proguard-project.txt</config>
|
|
<configs>
|
|
<config>${env.ANDROID_HOME}/tools/proguard/proguard-android.txt</config>
|
|
</configs>
|
|
</proguard>
|
|
<zipalign>
|
|
<skip>false</skip>
|
|
</zipalign>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>apk</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludeJarResources>
|
|
<!-- Prevents *-sources.jar to be distributed with the APK -->
|
|
<excludeJarResource>^com\.sap\..*.jar$</excludeJarResource>
|
|
</excludeJarResources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-installed</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>${project.artifactId}</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>${project.packaging}</type>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${additional-deployment-dir}</outputDirectory>
|
|
<stripVersion>true</stripVersion>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-version</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="target.dir" value="${additional-deployment-dir}" />
|
|
<property name="target.name" value="${additional-deployment-version-file}" />
|
|
|
|
<echo file="${target.dir}/${target.name}" message="${project.build.finalName}.apk=${rc-app-api-version}" />
|
|
<echo message="Version file generated in ${target.dir}/${target.name}." />
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${additional-deployment-dir}</directory>
|
|
<includes>
|
|
<include>${project.build.finalName}.apk</include>
|
|
<include>${additional-deployment-version-file}</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>*.gitignore</exclude>
|
|
</excludes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|