Skip to content

Commit 473ca90

Browse files
jennantillajinliu9508
authored andcommitted
Merge pull request #1899 from OneSignal/rel/5.0.4
Release 5.0.4
2 parents 63e533d + 0cf48d5 commit 473ca90

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

Examples/OneSignalDemo/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ dependencies {
8484
implementation 'com.github.bumptech.glide:glide:4.12.0'
8585

8686
/** START - Google Play Builds **/
87-
gmsImplementation('com.onesignal:OneSignal:5.0.3')
87+
gmsImplementation('com.onesignal:OneSignal:5.0.4')
8888
/** END - Google Play Builds **/
8989

9090
/** START - Huawei Builds **/
9191
// Omit Google / Firebase libraries for Huawei builds.
92-
huaweiImplementation('com.onesignal:OneSignal:5.0.3') {
92+
huaweiImplementation('com.onesignal:OneSignal:5.0.4') {
9393
exclude group: 'com.google.android.gms', module: 'play-services-gcm'
9494
exclude group: 'com.google.android.gms', module: 'play-services-analytics'
9595
exclude group: 'com.google.android.gms', module: 'play-services-location'

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/OneSignalUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object OneSignalUtils {
66
/**
77
* The version of this SDK.
88
*/
9-
const val SDK_VERSION: String = "050003"
9+
const val SDK_VERSION: String = "050004"
1010

1111
fun isValidEmail(email: String): Boolean {
1212
if (email.isEmpty()) {

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/threading/ThreadUtils.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ fun suspendifyOnMain(block: suspend () -> Unit) {
4848
block()
4949
}
5050
}
51-
}
52-
catch (e: Exception) {
51+
} catch (e: Exception) {
5352
Logging.error("Exception on thread with switch to main", e)
5453
}
5554
}
@@ -70,8 +69,7 @@ fun suspendifyOnThread(
7069
runBlocking {
7170
block()
7271
}
73-
}
74-
catch (e: Exception) {
72+
} catch (e: Exception) {
7573
Logging.error("Exception on thread", e)
7674
}
7775
}
@@ -93,9 +91,8 @@ fun suspendifyOnThread(
9391
runBlocking {
9492
block()
9593
}
96-
}
97-
catch (e: Exception) {
98-
Logging.error("Exception on thread '${name}'", e)
94+
} catch (e: Exception) {
95+
Logging.error("Exception on thread '$name'", e)
9996
}
10097
}
10198
}

OneSignalSDK/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
gradle.rootProject {
44
allprojects {
55
group = 'com.onesignal'
6-
version = '5.0.3'
6+
version = '5.0.4'
77
configurations.all {
88
resolutionStrategy.dependencySubstitution {
99
substitute(module('com.onesignal:OneSignal')).using(project(':OneSignal'))

0 commit comments

Comments
 (0)