Skip to content

Commit c1fc653

Browse files
authored
Build for any SDK on Travis. (#774)
* Build for any SDK on Travis. * Use sdkmanager to approve licenses * Revert "Use sdkmanager to approve licenses" This reverts commit b51d415.
1 parent 2c27674 commit c1fc653

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@ branches:
44
- /^\d+\.\d+\.\d+$/ # regex
55

66
language: android
7-
sudo: false
87

98
jdk:
109
- oraclejdk8
1110

12-
android:
13-
components:
14-
- tools
15-
- platform-tools
16-
- build-tools-27.0.0
17-
- android-27
18-
- doc-27
19-
2011
before_install:
2112
- pip install --user codecov
22-
- yes | sdkmanager "platforms;android-27"
13+
- mkdir "$ANDROID_HOME/licenses" || true
14+
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
2315

2416
script:
2517
- ./gradlew clean testDebugUnitTest jacocoTestReport

Parse/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ buildscript {
2525

2626
android {
2727
compileSdkVersion rootProject.ext.compileSdkVersion
28-
buildToolsVersion rootProject.ext.buildToolsVersion
2928

3029
defaultConfig {
3130
minSdkVersion rootProject.ext.minSdkVersion
@@ -51,7 +50,7 @@ android {
5150
}
5251

5352
ext {
54-
okhttpVersion = '3.9.0'
53+
okhttpVersion = '3.9.1'
5554
}
5655

5756
dependencies {

0 commit comments

Comments
 (0)