Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit d36d46c

Browse files
committed
Update dependencies
Change-Id: I251169e15f870ac9df148530b847e3818dbf072a
1 parent bcd4b4c commit d36d46c

File tree

5 files changed

+58
-32
lines changed

5 files changed

+58
-32
lines changed

android/analytics/app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.3"
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.2'
66

77
defaultConfig {
88
applicationId "com.google.samples.quickstart.analytics"
99
minSdkVersion 14
10-
targetSdkVersion 25
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -20,11 +20,11 @@ android {
2020
}
2121

2222
dependencies {
23-
compile 'com.android.support:appcompat-v7:25.3.1'
24-
compile 'com.android.support:design:25.3.1'
25-
compile 'com.android.support:support-v4:25.3.1'
23+
implementation 'com.android.support:appcompat-v7:27.1.0'
24+
implementation 'com.android.support:design:27.1.0'
25+
implementation 'com.android.support:support-v4:27.1.0'
2626

2727
// [START gms_compile]
28-
compile 'com.google.android.gms:play-services-analytics:15.0.0'
28+
implementation 'com.google.android.gms:play-services-analytics:15.0.0'
2929
// [END gms_compile]
3030
}

android/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,32 @@ buildscript {
1010
}
1111
}
1212

13+
plugins {
14+
id 'com.github.ben-manes.versions' version '0.17.0'
15+
}
16+
17+
allprojects {
18+
repositories {
19+
//mavenLocal() must be listed at the top to facilitate testing
20+
mavenLocal()
21+
jcenter()
22+
maven { url 'https://maven.google.com' }
23+
maven { url 'https://maven.fabric.io/public' }
24+
}
25+
26+
// See: https://github.com/ben-manes/gradle-versions-plugin
27+
dependencyUpdates.resolutionStrategy = {
28+
componentSelection { rules ->
29+
rules.all { selection ->
30+
boolean numbersOnly = (/^[\d.]+$/ ==~ selection.candidate.version)
31+
if (!numbersOnly) {
32+
selection.reject("Rejecting: ${selection.candidate.version}")
33+
}
34+
}
35+
}
36+
}
37+
}
38+
1339
task clean(type: Delete) {
1440
delete rootProject.buildDir
1541
}

android/gcm/app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.3"
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.2'
66

77
defaultConfig {
88
applicationId "gcm.play.android.samples.com.gcmquickstart"
99
minSdkVersion 14
10-
targetSdkVersion 25
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313

@@ -25,14 +25,14 @@ android {
2525
}
2626

2727
dependencies {
28-
compile 'com.google.android.gms:play-services-gcm:15.0.1'
28+
implementation 'com.google.android.gms:play-services-gcm:15.0.1'
2929

30-
compile 'com.android.support:appcompat-v7:25.3.1'
30+
implementation 'com.android.support:appcompat-v7:27.1.0'
3131

3232
// Testing dependencies
33-
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
34-
androidTestCompile 'com.android.support.test:runner:0.5'
35-
androidTestCompile 'com.android.support:support-annotations:25.3.1'
33+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
34+
androidTestImplementation 'com.android.support.test:runner:0.5'
35+
androidTestImplementation 'com.android.support:support-annotations:27.1.0'
3636
}
3737

3838
apply plugin: 'com.google.gms.google-services'

android/signin/app-legacy/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.3"
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.2'
66

77
defaultConfig {
88
applicationId "com.google.samples.quickstart.signin"
99
minSdkVersion 18
10-
targetSdkVersion 25
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313

android/signin/app/build.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
5-
buildToolsVersion "26.0.1"
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.2'
66

77
defaultConfig {
88
applicationId "com.google.samples.quickstart.signin"
99
minSdkVersion 18
10-
targetSdkVersion 26
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313

@@ -27,25 +27,25 @@ android {
2727

2828
// Resolve dependency differences between app and tests
2929
configurations.all {
30-
resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
30+
resolutionStrategy.force 'com.android.support:support-annotations:27.1.0'
3131
}
3232
}
3333

3434
dependencies {
35-
compile 'com.android.support:appcompat-v7:26.1.0'
36-
compile 'com.android.support:design:26.1.0'
35+
implementation 'com.android.support:appcompat-v7:27.1.0'
36+
implementation 'com.android.support:design:27.1.0'
3737

3838
// Dependency for Google Sign-In
39-
compile 'com.google.android.gms:play-services-auth:15.0.1'
39+
implementation 'com.google.android.gms:play-services-auth:15.0.1'
4040

4141
// Dependencies for the REST API example
42-
compile 'com.google.api-client:google-api-client:1.22.0'
43-
compile 'com.google.api-client:google-api-client-android:1.22.0'
44-
compile 'com.google.apis:google-api-services-people:v1-rev139-1.22.0'
42+
implementation 'com.google.api-client:google-api-client:1.22.0'
43+
implementation 'com.google.api-client:google-api-client-android:1.22.0'
44+
implementation 'com.google.apis:google-api-services-people:v1-rev139-1.22.0'
4545

4646
// UiAutomatorTesting
47-
androidTestCompile 'com.android.support.test:runner:0.5'
48-
androidTestCompile 'com.android.support.test:rules:0.5'
49-
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
50-
androidTestCompile 'com.android.support:support-annotations:26.1.0'
47+
androidTestImplementation 'com.android.support.test:runner:0.5'
48+
androidTestImplementation 'com.android.support.test:rules:0.5'
49+
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
50+
androidTestImplementation 'com.android.support:support-annotations:27.1.0'
5151
}

0 commit comments

Comments
 (0)