@nativescript/android 8.5.0 → 8.5.1-next.2023-06-27-5394727387
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/README.md +32 -1
- 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/main/java/com/tns/RuntimeHelper.java +0 -13
- 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/gradle.properties +1 -1
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -60,6 +60,18 @@ Note: You might need to run the Android Studio from the command line in order to
|
|
|
60
60
|
|
|
61
61
|
## How to Build
|
|
62
62
|
|
|
63
|
+
* Install dependencies from NPM:
|
|
64
|
+
|
|
65
|
+
```Shell
|
|
66
|
+
cd test-app/build-tools/jsparser
|
|
67
|
+
npm install
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
* Set environment variables:
|
|
71
|
+
- `JAVA_HOME` such that `$JAVA_HOME/bin/java` points to your Java executable
|
|
72
|
+
- `ANDROID_HOME` pointing to where you have installed the Android SDK
|
|
73
|
+
- `ANDROID_NDK_HOME` pointing to the version of the Android NDK needed for this version of NativeScript
|
|
74
|
+
|
|
63
75
|
* Run command
|
|
64
76
|
|
|
65
77
|
Windows:
|
|
@@ -87,8 +99,27 @@ Note: You might need to run the Android Studio from the command line in order to
|
|
|
87
99
|
``Note: Keep in mind the device or emulator needs to have an sdcard mounted.``
|
|
88
100
|
* Run command
|
|
89
101
|
```Shell
|
|
90
|
-
gradlew
|
|
102
|
+
gradlew runtests
|
|
91
103
|
```
|
|
104
|
+
|
|
105
|
+
## How to Connect the Inspector
|
|
106
|
+
|
|
107
|
+
* Install dependencies: run command
|
|
108
|
+
```Shell
|
|
109
|
+
cd test-app
|
|
110
|
+
npm install
|
|
111
|
+
```
|
|
112
|
+
* Run the test app in Android Studio, or manually in the emulator.
|
|
113
|
+
* Run command
|
|
114
|
+
```Shell
|
|
115
|
+
npx ns debug android --start
|
|
116
|
+
```
|
|
117
|
+
(If you instead have the `nativescript` NPM module installed globally,
|
|
118
|
+
you can omit the `npm install` and the `npx` prefix.)
|
|
119
|
+
* This will print out a URL, such as
|
|
120
|
+
`devtools://devtools/bundled/inspector.html?ws=localhost:40000`.
|
|
121
|
+
Open this URL in Chrome or Chromium.
|
|
122
|
+
|
|
92
123
|
## Contribute
|
|
93
124
|
We love PRs! Check out the [contributing guidelines](CONTRIBUTING.md). If you want to contribute, but you are not sure where to start - look for [issues labeled `help wanted`](https://github.com/NativeScript/android-runtime/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).
|
|
94
125
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -112,19 +112,6 @@ public final class RuntimeHelper {
|
|
|
112
112
|
aE.extractAssets(context, "internal", outputDir, extractPolicy, removePreviouslyInstalledAssets);
|
|
113
113
|
aE.extractAssets(context, "metadata", outputDir, extractPolicy, false);
|
|
114
114
|
|
|
115
|
-
boolean shouldExtractSnapshots = true;
|
|
116
|
-
|
|
117
|
-
// will extract snapshot of the device appropriate architecture
|
|
118
|
-
if (shouldExtractSnapshots) {
|
|
119
|
-
if (logger.isEnabled()) {
|
|
120
|
-
logger.write("Extracting snapshot blob");
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@SuppressWarnings("deprecation")
|
|
124
|
-
String cpu_abi = Build.CPU_ABI;
|
|
125
|
-
aE.extractAssets(context, "snapshots/" + cpu_abi, outputDir, extractPolicy, removePreviouslyInstalledAssets);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
115
|
extractPolicy.setAssetsThumb(context);
|
|
129
116
|
} finally {
|
|
130
117
|
extractionFrame.close();
|
|
Binary file
|
|
Binary file
|