mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
2cad715525
The pull request targets: 1) Introduces Gradle support 2) Updates maven support (even thou the apk generated is not stable) 3) Updates the setup_env.* scripts to support different building tools 4) Removes non UTF-8 characters 5) Removes switches on R.id entries (not supported anymore from ADT >= 14) 6) Introduced a binary dependency (.aar) that replace the actionbarsherlock sub-module Remainders: 1) Change the sub-module back to the owncloud android library once the PR will be merge
138 lines
4.8 KiB
XML
138 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
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>com.owncloud.android</groupId>
|
|
<artifactId>owncloud</artifactId>
|
|
<version>${owncloud.version}</version>
|
|
<packaging>apk</packaging>
|
|
<name>Owncloud Android</name>
|
|
|
|
<properties>
|
|
<owncloud.version>1.5.1-SNAPSHOT</owncloud.version>
|
|
<java-version>1.6</java-version>
|
|
<!-- Given by maven-android-sdk-deployer -->
|
|
<google.android-version>4.4.2_r4</google.android-version>
|
|
<!-- Usually the latest Android API -->
|
|
<google.android-api>19</google.android-api>
|
|
<actionbarsherlock-version>4.2.0</actionbarsherlock-version>
|
|
</properties>
|
|
|
|
<url>https://github.com/owncloud/android</url>
|
|
<description>Owncloud for Android</description>
|
|
<scm>
|
|
<connection>scm:git:git@github.com:owncloud/android.git</connection>
|
|
<developerConnection>scm:git:git@github.com:owncloud/android.git</developerConnection>
|
|
<url>https://github.com/owncloud/android</url>
|
|
</scm>
|
|
|
|
|
|
<!--<repositories>-->
|
|
<!--<repository>-->
|
|
<!--<id>android-support</id>-->
|
|
<!--<url>file://${env.ANDROID_HOME}/extras/android/m2repository</url>-->
|
|
<!--</repository>-->
|
|
<!--</repositories>-->
|
|
|
|
<dependencies>
|
|
|
|
<!-- Dirty trick, but it works. TouchImageView library is not available as Maven project. -->
|
|
<dependency>
|
|
<groupId>touch-image-view.jar</groupId>
|
|
<artifactId>touch-image-view.jar</artifactId>
|
|
<version>1.0</version>
|
|
<scope>system</scope>
|
|
<systemPath>${basedir}/libs/touch-image-view.jar</systemPath>
|
|
</dependency>
|
|
|
|
<!-- This causes a (version?) conflict during packaging since sherlockactionbar also includes compatibility-v4 -->
|
|
<!--<dependency>
|
|
<groupId>android.support</groupId>
|
|
<artifactId>compatibility-v4</artifactId>
|
|
<version>19.1.0</version>
|
|
</dependency>-->
|
|
<!-- Instead we need to include the exact same version -->
|
|
|
|
<dependency>
|
|
<groupId>com.jakewharton</groupId>
|
|
<artifactId>disklrucache</artifactId>
|
|
<version>2.0.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>android-support-v4.jar</groupId>
|
|
<artifactId>android-support-v4.jar</artifactId>
|
|
<version>1.0</version>
|
|
<scope>system</scope>
|
|
<systemPath>${basedir}/third_party/android-support-library/android-support-v4.jar</systemPath>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>com.actionbarsherlock</groupId>
|
|
<artifactId>library</artifactId>
|
|
<version>${actionbarsherlock-version}</version>
|
|
<type>apklib</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>android</groupId>
|
|
<artifactId>android</artifactId>
|
|
<version>${google.android-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!--<dependency>-->
|
|
<!--<groupId>android.support</groupId>-->
|
|
<!--<artifactId>compatibility-v4</artifactId>-->
|
|
<!--<version>19.1.0</version>-->
|
|
<!--</dependency>-->
|
|
|
|
|
|
<!-- MUST BE INSTALLED FIRST: cd owncloud-android-library; mvn install -->
|
|
<dependency>
|
|
<groupId>com.owncloud.android</groupId>
|
|
<artifactId>owncloud-android-library</artifactId>
|
|
<version>${owncloud.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
<sourceDirectory>src</sourceDirectory>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.1</version>
|
|
<configuration>
|
|
<source>${java-version}</source>
|
|
<target>${java-version}</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
<version>3.8.2</version>
|
|
<configuration>
|
|
<sdk>
|
|
<path>${env.ANDROID_HOME}</path>
|
|
<platform>${google.android-api}</platform>
|
|
</sdk>
|
|
</configuration>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|
|
|