@nativescript/android 8.5.4 → 8.6.0
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 +10 -5
- 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 +94 -13
- package/framework/app/src/debug/res/layout/error_activity.xml +55 -32
- package/framework/app/src/debug/res/layout/exception_tab.xml +49 -30
- package/framework/app/src/debug/res/layout/logcat_tab.xml +42 -23
- package/framework/app/src/debug/res/values/colors.xml +5 -2
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/framework/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/framework/gradle/wrapper/gradle-wrapper.properties +1 -2
- package/framework/gradle.properties +1 -2
- package/framework/gradlew +177 -109
- package/framework/gradlew.bat +31 -24
- package/package.json +5 -5
- package/framework/build-tools/dts-generator.jar +0 -0
|
@@ -190,6 +190,7 @@ def setAppIdentifier = { ->
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
android {
|
|
193
|
+
|
|
193
194
|
applyBeforePluginGradleConfiguration()
|
|
194
195
|
|
|
195
196
|
if (enableKotlin) {
|
|
@@ -490,7 +491,9 @@ tasks.whenTaskAdded({ DefaultTask currentTask ->
|
|
|
490
491
|
|
|
491
492
|
task runSbg(type: BuildToolTask) {
|
|
492
493
|
dependsOn "collectAllJars"
|
|
494
|
+
def rootPath = "";
|
|
493
495
|
if (!findProject(':static-binding-generator').is(null)) {
|
|
496
|
+
rootPath = Paths.get(project(':static-binding-generator').projectDir.path, "build/libs").toString()
|
|
494
497
|
dependsOn ':static-binding-generator:jar'
|
|
495
498
|
}
|
|
496
499
|
|
|
@@ -499,10 +502,10 @@ task runSbg(type: BuildToolTask) {
|
|
|
499
502
|
inputs.dir(extractedDependenciesDir)
|
|
500
503
|
|
|
501
504
|
workingDir "$BUILD_TOOLS_PATH"
|
|
502
|
-
|
|
505
|
+
mainClass = "-jar"
|
|
503
506
|
|
|
504
507
|
def paramz = new ArrayList<String>()
|
|
505
|
-
paramz.add("static-binding-generator.jar")
|
|
508
|
+
paramz.add(Paths.get(rootPath,"static-binding-generator.jar"))
|
|
506
509
|
|
|
507
510
|
if (failOnCompilationWarningsEnabled()) {
|
|
508
511
|
paramz.add("-show-deprecation-warnings")
|
|
@@ -735,7 +738,9 @@ def listf(String directoryName, ArrayList<File> store) {
|
|
|
735
738
|
}
|
|
736
739
|
|
|
737
740
|
task buildMetadata(type: BuildToolTask) {
|
|
741
|
+
def rootPath = "";
|
|
738
742
|
if (!findProject(':android-metadata-generator').is(null)) {
|
|
743
|
+
rootPath = Paths.get(project(':android-metadata-generator').projectDir.path, "build/libs").toString()
|
|
739
744
|
dependsOn ':android-metadata-generator:jar'
|
|
740
745
|
}
|
|
741
746
|
|
|
@@ -767,7 +772,7 @@ task buildMetadata(type: BuildToolTask) {
|
|
|
767
772
|
outputs.files("$METADATA_OUT_PATH/treeNodeStream.dat", "$METADATA_OUT_PATH/treeStringsStream.dat", "$METADATA_OUT_PATH/treeValueStream.dat")
|
|
768
773
|
|
|
769
774
|
workingDir "$BUILD_TOOLS_PATH"
|
|
770
|
-
|
|
775
|
+
mainClass = "-jar"
|
|
771
776
|
|
|
772
777
|
doFirst {
|
|
773
778
|
// get compiled classes to pass to metadata generator
|
|
@@ -839,7 +844,7 @@ task buildMetadata(type: BuildToolTask) {
|
|
|
839
844
|
setOutputs outLogger
|
|
840
845
|
|
|
841
846
|
def paramz = new ArrayList<String>()
|
|
842
|
-
paramz.add("android-metadata-generator.jar")
|
|
847
|
+
paramz.add(Paths.get(rootPath, "android-metadata-generator.jar"))
|
|
843
848
|
|
|
844
849
|
if(enableAnalytics){
|
|
845
850
|
paramz.add("analyticsFilePath=$analyticsFilePath")
|
|
@@ -862,7 +867,7 @@ task generateTypescriptDefinitions(type: BuildToolTask) {
|
|
|
862
867
|
def includeDirs = ["com.android.support", "/platforms/" + android.compileSdkVersion]
|
|
863
868
|
|
|
864
869
|
workingDir "$BUILD_TOOLS_PATH"
|
|
865
|
-
|
|
870
|
+
mainClass = "-jar"
|
|
866
871
|
|
|
867
872
|
doFirst {
|
|
868
873
|
delete "$TYPINGS_PATH"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -19,13 +19,17 @@ import android.app.PendingIntent;
|
|
|
19
19
|
import android.app.PendingIntent.CanceledException;
|
|
20
20
|
import android.content.ClipData;
|
|
21
21
|
import android.content.ClipboardManager;
|
|
22
|
+
import android.content.ComponentName;
|
|
22
23
|
import android.content.Context;
|
|
23
24
|
import android.content.Intent;
|
|
24
25
|
import android.content.pm.PackageManager;
|
|
26
|
+
import android.graphics.Color;
|
|
25
27
|
import android.os.Build;
|
|
26
28
|
import android.os.Bundle;
|
|
27
29
|
import android.os.Environment;
|
|
28
30
|
import com.google.android.material.tabs.TabLayout;
|
|
31
|
+
|
|
32
|
+
import androidx.annotation.NonNull;
|
|
29
33
|
import androidx.core.app.ActivityCompat;
|
|
30
34
|
import androidx.fragment.app.Fragment;
|
|
31
35
|
import androidx.fragment.app.FragmentManager;
|
|
@@ -33,7 +37,15 @@ import androidx.fragment.app.FragmentStatePagerAdapter;
|
|
|
33
37
|
import androidx.viewpager.widget.ViewPager;
|
|
34
38
|
import androidx.appcompat.app.AppCompatActivity;
|
|
35
39
|
import androidx.appcompat.widget.Toolbar;
|
|
40
|
+
|
|
41
|
+
import android.text.SpannableString;
|
|
42
|
+
import android.text.SpannableStringBuilder;
|
|
43
|
+
import android.text.method.LinkMovementMethod;
|
|
36
44
|
import android.text.method.ScrollingMovementMethod;
|
|
45
|
+
import android.text.style.AbsoluteSizeSpan;
|
|
46
|
+
import android.text.style.ClickableSpan;
|
|
47
|
+
import android.text.style.ForegroundColorSpan;
|
|
48
|
+
import android.text.style.StyleSpan;
|
|
37
49
|
import android.util.Log;
|
|
38
50
|
import android.view.LayoutInflater;
|
|
39
51
|
import android.view.View;
|
|
@@ -42,7 +54,6 @@ import android.widget.Button;
|
|
|
42
54
|
import android.widget.TextView;
|
|
43
55
|
import android.widget.Toast;
|
|
44
56
|
|
|
45
|
-
|
|
46
57
|
class ErrorReport implements TabLayout.OnTabSelectedListener {
|
|
47
58
|
public static final String ERROR_FILE_NAME = "hasError";
|
|
48
59
|
private static AppCompatActivity activity;
|
|
@@ -349,26 +360,96 @@ class ErrorReport implements TabLayout.OnTabSelectedListener {
|
|
|
349
360
|
}
|
|
350
361
|
}
|
|
351
362
|
|
|
352
|
-
|
|
363
|
+
|
|
364
|
+
public static class ExceptionTab extends Fragment {
|
|
365
|
+
|
|
366
|
+
public SpannableStringBuilder getStyledStacktrace(String trace) {
|
|
367
|
+
if (trace == null) return null;
|
|
368
|
+
String[] traceLines = trace.trim().split("\n");
|
|
369
|
+
SpannableStringBuilder builder = new SpannableStringBuilder();
|
|
370
|
+
boolean firstLine = true;
|
|
371
|
+
for (String line: traceLines) {
|
|
372
|
+
if (firstLine) {
|
|
373
|
+
firstLine = false;
|
|
374
|
+
} else {
|
|
375
|
+
builder.append("\n");
|
|
376
|
+
builder.append("\n");
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
String[] nameAndPath = line.trim().split("\\(");
|
|
380
|
+
SpannableString nameSpan = new SpannableString(nameAndPath[0]);
|
|
381
|
+
nameSpan.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), 0, nameAndPath[0].length(), 0);
|
|
382
|
+
builder.append(nameSpan);
|
|
383
|
+
|
|
384
|
+
builder.append(" ");
|
|
385
|
+
if (nameAndPath.length > 1) {
|
|
386
|
+
SpannableString pathSpan = new SpannableString("(" + nameAndPath[1]);
|
|
387
|
+
pathSpan.setSpan(new AbsoluteSizeSpan(13, true),0, nameAndPath[1].length() + 1, 0);
|
|
388
|
+
pathSpan.setSpan(new ClickableSpan() {
|
|
389
|
+
@Override
|
|
390
|
+
public void onClick(@NonNull View widget) {
|
|
391
|
+
Log.d("JS", line.trim());
|
|
392
|
+
}
|
|
393
|
+
}, 0,nameAndPath[1].length() + 1, 0);
|
|
394
|
+
pathSpan.setSpan(new ForegroundColorSpan(Color.GRAY),0, nameAndPath[1].length() + 1, 0);
|
|
395
|
+
|
|
396
|
+
builder.append(pathSpan);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return builder;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
public static void restartApp(Context context) {
|
|
403
|
+
PackageManager packageManager = context.getPackageManager();
|
|
404
|
+
Intent intent = packageManager.getLaunchIntentForPackage(context.getPackageName());
|
|
405
|
+
ComponentName componentName = intent.getComponent();
|
|
406
|
+
Intent mainIntent = Intent.makeRestartActivityTask(componentName);
|
|
407
|
+
context.startActivity(mainIntent);
|
|
408
|
+
java.lang.Runtime.getRuntime().exit(0);
|
|
409
|
+
}
|
|
410
|
+
|
|
353
411
|
@Override
|
|
354
412
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
355
413
|
int exceptionTabId = container.getContext().getResources().getIdentifier("exception_tab", "layout", container.getContext().getPackageName());
|
|
356
414
|
View view = inflater.inflate(exceptionTabId, container, false);
|
|
357
415
|
|
|
358
|
-
int
|
|
359
|
-
TextView
|
|
360
|
-
|
|
361
|
-
|
|
416
|
+
int errorExceptionViewId = activity.getResources().getIdentifier("errorException", "id", activity.getPackageName());
|
|
417
|
+
TextView errorExceptionView = (TextView) activity.findViewById(errorExceptionViewId);
|
|
418
|
+
errorExceptionView.setMovementMethod(new ScrollingMovementMethod());
|
|
419
|
+
|
|
420
|
+
int errorStackTraceViewId = container.getContext().getResources().getIdentifier("errorStacktrace", "id", container.getContext().getPackageName());
|
|
421
|
+
TextView errorStackTraceView = (TextView) view.findViewById(errorStackTraceViewId);
|
|
422
|
+
|
|
423
|
+
String[] exceptionParts = exceptionMsg.split("StackTrace:");
|
|
424
|
+
String error = exceptionParts[0];
|
|
425
|
+
String trace = "";
|
|
426
|
+
|
|
427
|
+
if (exceptionParts.length > 1) {
|
|
428
|
+
for (int i=0;i < exceptionParts.length;i++) {
|
|
429
|
+
if (i == 0) continue;
|
|
430
|
+
trace += exceptionParts[i];
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
errorExceptionView.setText(error.trim());
|
|
435
|
+
|
|
436
|
+
errorStackTraceView.setText(trace != null ? getStyledStacktrace(trace) : "", TextView.BufferType.SPANNABLE);
|
|
437
|
+
errorStackTraceView.setMovementMethod(new ScrollingMovementMethod());
|
|
438
|
+
errorStackTraceView.setMovementMethod(LinkMovementMethod.getInstance());
|
|
439
|
+
errorStackTraceView.setEnabled(true);
|
|
362
440
|
|
|
363
441
|
int btnCopyExceptionId = container.getContext().getResources().getIdentifier("btnCopyException", "id", container.getContext().getPackageName());
|
|
364
442
|
Button copyToClipboard = (Button) view.findViewById(btnCopyExceptionId);
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
443
|
+
|
|
444
|
+
int btnRestartAppId = container.getContext().getResources().getIdentifier("btnRestartApp", "id", container.getContext().getPackageName());
|
|
445
|
+
Button restartApp = (Button) view.findViewById(btnRestartAppId);
|
|
446
|
+
restartApp.setOnClickListener(v -> {
|
|
447
|
+
restartApp(getContext().getApplicationContext());
|
|
448
|
+
});
|
|
449
|
+
copyToClipboard.setOnClickListener(v -> {
|
|
450
|
+
ClipboardManager clipboard = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
|
|
451
|
+
ClipData clip = ClipData.newPlainText("nsError", exceptionMsg);
|
|
452
|
+
clipboard.setPrimaryClip(clip);
|
|
372
453
|
});
|
|
373
454
|
|
|
374
455
|
return view;
|
|
@@ -1,39 +1,62 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<androidx.appcompat.widget.Toolbar
|
|
11
|
-
android:id="@+id/toolbar"
|
|
12
|
-
android:layout_width="match_parent"
|
|
13
|
-
android:layout_height="wrap_content"
|
|
14
|
-
android:minHeight="?attr/actionBarSize"/>
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="match_parent"
|
|
6
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
7
|
+
android:background="@color/gray"
|
|
8
|
+
tools:context="com.tns.ErrorReportActivity"
|
|
9
|
+
android:theme="@style/Widget.AppCompat.Light.ActionBar">
|
|
15
10
|
|
|
16
|
-
<androidx.viewpager.widget.ViewPager
|
|
17
|
-
android:id="@+id/pager"
|
|
18
|
-
android:layout_width="match_parent"
|
|
19
|
-
android:layout_height="fill_parent"
|
|
20
|
-
android:layout_below="@+id/toolbar"
|
|
21
|
-
android:scrollbarAlwaysDrawVerticalTrack="false">
|
|
22
11
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<com.google.android.material.tabs.TabLayout
|
|
26
|
-
android:id="@+id/tabLayout"
|
|
12
|
+
<TextView
|
|
13
|
+
android:id="@+id/errorException"
|
|
27
14
|
android:layout_width="match_parent"
|
|
28
15
|
android:layout_height="wrap_content"
|
|
29
|
-
android:
|
|
30
|
-
android:
|
|
31
|
-
|
|
32
|
-
android:
|
|
33
|
-
android:
|
|
34
|
-
android:
|
|
16
|
+
android:text=""
|
|
17
|
+
android:background="@color/red"
|
|
18
|
+
android:textSize="16sp"
|
|
19
|
+
android:paddingLeft="16dp"
|
|
20
|
+
android:textIsSelectable="true"
|
|
21
|
+
android:maxHeight="200dp"
|
|
35
22
|
android:scrollbars="vertical"
|
|
36
|
-
|
|
37
|
-
android:
|
|
38
|
-
/>
|
|
39
|
-
|
|
23
|
+
android:textColor="@color/white"
|
|
24
|
+
android:paddingVertical="10dp"
|
|
25
|
+
android:paddingRight="16dp" />
|
|
26
|
+
|
|
27
|
+
<RelativeLayout
|
|
28
|
+
android:layout_below="@id/errorException"
|
|
29
|
+
android:layout_width="wrap_content"
|
|
30
|
+
android:layout_height="wrap_content">
|
|
31
|
+
|
|
32
|
+
<androidx.appcompat.widget.Toolbar
|
|
33
|
+
android:id="@+id/toolbar"
|
|
34
|
+
android:layout_width="match_parent"
|
|
35
|
+
android:layout_height="wrap_content"
|
|
36
|
+
android:minHeight="?attr/actionBarSize" />
|
|
37
|
+
|
|
38
|
+
<androidx.viewpager.widget.ViewPager
|
|
39
|
+
android:id="@+id/pager"
|
|
40
|
+
android:layout_width="match_parent"
|
|
41
|
+
android:layout_height="fill_parent"
|
|
42
|
+
android:layout_below="@+id/toolbar"
|
|
43
|
+
android:scrollbarAlwaysDrawVerticalTrack="false">
|
|
44
|
+
|
|
45
|
+
</androidx.viewpager.widget.ViewPager>
|
|
46
|
+
|
|
47
|
+
<com.google.android.material.tabs.TabLayout
|
|
48
|
+
android:id="@+id/tabLayout"
|
|
49
|
+
android:layout_width="match_parent"
|
|
50
|
+
android:layout_height="wrap_content"
|
|
51
|
+
android:background="@color/gray"
|
|
52
|
+
android:minHeight="?attr/actionBarSize"
|
|
53
|
+
app:tabIndicatorColor="@color/nativescript_blue"
|
|
54
|
+
android:layout_alignParentTop="true"
|
|
55
|
+
android:layout_alignParentStart="true"
|
|
56
|
+
android:scrollbarStyle="insideOverlay"
|
|
57
|
+
android:scrollbars="vertical"
|
|
58
|
+
tools:tabBackground="@color/gray_color"
|
|
59
|
+
android:scrollbarAlwaysDrawVerticalTrack="false" />
|
|
60
|
+
</RelativeLayout>
|
|
61
|
+
|
|
62
|
+
</RelativeLayout>
|
|
@@ -1,52 +1,71 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
android:paddingRight="16dp"
|
|
10
|
-
android:paddingTop="10dp">
|
|
11
|
-
|
|
12
|
-
<Button
|
|
13
|
-
android:id="@+id/btnCopyException"
|
|
14
|
-
android:layout_width="match_parent"
|
|
15
|
-
android:layout_height="wrap_content"
|
|
16
|
-
android:layout_alignParentBottom="true"
|
|
17
|
-
android:layout_centerHorizontal="true"
|
|
18
|
-
android:background="@color/nativescript_blue"
|
|
19
|
-
android:paddingLeft="20dp"
|
|
20
|
-
android:paddingRight="20dp"
|
|
21
|
-
android:text="Copy to clipboard"
|
|
22
|
-
android:textAlignment="textStart"
|
|
23
|
-
android:textColor="@android:color/white"
|
|
24
|
-
tools:layout_width="match_parent"/>
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:background="@color/gray"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:orientation="vertical">
|
|
8
|
+
|
|
25
9
|
|
|
26
10
|
<LinearLayout
|
|
27
11
|
android:id="@+id/linearLayout"
|
|
28
12
|
android:layout_width="match_parent"
|
|
29
13
|
android:layout_height="wrap_content"
|
|
30
|
-
android:layout_above="@+id/
|
|
14
|
+
android:layout_above="@+id/bottomButtonRow"
|
|
31
15
|
android:layout_alignParentStart="true"
|
|
32
16
|
android:layout_alignParentTop="true"
|
|
33
17
|
android:orientation="vertical"
|
|
34
|
-
android:paddingBottom="10dp"
|
|
35
18
|
android:weightSum="100">
|
|
36
19
|
|
|
20
|
+
|
|
37
21
|
<TextView
|
|
38
|
-
android:id="@+id/
|
|
22
|
+
android:id="@+id/errorStacktrace"
|
|
39
23
|
android:layout_width="match_parent"
|
|
40
24
|
android:layout_height="wrap_content"
|
|
41
25
|
android:text=""
|
|
42
|
-
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
43
|
-
android:paddingLeft="2dp"
|
|
44
|
-
android:paddingRight="2dp"
|
|
45
26
|
android:scrollbars="vertical"
|
|
46
27
|
android:scrollbarStyle="outsideOverlay"
|
|
47
|
-
android:
|
|
28
|
+
android:paddingLeft="16dp"
|
|
29
|
+
android:paddingRight="16dp"
|
|
30
|
+
android:scrollbarAlwaysDrawVerticalTrack="true" />
|
|
31
|
+
|
|
32
|
+
</LinearLayout>
|
|
33
|
+
|
|
34
|
+
<LinearLayout
|
|
35
|
+
android:id="@+id/bottomButtonRow"
|
|
36
|
+
android:layout_width="match_parent"
|
|
37
|
+
android:orientation="horizontal"
|
|
38
|
+
android:layout_alignParentBottom="true"
|
|
39
|
+
android:layout_centerHorizontal="true"
|
|
40
|
+
android:paddingBottom="10dp"
|
|
41
|
+
android:paddingLeft="16dp"
|
|
42
|
+
android:paddingRight="16dp"
|
|
43
|
+
android:paddingTop="10dp"
|
|
44
|
+
android:layout_height="wrap_content">
|
|
45
|
+
|
|
46
|
+
<Button
|
|
47
|
+
android:id="@+id/btnRestartApp"
|
|
48
|
+
android:text="Restart APP"
|
|
49
|
+
android:textAlignment="center"
|
|
50
|
+
android:textColor="@android:color/white"
|
|
51
|
+
android:background="@drawable/button_accented"
|
|
52
|
+
android:layout_width="0dp"
|
|
53
|
+
android:layout_height="wrap_content"
|
|
54
|
+
android:layout_weight="1"
|
|
55
|
+
android:layout_marginRight="10dp" />
|
|
56
|
+
|
|
57
|
+
<Button
|
|
58
|
+
android:id="@+id/btnCopyException"
|
|
59
|
+
android:textColor="@android:color/white"
|
|
60
|
+
android:text="Copy"
|
|
61
|
+
android:background="@drawable/button"
|
|
62
|
+
android:textAlignment="center"
|
|
63
|
+
android:layout_width="0dp"
|
|
64
|
+
android:layout_height="wrap_content"
|
|
65
|
+
android:layout_weight="1" />
|
|
66
|
+
|
|
48
67
|
|
|
49
68
|
</LinearLayout>
|
|
50
69
|
|
|
51
70
|
|
|
52
|
-
</RelativeLayout>
|
|
71
|
+
</RelativeLayout>
|
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<Button
|
|
13
|
-
android:id="@+id/btnCopyLogcat"
|
|
14
|
-
android:layout_height="wrap_content"
|
|
15
|
-
android:text="Copy to sdcard"
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="match_parent"
|
|
6
|
+
android:background="@color/gray"
|
|
7
|
+
android:orientation="vertical">
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<LinearLayout
|
|
11
|
+
android:id="@+id/bottomButtonRow"
|
|
16
12
|
android:layout_width="match_parent"
|
|
17
|
-
android:
|
|
18
|
-
android:textColor="@android:color/white"
|
|
19
|
-
android:textAlignment="textStart"
|
|
20
|
-
android:paddingLeft="20dp"
|
|
21
|
-
android:paddingRight="20dp"
|
|
13
|
+
android:orientation="horizontal"
|
|
22
14
|
android:layout_alignParentBottom="true"
|
|
23
15
|
android:layout_centerHorizontal="true"
|
|
24
|
-
|
|
16
|
+
android:paddingBottom="10dp"
|
|
17
|
+
android:paddingLeft="16dp"
|
|
18
|
+
android:paddingRight="16dp"
|
|
19
|
+
android:paddingTop="10dp"
|
|
20
|
+
android:layout_height="wrap_content">
|
|
21
|
+
|
|
22
|
+
<Button
|
|
23
|
+
android:id="@+id/btnCopyLogcat"
|
|
24
|
+
android:layout_height="wrap_content"
|
|
25
|
+
android:text="Copy to sdcard"
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:background="@drawable/button"
|
|
28
|
+
android:textColor="@android:color/white"
|
|
29
|
+
android:textAlignment="center"
|
|
30
|
+
android:paddingLeft="20dp"
|
|
31
|
+
android:paddingRight="20dp"
|
|
32
|
+
android:layout_marginRight="10dp"
|
|
33
|
+
android:layout_marginLeft="10dp"
|
|
34
|
+
android:layout_alignParentBottom="true"
|
|
35
|
+
android:layout_centerHorizontal="true"
|
|
36
|
+
tools:layout_width="match_parent" />
|
|
37
|
+
|
|
38
|
+
</LinearLayout>
|
|
39
|
+
|
|
25
40
|
|
|
26
41
|
<LinearLayout
|
|
27
42
|
android:id="@+id/logcatLinearLayout"
|
|
@@ -31,8 +46,12 @@
|
|
|
31
46
|
android:weightSum="100"
|
|
32
47
|
android:layout_alignParentTop="true"
|
|
33
48
|
android:layout_alignParentStart="true"
|
|
34
|
-
android:layout_above="@+id/
|
|
35
|
-
android:paddingBottom="10dp"
|
|
49
|
+
android:layout_above="@+id/bottomButtonRow"
|
|
50
|
+
android:paddingBottom="10dp"
|
|
51
|
+
android:paddingTop="10dp"
|
|
52
|
+
android:paddingLeft="16dp"
|
|
53
|
+
android:paddingRight="16dp"
|
|
54
|
+
>
|
|
36
55
|
|
|
37
56
|
<TextView
|
|
38
57
|
android:id="@+id/logcatMsg"
|
|
@@ -44,9 +63,9 @@
|
|
|
44
63
|
android:paddingRight="2dp"
|
|
45
64
|
android:scrollbars="vertical"
|
|
46
65
|
android:scrollbarStyle="outsideOverlay"
|
|
47
|
-
android:scrollbarAlwaysDrawVerticalTrack="true"/>
|
|
66
|
+
android:scrollbarAlwaysDrawVerticalTrack="true" />
|
|
48
67
|
|
|
49
68
|
</LinearLayout>
|
|
50
69
|
|
|
51
70
|
|
|
52
|
-
</RelativeLayout>
|
|
71
|
+
</RelativeLayout>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<resources>
|
|
3
|
-
<color name="nativescript_blue">#
|
|
4
|
-
</
|
|
3
|
+
<color name="nativescript_blue">#65ADF1</color>
|
|
4
|
+
<color name="gray">#1c1917</color>
|
|
5
|
+
<color name="red">#dc2626</color>
|
|
6
|
+
<color name="white">#ffffff</color>
|
|
7
|
+
</resources>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
#Sat Mar 05 12:37:00 CET 2022
|
|
2
1
|
distributionBase=GRADLE_USER_HOME
|
|
3
2
|
distributionPath=wrapper/dists
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
6
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# Specifies the JVM arguments used for the daemon process.
|
|
16
16
|
# The setting is particularly useful for tweaking memory settings.
|
|
17
17
|
org.gradle.jvmargs=-Xmx16384M
|
|
18
|
-
|
|
19
18
|
android.enableJetifier=true
|
|
20
19
|
android.useAndroidX=true
|
|
21
20
|
|
|
@@ -23,7 +22,7 @@ android.useAndroidX=true
|
|
|
23
22
|
NS_DEFAULT_BUILD_TOOLS_VERSION=33.0.0
|
|
24
23
|
NS_DEFAULT_COMPILE_SDK_VERSION=33
|
|
25
24
|
NS_DEFAULT_MIN_SDK_VERSION=17
|
|
26
|
-
NS_DEFAULT_ANDROID_BUILD_TOOLS_VERSION=7.
|
|
25
|
+
NS_DEFAULT_ANDROID_BUILD_TOOLS_VERSION=7.4.2
|
|
27
26
|
|
|
28
27
|
ns_default_androidx_appcompat_version = 1.5.1
|
|
29
28
|
ns_default_androidx_exifinterface_version = 1.3.3
|
package/framework/gradlew
CHANGED
|
@@ -1,78 +1,129 @@
|
|
|
1
|
-
#!/
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Copyright © 2015-2021 the original authors.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
2
18
|
|
|
3
19
|
##############################################################################
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
20
|
+
#
|
|
21
|
+
# Gradle start up script for POSIX generated by Gradle.
|
|
22
|
+
#
|
|
23
|
+
# Important for running:
|
|
24
|
+
#
|
|
25
|
+
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
|
26
|
+
# noncompliant, but you have some other compliant shell such as ksh or
|
|
27
|
+
# bash, then to run this script, type that shell name before the whole
|
|
28
|
+
# command line, like:
|
|
29
|
+
#
|
|
30
|
+
# ksh Gradle
|
|
31
|
+
#
|
|
32
|
+
# Busybox and similar reduced shells will NOT work, because this script
|
|
33
|
+
# requires all of these POSIX shell features:
|
|
34
|
+
# * functions;
|
|
35
|
+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
|
36
|
+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
|
37
|
+
# * compound commands having a testable exit status, especially «case»;
|
|
38
|
+
# * various built-in commands including «command», «set», and «ulimit».
|
|
39
|
+
#
|
|
40
|
+
# Important for patching:
|
|
41
|
+
#
|
|
42
|
+
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
|
43
|
+
# by Bash, Ksh, etc; in particular arrays are avoided.
|
|
44
|
+
#
|
|
45
|
+
# The "traditional" practice of packing multiple parameters into a
|
|
46
|
+
# space-separated string is a well documented source of bugs and security
|
|
47
|
+
# problems, so this is (mostly) avoided, by progressively accumulating
|
|
48
|
+
# options in "$@", and eventually passing that to Java.
|
|
49
|
+
#
|
|
50
|
+
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
|
51
|
+
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
|
52
|
+
# see the in-line comments for details.
|
|
53
|
+
#
|
|
54
|
+
# There are tweaks for specific operating systems such as AIX, CygWin,
|
|
55
|
+
# Darwin, MinGW, and NonStop.
|
|
56
|
+
#
|
|
57
|
+
# (3) This script is generated from the Groovy template
|
|
58
|
+
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
|
59
|
+
# within the Gradle project.
|
|
60
|
+
#
|
|
61
|
+
# You can find Gradle at https://github.com/gradle/gradle/.
|
|
62
|
+
#
|
|
7
63
|
##############################################################################
|
|
8
64
|
|
|
9
65
|
# Attempt to set APP_HOME
|
|
66
|
+
|
|
10
67
|
# Resolve links: $0 may be a link
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
68
|
+
app_path=$0
|
|
69
|
+
|
|
70
|
+
# Need this for daisy-chained symlinks.
|
|
71
|
+
while
|
|
72
|
+
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
|
73
|
+
[ -h "$app_path" ]
|
|
74
|
+
do
|
|
75
|
+
ls=$( ls -ld "$app_path" )
|
|
76
|
+
link=${ls#*' -> '}
|
|
77
|
+
case $link in #(
|
|
78
|
+
/*) app_path=$link ;; #(
|
|
79
|
+
*) app_path=$APP_HOME$link ;;
|
|
80
|
+
esac
|
|
21
81
|
done
|
|
22
|
-
|
|
23
|
-
cd "
|
|
24
|
-
APP_HOME="`pwd -P`"
|
|
25
|
-
cd "$SAVED" >/dev/null
|
|
82
|
+
|
|
83
|
+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
|
26
84
|
|
|
27
85
|
APP_NAME="Gradle"
|
|
28
|
-
APP_BASE_NAME
|
|
86
|
+
APP_BASE_NAME=${0##*/}
|
|
29
87
|
|
|
30
88
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
31
|
-
DEFAULT_JVM_OPTS=""
|
|
89
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
32
90
|
|
|
33
91
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
34
|
-
MAX_FD=
|
|
92
|
+
MAX_FD=maximum
|
|
35
93
|
|
|
36
94
|
warn () {
|
|
37
95
|
echo "$*"
|
|
38
|
-
}
|
|
96
|
+
} >&2
|
|
39
97
|
|
|
40
98
|
die () {
|
|
41
99
|
echo
|
|
42
100
|
echo "$*"
|
|
43
101
|
echo
|
|
44
102
|
exit 1
|
|
45
|
-
}
|
|
103
|
+
} >&2
|
|
46
104
|
|
|
47
105
|
# OS specific support (must be 'true' or 'false').
|
|
48
106
|
cygwin=false
|
|
49
107
|
msys=false
|
|
50
108
|
darwin=false
|
|
51
109
|
nonstop=false
|
|
52
|
-
case "
|
|
53
|
-
CYGWIN* )
|
|
54
|
-
|
|
55
|
-
;;
|
|
56
|
-
|
|
57
|
-
darwin=true
|
|
58
|
-
;;
|
|
59
|
-
MINGW* )
|
|
60
|
-
msys=true
|
|
61
|
-
;;
|
|
62
|
-
NONSTOP* )
|
|
63
|
-
nonstop=true
|
|
64
|
-
;;
|
|
110
|
+
case "$( uname )" in #(
|
|
111
|
+
CYGWIN* ) cygwin=true ;; #(
|
|
112
|
+
Darwin* ) darwin=true ;; #(
|
|
113
|
+
MSYS* | MINGW* ) msys=true ;; #(
|
|
114
|
+
NONSTOP* ) nonstop=true ;;
|
|
65
115
|
esac
|
|
66
116
|
|
|
67
117
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
68
118
|
|
|
119
|
+
|
|
69
120
|
# Determine the Java command to use to start the JVM.
|
|
70
121
|
if [ -n "$JAVA_HOME" ] ; then
|
|
71
122
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
72
123
|
# IBM's JDK on AIX uses strange locations for the executables
|
|
73
|
-
JAVACMD
|
|
124
|
+
JAVACMD=$JAVA_HOME/jre/sh/java
|
|
74
125
|
else
|
|
75
|
-
JAVACMD
|
|
126
|
+
JAVACMD=$JAVA_HOME/bin/java
|
|
76
127
|
fi
|
|
77
128
|
if [ ! -x "$JAVACMD" ] ; then
|
|
78
129
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
@@ -81,7 +132,7 @@ Please set the JAVA_HOME variable in your environment to match the
|
|
|
81
132
|
location of your Java installation."
|
|
82
133
|
fi
|
|
83
134
|
else
|
|
84
|
-
JAVACMD=
|
|
135
|
+
JAVACMD=java
|
|
85
136
|
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
86
137
|
|
|
87
138
|
Please set the JAVA_HOME variable in your environment to match the
|
|
@@ -89,84 +140,101 @@ location of your Java installation."
|
|
|
89
140
|
fi
|
|
90
141
|
|
|
91
142
|
# Increase the maximum file descriptors if we can.
|
|
92
|
-
if
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
fi
|
|
143
|
+
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
144
|
+
case $MAX_FD in #(
|
|
145
|
+
max*)
|
|
146
|
+
MAX_FD=$( ulimit -H -n ) ||
|
|
147
|
+
warn "Could not query maximum file descriptor limit"
|
|
148
|
+
esac
|
|
149
|
+
case $MAX_FD in #(
|
|
150
|
+
'' | soft) :;; #(
|
|
151
|
+
*)
|
|
152
|
+
ulimit -n "$MAX_FD" ||
|
|
153
|
+
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
154
|
+
esac
|
|
105
155
|
fi
|
|
106
156
|
|
|
107
|
-
#
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
157
|
+
# Collect all arguments for the java command, stacking in reverse order:
|
|
158
|
+
# * args from the command line
|
|
159
|
+
# * the main class name
|
|
160
|
+
# * -classpath
|
|
161
|
+
# * -D...appname settings
|
|
162
|
+
# * --module-path (only if needed)
|
|
163
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
|
164
|
+
|
|
165
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
166
|
+
if "$cygwin" || "$msys" ; then
|
|
167
|
+
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
|
168
|
+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
169
|
+
|
|
170
|
+
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
|
111
171
|
|
|
112
|
-
# For Cygwin, switch paths to Windows format before running java
|
|
113
|
-
if $cygwin ; then
|
|
114
|
-
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
115
|
-
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
116
|
-
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
117
|
-
|
|
118
|
-
# We build the pattern for arguments to be converted via cygpath
|
|
119
|
-
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
120
|
-
SEP=""
|
|
121
|
-
for dir in $ROOTDIRSRAW ; do
|
|
122
|
-
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
123
|
-
SEP="|"
|
|
124
|
-
done
|
|
125
|
-
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
126
|
-
# Add a user-defined pattern to the cygpath arguments
|
|
127
|
-
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
128
|
-
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
129
|
-
fi
|
|
130
172
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
173
|
+
for arg do
|
|
174
|
+
if
|
|
175
|
+
case $arg in #(
|
|
176
|
+
-*) false ;; # don't mess with options #(
|
|
177
|
+
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
|
178
|
+
[ -e "$t" ] ;; #(
|
|
179
|
+
*) false ;;
|
|
180
|
+
esac
|
|
181
|
+
then
|
|
182
|
+
arg=$( cygpath --path --ignore --mixed "$arg" )
|
|
140
183
|
fi
|
|
141
|
-
|
|
184
|
+
# Roll the args list around exactly as many times as the number of
|
|
185
|
+
# args, so each arg winds up back in the position where it started, but
|
|
186
|
+
# possibly modified.
|
|
187
|
+
#
|
|
188
|
+
# NB: a `for` loop captures its iteration list before it begins, so
|
|
189
|
+
# changing the positional parameters here affects neither the number of
|
|
190
|
+
# iterations, nor the values presented in `arg`.
|
|
191
|
+
shift # remove old arg
|
|
192
|
+
set -- "$@" "$arg" # push replacement arg
|
|
142
193
|
done
|
|
143
|
-
case $i in
|
|
144
|
-
(0) set -- ;;
|
|
145
|
-
(1) set -- "$args0" ;;
|
|
146
|
-
(2) set -- "$args0" "$args1" ;;
|
|
147
|
-
(3) set -- "$args0" "$args1" "$args2" ;;
|
|
148
|
-
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
149
|
-
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
150
|
-
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
151
|
-
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
152
|
-
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
153
|
-
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
154
|
-
esac
|
|
155
194
|
fi
|
|
156
195
|
|
|
157
|
-
#
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
196
|
+
# Collect all arguments for the java command;
|
|
197
|
+
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
|
198
|
+
# shell script including quotes and variable substitutions, so put them in
|
|
199
|
+
# double quotes to make sure that they get re-expanded; and
|
|
200
|
+
# * put everything else in single quotes, so that it's not re-expanded.
|
|
201
|
+
|
|
202
|
+
set -- \
|
|
203
|
+
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
|
204
|
+
-classpath "$CLASSPATH" \
|
|
205
|
+
org.gradle.wrapper.GradleWrapperMain \
|
|
206
|
+
"$@"
|
|
207
|
+
|
|
208
|
+
# Stop when "xargs" is not available.
|
|
209
|
+
if ! command -v xargs >/dev/null 2>&1
|
|
210
|
+
then
|
|
211
|
+
die "xargs is not available"
|
|
170
212
|
fi
|
|
171
213
|
|
|
214
|
+
# Use "xargs" to parse quoted args.
|
|
215
|
+
#
|
|
216
|
+
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
217
|
+
#
|
|
218
|
+
# In Bash we could simply go:
|
|
219
|
+
#
|
|
220
|
+
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
|
221
|
+
# set -- "${ARGS[@]}" "$@"
|
|
222
|
+
#
|
|
223
|
+
# but POSIX shell has neither arrays nor command substitution, so instead we
|
|
224
|
+
# post-process each arg (as a line of input to sed) to backslash-escape any
|
|
225
|
+
# character that might be a shell metacharacter, then use eval to reverse
|
|
226
|
+
# that process (while maintaining the separation between arguments), and wrap
|
|
227
|
+
# the whole thing up as a single "set" statement.
|
|
228
|
+
#
|
|
229
|
+
# This will of course break if any of these variables contains a newline or
|
|
230
|
+
# an unmatched quote.
|
|
231
|
+
#
|
|
232
|
+
|
|
233
|
+
eval "set -- $(
|
|
234
|
+
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
|
235
|
+
xargs -n1 |
|
|
236
|
+
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
|
237
|
+
tr '\n' ' '
|
|
238
|
+
)" '"$@"'
|
|
239
|
+
|
|
172
240
|
exec "$JAVACMD" "$@"
|
package/framework/gradlew.bat
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
@
|
|
1
|
+
@rem
|
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
|
3
|
+
@rem
|
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
|
6
|
+
@rem You may obtain a copy of the License at
|
|
7
|
+
@rem
|
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
@rem
|
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
@rem See the License for the specific language governing permissions and
|
|
14
|
+
@rem limitations under the License.
|
|
15
|
+
@rem
|
|
16
|
+
|
|
17
|
+
@if "%DEBUG%"=="" @echo off
|
|
2
18
|
@rem ##########################################################################
|
|
3
19
|
@rem
|
|
4
20
|
@rem Gradle startup script for Windows
|
|
@@ -9,19 +25,22 @@
|
|
|
9
25
|
if "%OS%"=="Windows_NT" setlocal
|
|
10
26
|
|
|
11
27
|
set DIRNAME=%~dp0
|
|
12
|
-
if "%DIRNAME%"
|
|
28
|
+
if "%DIRNAME%"=="" set DIRNAME=.
|
|
13
29
|
set APP_BASE_NAME=%~n0
|
|
14
30
|
set APP_HOME=%DIRNAME%
|
|
15
31
|
|
|
32
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
33
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
34
|
+
|
|
16
35
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
17
|
-
set DEFAULT_JVM_OPTS=
|
|
36
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
18
37
|
|
|
19
38
|
@rem Find java.exe
|
|
20
39
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
21
40
|
|
|
22
41
|
set JAVA_EXE=java.exe
|
|
23
42
|
%JAVA_EXE% -version >NUL 2>&1
|
|
24
|
-
if
|
|
43
|
+
if %ERRORLEVEL% equ 0 goto execute
|
|
25
44
|
|
|
26
45
|
echo.
|
|
27
46
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
@@ -35,7 +54,7 @@ goto fail
|
|
|
35
54
|
set JAVA_HOME=%JAVA_HOME:"=%
|
|
36
55
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
37
56
|
|
|
38
|
-
if exist "%JAVA_EXE%" goto
|
|
57
|
+
if exist "%JAVA_EXE%" goto execute
|
|
39
58
|
|
|
40
59
|
echo.
|
|
41
60
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
@@ -45,38 +64,26 @@ echo location of your Java installation.
|
|
|
45
64
|
|
|
46
65
|
goto fail
|
|
47
66
|
|
|
48
|
-
:init
|
|
49
|
-
@rem Get command-line arguments, handling Windows variants
|
|
50
|
-
|
|
51
|
-
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
52
|
-
|
|
53
|
-
:win9xME_args
|
|
54
|
-
@rem Slurp the command line arguments.
|
|
55
|
-
set CMD_LINE_ARGS=
|
|
56
|
-
set _SKIP=2
|
|
57
|
-
|
|
58
|
-
:win9xME_args_slurp
|
|
59
|
-
if "x%~1" == "x" goto execute
|
|
60
|
-
|
|
61
|
-
set CMD_LINE_ARGS=%*
|
|
62
|
-
|
|
63
67
|
:execute
|
|
64
68
|
@rem Setup the command line
|
|
65
69
|
|
|
66
70
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
67
71
|
|
|
72
|
+
|
|
68
73
|
@rem Execute Gradle
|
|
69
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain
|
|
74
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
70
75
|
|
|
71
76
|
:end
|
|
72
77
|
@rem End local scope for the variables with windows NT shell
|
|
73
|
-
if
|
|
78
|
+
if %ERRORLEVEL% equ 0 goto mainEnd
|
|
74
79
|
|
|
75
80
|
:fail
|
|
76
81
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
77
82
|
rem the _cmd.exe /c_ return code!
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
set EXIT_CODE=%ERRORLEVEL%
|
|
84
|
+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
85
|
+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
86
|
+
exit /b %EXIT_CODE%
|
|
80
87
|
|
|
81
88
|
:mainEnd
|
|
82
89
|
if "%OS%"=="Windows_NT" endlocal
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript/android",
|
|
3
3
|
"description": "NativeScript for Android using v8",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.6.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/NativeScript/android.git"
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"version_info": {
|
|
13
13
|
"v8": "8.3.110.9",
|
|
14
|
-
"gradle": "7.
|
|
15
|
-
"gradleAndroid": "7.
|
|
14
|
+
"gradle": "7.6",
|
|
15
|
+
"gradleAndroid": "7.4.2",
|
|
16
16
|
"ndk": "r21",
|
|
17
17
|
"ndkApiLevel": "22",
|
|
18
18
|
"minSdk": "17",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"// this gradle key is here for backwards compatibility - we'll phase it out slowly...": "",
|
|
24
24
|
"gradle": {
|
|
25
|
-
"version": "7.
|
|
26
|
-
"android": "7.
|
|
25
|
+
"version": "7.6",
|
|
26
|
+
"android": "7.4.2"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
Binary file
|