Skip to content

Commit c8b656b

Browse files
authored
Merge pull request #161 from prashantsaini1/main
fix(android): compiled with SDK 12.5.1.GA as 12.6.x breaks build process
2 parents fc7a185 + c57cc75 commit c8b656b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

android/manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# during compilation, packaging, distribution, etc.
44
#
55

6-
version: 3.5.0
6+
version: 3.5.1
77
apiversion: 4
88
architectures: arm64-v8a armeabi-v7a x86 x86_64
99
description: titanium-firebase-cloud-messaging

android/src/firebase/cloudmessaging/CloudMessagingModule.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ private KrollDict getLastData()
7171

7272
if (extras != null) {
7373
for (String key : extras.keySet()) {
74-
if (extras.get(key) instanceof Bundle bndl) {
74+
if (extras.get(key) instanceof Bundle) {
75+
Bundle bndl = (Bundle) extras.get(key);
7576
for (String bdnlKey : bndl.keySet()) {
7677
data.put(key + "_" + bdnlKey, bndl.get(bdnlKey));
7778
}
@@ -321,14 +322,14 @@ public void setNotificationChannel(Object channel)
321322
return;
322323
}
323324

324-
if (!(channel instanceof NotificationChannelProxy channelProxy)) {
325+
if (!(channel instanceof NotificationChannelProxy)) {
325326
return;
326327
}
327328

328329
NotificationManager notificationManager =
329330
(NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
330331
assert notificationManager != null;
331-
notificationManager.createNotificationChannel(channelProxy.getNotificationChannel());
332+
notificationManager.createNotificationChannel(((NotificationChannelProxy) channel).getNotificationChannel());
332333
}
333334

334335
// clang-format off

0 commit comments

Comments
 (0)