Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
tns-android
Advanced tools
Contains the source code for the NativeScript's Android Runtime. NativeScript is a framework which enables developers to write truly native mobile applications for Android and iOS using JavaScript and CSS. Each mobile platform has its own ecosystem and offers completely different development tools and language(s) - Java for Android and Objective C (Swift) for iOS. In order to translate JavaScript code to the corresponding native APIs some kind of proxy mechanism is needed. This is exactly what the "Runtime" parts of NativeScript are responsible for. The Android Runtime may be thought of as "The Bridge" between the JavaScript and Android worlds. A NativeScript application for Android is a standard native package (apk) which besides the JavaScript files embed the runtime as well.
Several Wiki pages describe some internal topics about the runtime here
The repo is structured in the following projects (ordered by dependencies):
extend
routine.The NativeScript Android Runtime architecture can be summarized in the following diagram.
For more details on how it works, read the documentation.
Following are the minimal prerequisites to build the runtime package.
git clone --recurse-submodules git@github.com:NativeScript/android-runtime.git
Note: You might need to run the Android Studio from the command line in order to preserve the environment variables. This is in case you get errors like "missing npm" if starting the studio the usual way.
Run command
Windows:
gradlew
Mac/Linux:
./gradlew
The build process includes building of the runtime package (both optimized and with unstripped v8 symbol table), as well as all supplementary tools used for the android builds: metadata-generator, binding-generator, metadata-generator, static-binding-generator
The result of the build will be in the dist folder.
Note:
To cut the build time in half and package only the optimized (stripped) version of the runtime package comment out 'tasks.generateRuntimeAar.execute()' in the build.gradle script.
Go to subfolder test-app after you built the runtime.
Start an emulator or connect a device.
Note: Keep in mind the device or emulator needs to have an sdcard mounted.
Run command
gradlew runtest
We love PRs! Check out the contributing guidelines. If you want to contribute, but you are not sure where to start - look for issues labeled help wanted
.
Please, use github issues strictly for reporting bugs or requesting features. For general questions and support, check out Stack Overflow or ask our experts in NativeScript community Slack channel.
8.2.0 (2022-03-08)
before-plugins.gradle
in build.gradle to allow to override androidBuildToolsVersion
and other vars (d926dd4)PerformMicrotaskCheckpoint
(4b58570)Exception information in onDiscarderError and onUnhandledError is changed so that message
contains the exception message and stackTrace
contains only the stackTrace. In the previous implementation stackTrace
contained some additional details (including the exception message) and the message
was something like:
The application crashed because of an uncaught exception. You can look at "stackTrace" or "nativeException" for more detailed information about the exception.
The built-in JSON.stringify
method is used for cross workers communication. Circular object references are no longer supported and attempting to send such object will throw an exception.
onCreate
hasn't been overridden()cleanupAllJars
gradle task (#1338)All flavors must now belong to a named flavor dimension.
build error, ensure that you are using the latest CLI. Plugins will be built implicitly by the CLI, version 4.0.0-rc or newer.platforms/android/app/build/outputs/<build-type>/<flavor - if any>/app-<build-type>.apk
(#938).jar
and .aar
libraries from App_Resources/Android/libs
(#899).java
, resources, assets in App_Resources/Android
(#700) - Enabled after updating the App_Resources/Android subdirectory structure. Use tns resources update android
with CLI 4.0.0-rc or newer.tns-core-modules
.FAQs
NativeScript Runtime for Android
The npm package tns-android receives a total of 213 weekly downloads. As such, tns-android popularity was classified as not popular.
We found that tns-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.