-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
Requires Android SDK at ANDROID_HOME. The version used was android-studio-bundle-135.1245622-windows. Contains lots of hacks in getting the tests to compile in Maven.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="false"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.android.support:support-v4:19.0.1" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:1.9.5" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:1.0" level="project" /> | ||
</component> | ||
</module> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?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>net.orfjackal.retrolambda</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>1.5.1-SNAPSHOT</version> | ||
<relativePath>../parent/pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>android-tests-helper</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>com.google.android.gms</groupId> | ||
<artifactId>play-services</artifactId> | ||
<version>${android.play-services.version}</version> | ||
<type>aar</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- <dependency> | ||
<groupId>com.android</groupId> | ||
<artifactId>platform</artifactId> | ||
<version>${android.platform.version}</version> | ||
<scope>system</scope> | ||
<systemPath>${env.ANDROID_HOME}/platforms/android-${android.platform.version}/android.jar</systemPath> | ||
</dependency>--> | ||
|
||
</dependencies> | ||
|
||
<repositories> | ||
<repository> | ||
<id>android</id> | ||
<url>file://${env.ANDROID_HOME}/extras/android/m2repository</url> | ||
</repository> | ||
<repository> | ||
<id>android-google</id> | ||
<url>file://${env.ANDROID_HOME}/extras/google/m2repository</url> | ||
</repository> | ||
</repositories> | ||
|
||
<build> | ||
<plugins> | ||
|
||
<!-- Don't deploy the tests to Maven Central --> | ||
|
||
<plugin> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- Extract jar-in-jar dependencies for our tests from the Android SDK --> | ||
|
||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>unpack-android-aar</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
<configuration> | ||
<includeTypes>aar</includeTypes> | ||
<outputDirectory>${project.build.directory}/android</outputDirectory> | ||
<stripVersion>true</stripVersion> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>unpack-android-aar</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<tasks> | ||
<unzip src="${project.build.directory}/android/play-services.aar" | ||
dest="${project.build.directory}/android/play-services/"/> | ||
</tasks> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
|
||
<plugin> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install-android-jars</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>install-file</goal> | ||
</goals> | ||
<configuration> | ||
<groupId>com.google.android.gms</groupId> | ||
<artifactId>play-services</artifactId> | ||
<version>${android.play-services.version}</version> | ||
<classifier>classes</classifier> | ||
<packaging>jar</packaging> | ||
<file>${project.build.directory}/android/play-services/classes.jar</file> | ||
<!--<generatePom>true</generatePom>--> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
</project> |