Переглянути джерело

feat(android) target sdk 31

master
tmoldovan8x8 3 роки тому
джерело
коміт
fc6c389902
Аккаунт користувача з таким Email не знайдено

+ 2
- 1
android/app/build.gradle Переглянути файл

@@ -78,7 +78,7 @@ dependencies {
78 78
     implementation fileTree(dir: 'libs', include: ['*.jar'])
79 79
     implementation 'androidx.appcompat:appcompat:1.2.0'
80 80
 
81
-    debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
81
+    debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
82 82
 
83 83
     if (!rootProject.ext.libreBuild) {
84 84
         implementation 'com.google.android.gms:play-services-auth:16.0.1'
@@ -109,6 +109,7 @@ gradle.projectsEvaluated {
109 109
         def dropboxActivity = """
110 110
           <activity
111 111
               android:configChanges="keyboard|orientation"
112
+              android:exported="true"
112 113
               android:launchMode="singleTask"
113 114
               android:name="com.dropbox.core.android.AuthActivity">
114 115
             <intent-filter>

+ 1
- 0
android/app/src/main/AndroidManifest.xml Переглянути файл

@@ -14,6 +14,7 @@
14 14
         android:resource="@xml/app_restrictions" />
15 15
     <activity
16 16
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize"
17
+        android:exported="true"
17 18
         android:label="@string/app_name"
18 19
         android:launchMode="singleTask"
19 20
         android:name=".MainActivity"

+ 2
- 2
android/build.gradle Переглянути файл

@@ -18,9 +18,9 @@ buildscript {
18 18
 
19 19
 ext {
20 20
     buildToolsVersion = "30.0.3"
21
-    compileSdkVersion = 30
21
+    compileSdkVersion = 31
22 22
     minSdkVersion    = 23
23
-    targetSdkVersion = 30
23
+    targetSdkVersion = 31
24 24
     supportLibVersion = "28.0.0"
25 25
 
26 26
     // The Maven artifact groupdId of the third-party react-native modules which

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/OngoingNotification.java Переглянути файл

@@ -82,7 +82,7 @@ class OngoingNotification {
82 82
         }
83 83
 
84 84
         Intent notificationIntent = new Intent(context, context.getClass());
85
-        PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
85
+        PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE);
86 86
 
87 87
         NotificationCompat.Builder builder = new NotificationCompat.Builder(context, ONGOING_CONFERENCE_CHANNEL_ID);
88 88
 
@@ -125,7 +125,7 @@ class OngoingNotification {
125 125
         Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class);
126 126
         intent.setAction(action.getName());
127 127
         PendingIntent pendingIntent
128
-            = PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
128
+            = PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_IMMUTABLE);
129 129
         String title = context.getString(titleId);
130 130
         return new NotificationCompat.Action(0, title, pendingIntent);
131 131
     }

Завантаження…
Відмінити
Зберегти