Skip to content

ronaldtsang/Orochi-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Orochi-Framework (Version 1.0) - Discontinued

Orochi-Framwork is a:

Cross platform framework for building HTML5 native app

  • version 1.0 supported devices type: android 2.1 or higher
  • will add iOS support in version 2.0

Try the demo:

Full-Function Testing Tool

install and open the Application: https://github.com/ronaldtsang/Orochi-Framework/orochi_source_1.0.apk/qr_code

webapp link(open the above app first): http://orochis-den.com/orochi_jqmdemo/app.html

  • To close the application: you must turn off the "Native Service" first, else the "Native Service" will keep running.
  • You may type in your webapp link for testing
  • You may open the "webapp link" on your desktop's(or any device within the same local network) browser with extra "GET Parameter": ?serviceIP=192.168.1.x (192.168.1.x is your mobile's IP)

Simple Example

install and open the Application: https://github.com/ronaldtsang/Orochi-Framework/orochi_example_1.0.apk/qr_code

webapp link(open the above app first): http://orochis-den.com/orochi_jqmdemo/app.html?serviceName=Orochi-example

  • "Native Service" will be closed automatically when you close the application.
  • Webapp link is hardcoded.

For both demo

You may find the demo webapp source here.

  • this framework is usable without jqmobile, but jquery is a must.

After you start the demo application(with "Native Service" on), your may open the "webapp link" on your mobile's browser

How to start?

  1. Download all javascript files

  2. It is recommended to study the example webapp first.

  3. Include the following lines in you webapp: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="js/weboo/weboo.js"></script> <script src="js/orochi/orochi.js"></script> <script src="js/orochi/orochi.ext.js"></script>

  4. Setup your own offline.manifest if you want to have an offline accessible webapp.

  5. Download the example source code and modify it to suit your needs. (or you may test it with the "Full-Function Testing Tool" first)

  6. change the Hardcoded link in "orochi.example.MainActivity" line 39. private String urlAddress = "http://orochis-den.com/orochi_jqmdemo/app.html?serviceName=Orochi-example";

  7. Run and have fun...

Advance

To build your own Native API:

  1. Take a look at the native package orochi.nativeadapter.RequestHandler
  2. Take a look at the javascript files(But not the "orochi.js")
  3. I think you should be able to make it XD.
  4. Please send it to me, if you think your API is useful to others.

Simple Javascript API:

Orochi Framework 1.0 - JS API

The Source Code includes:

  1. JSON in Java
  2. jQuery
  3. jQuery Mobile

Questions?

email me: tsanghim@gmail.com

About

A cross platform framework for building HTML5 native app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published