Skip to content

Commit b8c27f6

Browse files
author
Mehrdad Safari
committed
Execption For Fcm
1 parent c725923 commit b8c27f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ArTalkNotificationCore/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ dependencies {
3737
implementation("androidx.core:core-ktx:1.12.0")
3838
implementation("androidx.appcompat:appcompat:1.6.1")
3939
implementation ("androidx.work:work-runtime-ktx:2.9.0")
40-
implementation(platform("com.google.firebase:firebase-bom:32.7.0"))
41-
implementation("com.google.firebase:firebase-messaging:23.4.0")
40+
implementation(platform("com.google.firebase:firebase-bom:32.7.4"))
41+
implementation("com.google.firebase:firebase-messaging:23.4.1")
4242
implementation("androidx.security:security-crypto:1.1.0-alpha06")
4343
implementation("androidx.legacy:legacy-support-v4:1.0.0")
4444
implementation("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
@@ -52,7 +52,7 @@ publishing {
5252
register<MavenPublication>("release") {
5353
groupId = "com.github.araditc"
5454
artifactId = "push-notification-sdk"
55-
version = "1.2.1"
55+
version = "1.2.5"
5656

5757
afterEvaluate {
5858
from(components["release"])

ArTalkNotificationCore/src/main/java/com/araditc/anc/Arad.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ object Arad {
5757
return try {
5858
Tasks.await(tokenTask)
5959
} catch (e: ExecutionException) {
60-
throw tokenTask.exception!!
60+
return null
6161
}
6262
}
6363

app/src/main/java/com/araditc/ane/ui/Application.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class Application : Application() {
88
override fun onCreate() {
99
super.onCreate()
1010
//================================= Init APN SDK ===========================================
11-
// Arad.init(this , FirebaseConfig("{API_KEY}", "{APPLICATION_ID}" , "PROJECT_ID"))
11+
Arad.init(this , FirebaseConfig("{API_KEY}", "{APPLICATION_ID}" , "PROJECT_ID"))
1212
}
1313
}

0 commit comments

Comments
 (0)