feat(android) target sdk 31
This commit is contained in:
parent
12139655c6
commit
fc6c389902
|
@ -78,7 +78,7 @@ dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||||
|
|
||||||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
||||||
|
|
||||||
if (!rootProject.ext.libreBuild) {
|
if (!rootProject.ext.libreBuild) {
|
||||||
implementation 'com.google.android.gms:play-services-auth:16.0.1'
|
implementation 'com.google.android.gms:play-services-auth:16.0.1'
|
||||||
|
@ -109,6 +109,7 @@ gradle.projectsEvaluated {
|
||||||
def dropboxActivity = """
|
def dropboxActivity = """
|
||||||
<activity
|
<activity
|
||||||
android:configChanges="keyboard|orientation"
|
android:configChanges="keyboard|orientation"
|
||||||
|
android:exported="true"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:name="com.dropbox.core.android.AuthActivity">
|
android:name="com.dropbox.core.android.AuthActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
android:resource="@xml/app_restrictions" />
|
android:resource="@xml/app_restrictions" />
|
||||||
<activity
|
<activity
|
||||||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize"
|
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize"
|
||||||
|
android:exported="true"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
|
|
@ -18,9 +18,9 @@ buildscript {
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
buildToolsVersion = "30.0.3"
|
buildToolsVersion = "30.0.3"
|
||||||
compileSdkVersion = 30
|
compileSdkVersion = 31
|
||||||
minSdkVersion = 23
|
minSdkVersion = 23
|
||||||
targetSdkVersion = 30
|
targetSdkVersion = 31
|
||||||
supportLibVersion = "28.0.0"
|
supportLibVersion = "28.0.0"
|
||||||
|
|
||||||
// The Maven artifact groupdId of the third-party react-native modules which
|
// The Maven artifact groupdId of the third-party react-native modules which
|
||||||
|
|
|
@ -82,7 +82,7 @@ class OngoingNotification {
|
||||||
}
|
}
|
||||||
|
|
||||||
Intent notificationIntent = new Intent(context, context.getClass());
|
Intent notificationIntent = new Intent(context, context.getClass());
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
|
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE);
|
||||||
|
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, ONGOING_CONFERENCE_CHANNEL_ID);
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, ONGOING_CONFERENCE_CHANNEL_ID);
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ class OngoingNotification {
|
||||||
Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class);
|
Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class);
|
||||||
intent.setAction(action.getName());
|
intent.setAction(action.getName());
|
||||||
PendingIntent pendingIntent
|
PendingIntent pendingIntent
|
||||||
= PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
|
= PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_IMMUTABLE);
|
||||||
String title = context.getString(titleId);
|
String title = context.getString(titleId);
|
||||||
return new NotificationCompat.Action(0, title, pendingIntent);
|
return new NotificationCompat.Action(0, title, pendingIntent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue