Skip to content

Commit 735b9fb

Browse files
committed
upgrade gradle plugins, AGP to 7, and others
AGP (Android Gradle Plugin) version 7 requires Java 11 to run, however we don't want our SDK to require that have of a version so we set sourceCompatibility & targetCompatibility to account for that. Upgraded googleServicesGradlePluginVersion to ensure we are testing with the latest. Upgraded onesignalGradlePluginVersion to match our latest version range
1 parent 2e82dcb commit 735b9fb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

OneSignalSDK/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ buildscript {
77
compileSdkVersion: 31,
88
targetSdkVersion: 31
99
]
10-
androidGradlePluginVersion = '3.6.2'
11-
googleServicesGradlePluginVersion = '4.3.2'
10+
androidGradlePluginVersion = '7.0.4'
11+
googleServicesGradlePluginVersion = '4.3.10'
1212
huaweiAgconnectVersion = '1.2.1.301'
1313
huaweiHMSPushVersion = '5.3.0.304'
1414
huaweiHMSLocationVersion = '4.0.0.300'
1515
kotlinVersion = '1.4.32'
16-
onesignalGradlePluginVersion = '[0.12.6, 0.99.99]'
16+
onesignalGradlePluginVersion = '[0.14.0, 0.99.99]'
1717
}
1818

1919
repositories {

OneSignalSDK/onesignal/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ android {
2626
minifyEnabled false
2727
}
2828
}
29+
30+
// Forced downgrade to Java 8 so SDK is backwards compatible in consuming projects
31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
2935
}
3036

3137
// api || implementation = compile and runtime

0 commit comments

Comments
 (0)