Coder Social home page Coder Social logo

jelavallee / android-runtime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nativescript/android

0.0 2.0 0.0 83.23 MB

Android runtime for NativeScript (based on V8)

Home Page: http://docs.nativescript.org/runtimes/android

License: Apache License 2.0

JavaScript 10.63% Java 60.36% Makefile 0.13% C++ 28.24% C 0.64%

android-runtime's Introduction

Build Status

Android-Runtime

Contains the source code for the NativeScript's Android runtime. The android-runtime is a main component used in NativeScript.

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

  • android-static-binding-generator - build tool that generates bindings based on the user's javascript code
  • android-binding-generator-tester - contains the tests for the binding-generator project.
  • build/project-template - this is an empty placeholder Android Application project, used by the NativeScript CLI when building an Android project.

Build Prerequisites

The source in this repo is organized in Android Studio projects.

  • Install the latest Android Studio .
  • Install Android API Level 22 from Android Studio -> Tools -> Android -> SDK Manager
  • Install the Android NDK from Android Studio -> Tools -> Android -> SDK Manager
  • Download Android Support Repository through the Android SDK Manager
  • Download Build Tools 22 through the Android SDK Manager.

How to build

  • Run command
gradlew build
  • The result of the build will be in the dist folder.

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

gradle runtest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.