@nativescript/android 8.2.0-alpha.3 → 8.2.0-alpha.7

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.
@@ -156,10 +156,11 @@ class ErrorReport implements TabLayout.OnTabSelectedListener {
156
156
  static void startPendingErrorActivity(Context context, Intent intent) throws CanceledException {
157
157
  int flags = PendingIntent.FLAG_CANCEL_CURRENT;
158
158
  if (Build.VERSION.SDK_INT >= 31) {
159
- flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE;
159
+ int FLAG_MUTABLE = 1<<25;
160
+ flags = PendingIntent.FLAG_CANCEL_CURRENT | FLAG_MUTABLE;
160
161
  }
161
162
 
162
- PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
163
+ PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, flags);
163
164
 
164
165
  pendingIntent.send(context, 0, intent);
165
166
  }
@@ -35,6 +35,7 @@ public class ErrorReportActivity extends AppCompatActivity {
35
35
 
36
36
  // @Override
37
37
  public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
38
+ super.onRequestPermissionsResult(requestCode, permissions, grantResults);
38
39
  try {
39
40
  Method onRequestPermissionsResultMethod = AppCompatActivity.class.getMethod("onRequestPermissionsResult", int.class, permissions.getClass(), grantResults.getClass());
40
41
  onRequestPermissionsResultMethod.invoke(new AppCompatActivity() /* never do this */, requestCode, permissions, grantResults);
@@ -123,7 +123,7 @@ version of the {N} CLI install a previous version of the runtime package - 'tns
123
123
 
124
124
  def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "${kotlin_version}"
125
125
  }
126
- def computeBuildToolsVersion = { -> project.hasProperty("androidBuildToolsVersion") ? androidBuildToolsVersion : "7.0.2"}
126
+ def computeBuildToolsVersion = { -> project.hasProperty("androidBuildToolsVersion") ? androidBuildToolsVersion : "${ANDRIOD_BUILD_TOOLS_VERSION}"}
127
127
  def kotlinVersion = computeKotlinVersion()
128
128
  def androidBuildToolsVersion = computeBuildToolsVersion()
129
129
 
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.3",
4
+ "version": "8.2.0-alpha.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NativeScript/android-runtime.git"
@@ -11,7 +11,8 @@
11
11
  ],
12
12
  "versions": {
13
13
  "v8": "9.7.106.13",
14
- "gradle": "7.0.4",
14
+ "gradle": "7.0.2",
15
+ "gradleAndroid": "7.0.4",
15
16
  "ndk": "r22",
16
17
  "ndkApiLevel": "19",
17
18
  "minSdk": "19",
@@ -20,7 +21,7 @@
20
21
  "kotlin": "1.6.0"
21
22
  },
22
23
  "publishConfig": {
23
- "tag": "next",
24
+ "tag": "alpha",
24
25
  "access": "public"
25
26
  }
26
27
  }