Code Monkey home page Code Monkey logo

yanw1011 / ios-javascript-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from irrelon/ios-javascript-bridge

0.0 1.0 0.0 2.08 MB

iOS JavaScript to Objective-C Bridge. Enables method calls and communication between JavaScript & Objective-C.

Home Page: http://www.isogenicengine.com/documentation/ios-javascript-bridge/

License: Other

C++ 83.82% C 13.37% HTML 0.01% JavaScript 0.17% CMake 0.15% Makefile 0.15% QMake 0.33% Objective-C 0.33% Objective-C++ 0.21% Python 0.73% Batchfile 0.11% Shell 0.03% Perl 0.13% Assembly 0.43% DTrace 0.02%

ios-javascript-bridge's Introduction

iOS JavaScript to Objective-C Bridge.

As of 4/8/2014 (and some time before), this library is redundant

It is not being supported

The javascriptcore framework in iOS 7 provides a supported replacement

What Does It Do?

Enables method calls and communication between JavaScript & Objective-C. Allows you to write application logic in JavaScript and control native device features via JS to Obj-C calls.

How Does It Work?

Your JS is contained and executed inside a custom build of JavaScriptCore so that no private API calls are made (and therefore your project can be deployed to the Apple App Store). No webview is presented to the user by default so your app does not "run" inside a web browser.

Instead you can create your application logic and call native methods entirely in JavaScript. This opens up a number of possibilities such as allowing JavaScript to control OpenGL output making game engines that are coded in JavaScript capable of using native-speed graphics output instead of using Safari and the HTML canvas tag.

Future Plans?

Right now, any methods that you expose to JavaScript must be written by yourself so an understanding of Objective-C is required. Future versions of this project will expose a rich API to your JavaScript code to allow control of the most useful native capabilities of the device.

As the project progresses many more features will be added to the list. The main priorities of this project are to make these features available to JavaScript as an API:

  • Mimic canvas-tag methods to output graphics via OpenGL.
  • Mimic audio-tag methods to output sound via OpenAL.
  • Provide a clean and easy networking API to JavaScript to utilise native sockets capability.

License

Open-source version licensed for non-commercial use only. If you would like to use this project in a commercial application please purchase a commercial license from http://www.isogenicengine.com/store/ios-javascript-wrapper-bridge/. Commercial licenses are VERY cheap! Have a look!

ios-javascript-bridge's People

Contributors

irrelon avatar johnfelleman avatar

Watchers

James Cloos avatar

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.