From d4896569aa2155f9e089ac249afb92027f837263 Mon Sep 17 00:00:00 2001 From: Fabrizio Moscon Date: Fri, 11 Aug 2023 16:33:30 +0100 Subject: [PATCH] fix: default compile Android SDK version 31 --- android/build.gradle | 2 +- .../hoxfon/react/RNTwilioVoice/CallNotificationManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c750e6d4..27a08e25 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,7 +25,7 @@ allprojects { apply plugin: 'com.android.library' def DEFAULT_MIN_SDK_VERSION = 23 -def DEFAULT_COMPILE_SDK_VERSION = 30 +def DEFAULT_COMPILE_SDK_VERSION = 31 def DEFAULT_BUILD_TOOLS_VERSION = "29.0.3" def DEFAULT_TARGET_SDK_VERSION = 29 def DEFAULT_SUPPORT_LIB_VERSION = "29.0.3" diff --git a/android/src/main/java/com/hoxfon/react/RNTwilioVoice/CallNotificationManager.java b/android/src/main/java/com/hoxfon/react/RNTwilioVoice/CallNotificationManager.java index 0e5a3951..44ed14bc 100644 --- a/android/src/main/java/com/hoxfon/react/RNTwilioVoice/CallNotificationManager.java +++ b/android/src/main/java/com/hoxfon/react/RNTwilioVoice/CallNotificationManager.java @@ -81,7 +81,7 @@ public void createMissedCallNotification(ReactApplicationContext context, String context, 0, intent, - PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT ); PendingIntent clearMissedCallsCountPendingIntent = PendingIntent.getBroadcast( @@ -155,7 +155,7 @@ public void createHangupNotification(ReactApplicationContext context, String cal context, 0, intent, - PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT ); PendingIntent hangupPendingIntent = PendingIntent.getBroadcast( @@ -163,7 +163,7 @@ public void createHangupNotification(ReactApplicationContext context, String cal 0, new Intent(Constants.ACTION_HANGUP_CALL) .putExtra(Constants.INCOMING_CALL_NOTIFICATION_ID, Constants.HANGUP_NOTIFICATION_ID), - PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT ); Bundle extras = new Bundle();