Skip to content

Commit

Permalink
feat: update CallKit version to 5.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Jan 16, 2025
1 parent 62ec37b commit 3cfe210
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
versionName "5.12.0_OpenSourceCode"
versionName "5.12.1_OpenSourceCode"
}

sourceSets {
Expand Down
21 changes: 16 additions & 5 deletions src/main/java/io/rong/callkit/CallSelectMemberActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
Expand Down Expand Up @@ -373,11 +375,20 @@ public void onClearButtonClick() {
private void registerDisconnectBroadcastReceiver() {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(DISCONNECT_ACTION);
registerReceiver(
disconnectBroadcastReceiver,
intentFilter,
this.getApplicationInfo().packageName + ".permission.RONG_ACCESS_RECEIVER",
null);
if (VERSION.SDK_INT > VERSION_CODES.TIRAMISU) {
registerReceiver(
disconnectBroadcastReceiver,
intentFilter,
this.getApplicationInfo().packageName + ".permission.RONG_ACCESS_RECEIVER",
null,
Context.RECEIVER_NOT_EXPORTED);
} else {
registerReceiver(
disconnectBroadcastReceiver,
intentFilter,
this.getApplicationInfo().packageName + ".permission.RONG_ACCESS_RECEIVER",
null);
}
}

private void startSearchMember(String searchEditContent) {
Expand Down

0 comments on commit 3cfe210

Please sign in to comment.