Skip to content

Instantly share code, notes, and snippets.

@xxnjdlys
Created June 13, 2014 08:20
Show Gist options
  • Save xxnjdlys/8546b82761bf6f49309a to your computer and use it in GitHub Desktop.
Save xxnjdlys/8546b82761bf6f49309a to your computer and use it in GitHub Desktop.
<?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>
<groupId>com.example.android</groupId>
<artifactId>my-android-app</artifactId>
<version>1.0.0</version>
<packaging>apk</packaging>
<name>my-android-app</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<version>2.8.4</version>
<configuration>
<sdk>
<platform>8</platform>
</sdk>
<emulator>
<avd>YOUR_AVD_NAME</avd>
<options>-snapshot 1 -scale 0.8</options>
</emulator>
<sign>
<debug>true</debug>
</sign>
<zipalign>
<verbose>true</verbose>
<skip>false</skip>
</zipalign>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>1.6_r2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment