File tree 5 files changed +61
-3
lines changed
5 files changed +61
-3
lines changed Original file line number Diff line number Diff line change
1
+ language : android
2
+ jdk : oraclejdk7
3
+ # Use the Travis Container-Based Infrastructure
4
+ sudo : false
5
+
6
+ cache :
7
+ directories :
8
+ - ${TRAVIS_BUILD_DIR}/gradle/caches/
9
+ - ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/
10
+
11
+ env :
12
+ global :
13
+ - ANDROID_API_LEVEL=21
14
+ - ANDROID_BUILD_TOOLS_VERSION=23.0.0
15
+ - ANDROID_ABI=google_apis/armeabi-v7a
16
+ - ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
17
+
18
+ android :
19
+ components :
20
+ - platform-tools
21
+ - tools
22
+ - build-tools-$ANDROID_BUILD_TOOLS_VERSION
23
+ - android-$ANDROID_API_LEVEL
24
+ # For Google APIs
25
+ - addon-google_apis-google-$ANDROID_API_LEVEL
26
+ # Google Play Services
27
+ - extra-google-google_play_services
28
+ # Support library
29
+ - extra-android-support
30
+ # Latest artifacts in local repository
31
+ - extra-google-m2repository
32
+ - extra-android-m2repository
33
+ # Specify at least one system image
34
+ - sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL
35
+
36
+ before_script :
37
+ # Create and start emulator
38
+ - echo no | android create avd --force -n test -t "Google Inc.:Google APIs:"$ANDROID_API_LEVEL --abi $ANDROID_ABI
39
+ - emulator -avd test -no-skin -no-audio -no-window &
40
+ - android-wait-for-emulator
41
+
42
+ script :
43
+ - ./gradlew connectedCheck -x library:signArchives -PdisablePreDex
Original file line number Diff line number Diff line change 1
- [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.google.maps.android/android-maps-utils/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.google.maps.android/android-maps-utils )
1
+ [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.google.maps.android/android-maps-utils/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.google.maps.android/android-maps-utils ) [ ![ Build Status ] ( https://travis-ci.org/googlemaps/android-maps-utils.svg?branch=master )] ( https://travis-ci.org/googlemaps/android-maps-utils )
2
2
3
3
# Google Maps Android API utility library
4
4
Original file line number Diff line number Diff line change @@ -7,3 +7,18 @@ buildscript {
7
7
classpath ' com.android.tools.build:gradle:1.3.0'
8
8
}
9
9
}
10
+ /**
11
+ * Improve build server performance by allowing disabling of pre-dexing
12
+ * (see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.)
13
+ */
14
+ project. ext. preDexLibs = ! project. hasProperty(' disablePreDex' )
15
+
16
+ subprojects {
17
+ project. plugins. whenPluginAdded { plugin ->
18
+ if (" com.android.build.gradle.AppPlugin" . equals(plugin. class. name)) {
19
+ project. android. dexOptions. preDexLibraries = rootProject. ext. preDexLibs
20
+ } else if (" com.android.build.gradle.LibraryPlugin" . equals(plugin. class. name)) {
21
+ project. android. dexOptions. preDexLibraries = rootProject. ext. preDexLibs
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ dependencies {
18
18
}
19
19
20
20
android {
21
- compileSdkVersion 23
21
+ compileSdkVersion " Google Inc.:Google APIs:21 "
22
22
buildToolsVersion " 23.0.0"
23
23
24
24
sourceSets {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ dependencies {
21
21
22
22
23
23
android {
24
- compileSdkVersion 23
24
+ compileSdkVersion " Google Inc.:Google APIs:21 "
25
25
buildToolsVersion " 23.0.0"
26
26
27
27
sourceSets {
You can’t perform that action at this time.
0 commit comments