@@ -30,24 +30,39 @@ android {
30
30
31
31
// api || implementation = compile and runtime
32
32
33
+ // KEEP: version ranges, these get used in the released POM file for maven central
33
34
dependencies {
34
35
compileOnly fileTree(dir : ' libs' , include : [' *.jar' ])
35
36
36
- compileOnly ' com.google.android.gms:play-services-gcm:16.0.0'
37
+ // play-services-gcm:16.1.0 is the last version before going to AndroidX
38
+ // compileOnly as this is just for fallback code if FCM wasn't added to the project.
39
+ // Remove for 4.0.0 release
40
+ compileOnly ' com.google.android.gms:play-services-gcm:16.1.0'
41
+
42
+ // play-services-location:16.0.0 is the last version before going to AndroidX
37
43
// Can be compileOnly in 4.0.0, can't change until then as some projects may rely on this
38
- implementation ' com.google.android.gms:play-services-location:16.0.0'
39
- implementation ' com.google.android.gms:play-services-ads-identifier:16.0.0'
40
- // Required for GoogleApiAvailability
41
- implementation ' com.google.android.gms:play-services-base:16.0.1'
44
+ implementation ' com.google.android.gms:play-services-location:[10.2.1, 16.0.99]'
42
45
43
- api ' com.google.firebase:firebase-messaging:17.3.3'
46
+ // play-services-ads-identifier:15.0.0 first version
47
+ // Classes used to live in play-services-base before this
48
+ // play-services-ads-identifier:16.0.0 is the last version before going to AndroidX
49
+ implementation ' com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99]'
50
+
51
+ // :play-services-base:16.1.0 is the last version before going to AndroidX
52
+ // Required for GoogleApiAvailability
53
+ implementation ' com.google.android.gms:play-services-base:[10.2.1, 16.1.99]'
44
54
45
- api ' com.android.support:cardview-v7:28 .0.0'
46
- api ' com.android.support:support-v4:28.0.0 '
47
- api ' com.android.support:customtabs:28.0.0 '
55
+ // firebase-messaging:18 .0.0 is the last version before going to AndroidX
56
+ // firebase-messaging:17.6.0 is the max version since we still have code looking for FirebaseInstanceIdService
57
+ api ' com.google.firebase:firebase-messaging:[10.2.1, 17.3.99] '
48
58
49
- // Change api to implementation. Need to check however this has any effect in production
50
- // projects that pull from maven.
59
+ // Keep under 28 until we switch to AndroidX
60
+ // otherwise app can get dup classes between 26 & 28 when mixing these versions.
61
+ // Also note, firebase & gms libraries use android.support:26.
62
+ // - They never refer to 27 or 28
63
+ api ' com.android.support:cardview-v7:[26.0.0, 27.99.99]'
64
+ api ' com.android.support:support-v4:[26.0.0, 27.99.99]'
65
+ api ' com.android.support:customtabs:[26.0.0, 27.99.99]'
51
66
}
52
67
53
68
apply from : ' maven-push.gradle'
0 commit comments