Skip to content

Commit

Permalink
fix: default compile Android SDK version 31
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomoscon committed Aug 11, 2023
1 parent ca3468b commit d489656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -155,15 +155,15 @@ 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(
context,
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();
Expand Down

0 comments on commit d489656

Please sign in to comment.