11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 28
4+ compileSdkVersion 31
55 defaultConfig {
66 // Normally we shouldn't need to redefine manifestPlaceholders for our onesignal project
77 // but Android Studio gets a sync error if these are not here.
@@ -10,7 +10,8 @@ android {
1010 manifestPlaceholders = [onesignal_app_id : ' ${onesignal_app_id}' ,
1111 // Project number pulled from dashboard, local value is ignored
1212 onesignal_google_project_number : ' ${onesignal_google_project_number}' ]
13- minSdkVersion 15
13+ minSdkVersion 26
14+ targetSdkVersion 31
1415 consumerProguardFiles ' consumer-proguard-rules.pro'
1516 }
1617
@@ -44,37 +45,37 @@ dependencies {
4445 compileOnly ' com.google.android.gms:play-services-gcm:16.1.0'
4546
4647 // play-services-location:16.0.0 is the last version before going to AndroidX
47- // Can be compileOnly in 4 .0.0, can't change until then as some projects may rely on this
48- implementation ' com.google.android.gms:play-services-location:[10.2.1, 16.0 .99]'
48+ // play-services-location:17 .0.0 is the first version using AndroidX
49+ compileOnly ' com.google.android.gms:play-services-location:[17.0.0, 17.99 .99]'
4950
50- // play-services-ads-identifier:15.0.0 first version
51- // Classes used to live in play-services-base before this
5251 // play-services-ads-identifier:16.0.0 is the last version before going to AndroidX
53- implementation ' com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99]'
52+ // play-services-ads-identifier:17.0.0 is the first version using AndroidX
53+ // Classes used to live in play-services-base before this
54+ implementation ' com.google.android.gms:play-services-ads-identifier:[17.0.0, 17.99.99]'
5455
55- // :play-services-base:16.1.0 is the last version before going to AndroidX
56+ // play-services-base:16.1.0 is the last version before going to AndroidX
57+ // play-services-base:17.0.0 is the first version using AndroidX
5658 // Required for GoogleApiAvailability
57- implementation ' com.google.android.gms:play-services-base:[10.2.1, 16.1 .99]'
59+ implementation ' com.google.android.gms:play-services-base:[17.0.0, 17.99 .99]'
5860
5961 // firebase-messaging:18.0.0 is the last version before going to AndroidX
6062 // firebase-messaging:17.6.0 is the max version since we still have code looking for FirebaseInstanceIdService
61- api ' com.google.firebase:firebase-messaging:[10.2.1, 17.3.99] '
63+ api ' com.google.firebase:firebase-messaging:17.6.0 '
6264
6365 // Huawei PushKit
6466 // KEEP as "compileOnly", so OneSignal isn't a direct dependency in the POM file.
6567 compileOnly ' com.huawei.hms:push:4.0.3.301'
6668 compileOnly ' com.huawei.hms:location:4.0.0.300'
6769
68- // Keep under 28 until we switch to AndroidX
69- // otherwise app can get dup classes between 26 & 28 when mixing these versions.
70- // Also note, firebase & gms libraries use android.support:26.
71- // - They never refer to 27 or 28
72- api ' com.android.support:cardview-v7:[26.0.0, 27.99.99]'
73- api ' com.android.support:support-fragment:[26.0.0, 27.99.99]'
74- api ' com.android.support:customtabs:[26.0.0, 27.99.99]'
70+ api ' androidx.cardview:cardview:[1.0.0, 1.99.99]'
71+ api ' androidx.legacy:legacy-support-v4:[1.0.0, 1.99.99]'
72+ api ' androidx.browser:browser:[1.0.0, 1.99.99]'
73+ api ' androidx.appcompat:appcompat:[1.0.0, 1.99.99]'
7574
76- // compileOnly as this is just for fallback code if AppCompatActivity wasn't added to the project.
77- compileOnly ' com.android.support:appcompat-v7:26.1.0'
75+ implementation ' androidx.annotation:annotation-jvm:1.7.0'
76+
77+ implementation " org.jetbrains.kotlin:kotlin-stdlib:1.8.22"
78+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22"
7879}
7980
8081apply from : ' maven-push.gradle'
0 commit comments