@nativescript/android 8.2.0-alpha.1 → 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.
- package/framework/app/build.gradle +3 -3
- package/framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-optimized.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-regular.aar +0 -0
- package/framework/app/src/debug/java/com/tns/ErrorReport.java +11 -1
- package/framework/app/src/debug/java/com/tns/ErrorReportActivity.java +1 -0
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/dts-generator.jar +0 -0
- package/framework/build-tools/jsparser/js_parser.js +1 -1
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/framework/build.gradle +1 -1
- package/package.json +7 -7
|
@@ -512,15 +512,15 @@ def explodeAar(File compileDependency, File outputDir) {
|
|
|
512
512
|
Enumeration enumEntries = jar.entries()
|
|
513
513
|
while (enumEntries.hasMoreElements()) {
|
|
514
514
|
JarEntry file = (JarEntry) enumEntries.nextElement()
|
|
515
|
+
if (file.isDirectory()) {
|
|
516
|
+
continue
|
|
517
|
+
}
|
|
515
518
|
if (file.name.endsWith(".jar")) {
|
|
516
519
|
def targetFile = new File(outputDir, file.name)
|
|
517
520
|
InputStream inputStream = jar.getInputStream(file)
|
|
518
521
|
new File(targetFile.parent).mkdirs()
|
|
519
522
|
Files.copy(inputStream, targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
|
|
520
523
|
}
|
|
521
|
-
if (file.isDirectory()) {
|
|
522
|
-
continue
|
|
523
|
-
}
|
|
524
524
|
}
|
|
525
525
|
jar.close()
|
|
526
526
|
} else if (compileDependency.name.endsWith(".jar")) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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,8 +156,15 @@ 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;
|
|
162
|
+
if (Build.VERSION.SDK_INT >= 31) {
|
|
163
|
+
int FLAG_MUTABLE = 1<<25;
|
|
164
|
+
flags = PendingIntent.FLAG_CANCEL_CURRENT | FLAG_MUTABLE;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, flags);
|
|
158
168
|
|
|
159
169
|
pendingIntent.send(context, 0, intent);
|
|
160
170
|
}
|
|
@@ -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);
|
|
Binary file
|
|
Binary file
|