Skip to content

Commit

Permalink
Only build Android bits if Android SDK is available as ANDROID_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Mar 8, 2014
1 parent 9aaf701 commit 0de9db4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,12 @@
<module>android-integration</module>
<module>zxing.appspot.com</module>
<module>zxingorg</module>
<module>android</module>
<module>androidtest</module>
</modules>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<slf4j.version>1.7.6</slf4j.version>
<android.sdk.path>/Applications/adt-bundle-mac-x86_64-20131030/sdk</android.sdk.path>
</properties>

<build>
Expand Down Expand Up @@ -486,6 +483,18 @@
</distributionManagement>

<profiles>
<profile>
<id>build-android</id>
<activation>
<property>
<name>env.ANDROID_HOME</name>
</property>
</activation>
<modules>
<module>android</module>
<module>androidtest</module>
</modules>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
Expand Down

0 comments on commit 0de9db4

Please sign in to comment.