All Projects → NativeScript → Android Runtime

NativeScript / Android Runtime

Licence: apache-2.0
Android runtime for NativeScript (based on V8)

Projects that are alternatives of or similar to Android Runtime

Mln
高性能、小巧、易上手的移动跨平台开发框架. A framework for building Mobile cross-platform apps with Lua
Stars: ✭ 1,343 (+236.59%)
Mutual labels:  cross-platform, nativescript, mobile
Nativescript Cli
Command-line interface for building NativeScript apps
Stars: ✭ 977 (+144.86%)
Mutual labels:  cross-platform, nativescript, mobile
Luaviewsdk
A cross-platform framework to build native, dynamic and swift user interface - 强大轻巧灵活的客户端动态化解决方案
Stars: ✭ 3,586 (+798.75%)
Mutual labels:  cross-platform, nativescript, mobile
Flutter app sample
flutter app sample
Stars: ✭ 120 (-69.92%)
Mutual labels:  cross-platform, mobile
Boden
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Stars: ✭ 1,394 (+249.37%)
Mutual labels:  cross-platform, mobile
Corona
Solar2D Game Engine main repository (ex Corona SDK)
Stars: ✭ 1,679 (+320.8%)
Mutual labels:  cross-platform, mobile
Arcgis Appstudio Samples
Collection of samples available in AppStudio for ArcGIS desktop to learn and help build your next app.
Stars: ✭ 78 (-80.45%)
Mutual labels:  cross-platform, runtime
Nativescript Schematics
nativescript, mobile, schematics, angular
Stars: ✭ 176 (-55.89%)
Mutual labels:  cross-platform, nativescript
Uiwidgets
UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
Stars: ✭ 1,901 (+376.44%)
Mutual labels:  cross-platform, mobile
Youi
Next generation user interface and application development in Scala and Scala.js for web, mobile, and desktop.
Stars: ✭ 186 (-53.38%)
Mutual labels:  cross-platform, mobile
Ios Runtime
iOS Runtime for NativeScript
Stars: ✭ 288 (-27.82%)
Mutual labels:  runtime, nativescript
Fusillade
An opinionated HTTP library for Mobile Development
Stars: ✭ 269 (-32.58%)
Mutual labels:  cross-platform, mobile
Xplat
Cross-platform (xplat) tools for Nx workspaces https://nstudio.io/xplat
Stars: ✭ 300 (-24.81%)
Mutual labels:  cross-platform, nativescript
Flutter todo
Yet another Todo app, now using Flutter (with ScopedModel)
Stars: ✭ 94 (-76.44%)
Mutual labels:  cross-platform, mobile
Hello imgui
Hello, Dear ImGui: cross-platform Gui apps for Windows / Mac / Linux / iOS / Android / Emscripten with the simplicity of a "Hello World" app
Stars: ✭ 120 (-69.92%)
Mutual labels:  cross-platform, mobile
Flutter Mvvm Provider Demo
Stars: ✭ 89 (-77.69%)
Mutual labels:  cross-platform, mobile
Framework
The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.
Stars: ✭ 11,672 (+2825.31%)
Mutual labels:  cross-platform, mobile
Audio player flutter
🎧 Apple Music / Tidal Audio Player for Flutter
Stars: ✭ 52 (-86.97%)
Mutual labels:  cross-platform, mobile
Wa status saver
A whatsApp status saver/downloader with flutter
Stars: ✭ 66 (-83.46%)
Mutual labels:  cross-platform, mobile
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+539.85%)
Mutual labels:  cross-platform, mobile

Android Runtime for NativeScript

Build Status

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.

Additional docs

Several Wiki pages describe some internal topics about the runtime here

Main Projects

The repo is structured in the following projects (ordered by dependencies):

  • android-metadata-generator - generates metadata necessary for the Android Runtime.
  • android-binding-generator - enables Java & Android types to be dynamically created at runtime. Needed by the extend routine.
  • android-runtime - contains the core logic behind the NativeScript's Android Runtime. This project contains native C++ code and needs the Android NDK to build properly.
  • android-runtime-testapp - this is a vanilla Android Application, which contains the tests for the runtime project.

Helper Projects

Architecture Diagram

The NativeScript Android Runtime architecture can be summarized in the following diagram.

Android Runtime diagram

For more details on how it works, read the documentation.

Build Prerequisites

Following are the minimal prerequisites to build the runtime package.

  • Install the latest Android Studio.
  • From the SDK Manager (Android Studio -> Tools -> Android -> SDK Manager) install the following components:
    • Android API Level 23, 24, 25, 26, 27
    • Android NDK
    • Android Support Repository
    • Download Build Tools
    • CMake
    • LLDB
  • Clone this repository as well as the submodules: git clone --recurse-submodules [email protected]:NativeScript/android-runtime.git

Working with the Runtime in Android Studio

  • Open the test-app folder in Android Studio. It represents a valid Android project and you are able to build and run a test application working with the Runtime from the source.

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.

How to Build

  • 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.

How to Run Tests

  • 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

Contribute

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.

Misc

Get Help

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].