@nativescript/android 8.2.0-alpha.4 → 8.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ import java.text.SimpleDateFormat;
14
14
  import java.util.Date;
15
15
 
16
16
  import android.Manifest;
17
+ import android.annotation.TargetApi;
17
18
  import android.app.Activity;
18
19
  import android.app.PendingIntent;
19
20
  import android.app.PendingIntent.CanceledException;
@@ -26,6 +27,8 @@ import android.os.Build;
26
27
  import android.os.Bundle;
27
28
  import android.os.Environment;
28
29
  import com.google.android.material.tabs.TabLayout;
30
+
31
+ import androidx.annotation.RequiresApi;
29
32
  import androidx.core.app.ActivityCompat;
30
33
  import androidx.fragment.app.Fragment;
31
34
  import androidx.fragment.app.FragmentManager;
@@ -153,10 +156,12 @@ class ErrorReport implements TabLayout.OnTabSelectedListener {
153
156
  android.os.Process.killProcess(android.os.Process.myPid());
154
157
  }
155
158
 
159
+
156
160
  static void startPendingErrorActivity(Context context, Intent intent) throws CanceledException {
157
161
  int flags = PendingIntent.FLAG_CANCEL_CURRENT;
158
162
  if (Build.VERSION.SDK_INT >= 31) {
159
- flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE;
163
+ int FLAG_MUTABLE = 1<<25;
164
+ flags = PendingIntent.FLAG_CANCEL_CURRENT | FLAG_MUTABLE;
160
165
  }
161
166
 
162
167
  PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, flags);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/android",
3
3
  "description": "NativeScript Runtime for Android",
4
- "version": "8.2.0-alpha.4",
4
+ "version": "8.2.0-alpha.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NativeScript/android-runtime.git"