mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Build entirely using local Android SDK to move beyond Android 4.1
This commit is contained in:
parent
63c4b21556
commit
5d61990e26
23
.travis.yml
23
.travis.yml
|
@ -13,11 +13,30 @@ matrix:
|
||||||
# Covers Java 8, Oracle JDK, Android apps
|
# Covers Java 8, Oracle JDK, Android apps
|
||||||
- jdk: oraclejdk8
|
- jdk: oraclejdk8
|
||||||
env: ANDROID_HOME=$HOME/android-sdk-linux
|
env: ANDROID_HOME=$HOME/android-sdk-linux
|
||||||
before_install: if [ ! -d $HOME/android-sdk-linux/tools ]; then curl -s https://storage.googleapis.com/zxing-build/android-sdk-linux.tar.bz2 | bunzip2 | tar xf - -C $HOME; else ls -l $HOME/android-sdk-linux; fi
|
before_install: if [ ! -d $HOME/android-sdk-linux/platforms ]; then curl -s https://storage.googleapis.com/zxing-build/android-sdk-linux.tar.bz2 | bunzip2 | tar xf - -C $HOME; else ls -l $HOME/android-sdk-linux; fi
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
- $HOME/android-sdk-linux
|
- $HOME/android-sdk-linux
|
||||||
git:
|
git:
|
||||||
depth: 10
|
depth: 10
|
||||||
after_success: if [ -n "$JACOCO" ]; then bash <(curl -s https://codecov.io/bash); fi
|
after_success: if [ -n "$JACOCO" ]; then bash <(curl -s https://codecov.io/bash); fi
|
||||||
|
|
||||||
|
# The Android SDK package android-sdk-linux.tar.bz2 above is built roughly like so:
|
||||||
|
#
|
||||||
|
# mkdir android-sdk-linux; cd android-sdk-linux
|
||||||
|
# curl -O https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
|
||||||
|
# unzip *.zip
|
||||||
|
# rm *.zip
|
||||||
|
#
|
||||||
|
# # Or different, more recent versions:
|
||||||
|
# ./tools/bin/sdkmanager "platforms;android-22" "build-tools;25.0.2"
|
||||||
|
# # Accept license
|
||||||
|
#
|
||||||
|
# ./tools/bin/sdkmanager --uninstall tools
|
||||||
|
#
|
||||||
|
# ./tools/bin/sdkmanager --update
|
||||||
|
# # Accept license
|
||||||
|
#
|
||||||
|
# cd ..
|
||||||
|
# tar cf - android-sdk-linux | bzip2 -9 > android-sdk-linux.tar.bz2
|
||||||
|
|
26
pom.xml
26
pom.xml
|
@ -46,12 +46,6 @@
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
<version>21.0</version>
|
<version>21.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.android</groupId>
|
|
||||||
<artifactId>android</artifactId>
|
|
||||||
<version>4.1.1.4</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.zxing</groupId>
|
<groupId>com.google.zxing</groupId>
|
||||||
<artifactId>core</artifactId>
|
<artifactId>core</artifactId>
|
||||||
|
@ -84,8 +78,7 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>core</module>
|
<module>core</module>
|
||||||
<module>javase</module>
|
<module>javase</module>
|
||||||
<module>android-core</module>
|
<!-- android modules are activated by a profile below -->
|
||||||
<module>android-integration</module>
|
|
||||||
<module>zxing.appspot.com</module>
|
<module>zxing.appspot.com</module>
|
||||||
<module>zxingorg</module>
|
<module>zxingorg</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
@ -100,6 +93,7 @@
|
||||||
<slf4j.version>1.7.22</slf4j.version>
|
<slf4j.version>1.7.22</slf4j.version>
|
||||||
<!-- This can't reference project.version as some subprojects version differently -->
|
<!-- This can't reference project.version as some subprojects version differently -->
|
||||||
<zxing.version>3.3.1-SNAPSHOT</zxing.version>
|
<zxing.version>3.3.1-SNAPSHOT</zxing.version>
|
||||||
|
<android.platform>22</android.platform>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -176,7 +170,6 @@
|
||||||
<target>${java.version}</target>
|
<target>${java.version}</target>
|
||||||
<compilerArgs>
|
<compilerArgs>
|
||||||
<arg>-Xlint:all</arg>
|
<arg>-Xlint:all</arg>
|
||||||
<arg>-Werror</arg>
|
|
||||||
</compilerArgs>
|
</compilerArgs>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -362,7 +355,7 @@
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sdk>
|
<sdk>
|
||||||
<platform>24</platform>
|
<platform>${android.platform}</platform>
|
||||||
</sdk>
|
</sdk>
|
||||||
<proguard>
|
<proguard>
|
||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
|
@ -716,10 +709,23 @@
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<modules>
|
<modules>
|
||||||
|
<module>android-core</module>
|
||||||
|
<module>android-integration</module>
|
||||||
<module>android</module>
|
<module>android</module>
|
||||||
<module>androidtest</module>
|
<module>androidtest</module>
|
||||||
<module>glass</module>
|
<module>glass</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.android</groupId>
|
||||||
|
<artifactId>android</artifactId>
|
||||||
|
<version>${android.platform}</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${env.ANDROID_HOME}/platforms/android-${android.platform}/android.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>release</id>
|
<id>release</id>
|
||||||
|
|
Loading…
Reference in a new issue