Giter Club home page Giter Club logo

bootstrapper's Introduction

Bootstrapper

Plug and play system that allows you to push updates/new content for installed cordova app. This gives more control for pushing your updates and avoids web store update system.

Platform

Android - tested
iOS - not tested
Windows phone - not tested

Installation

  1. Copy bootstrapper.html, bootstrapper.js and bootstrapperConfig.js to '../your_cordova_project/www'.
  2. Set in '../your_cordova_project/config.xml' path to bootstrapper.html: .
  3. add app.zip to '../your_cordova_project/www'. The archive app.zip should contain www directory with your app files.
  4. add cordova.zip to '../your_cordova_project/www'. The archive should contain cordova.js, cordova_plugins.js and directory "plugins" with plugins. Note that all content of cordova.zip should correspont to the specific platform you are working with. In this repository 'www/cordova.zip' file corresponds to android platform.
  5. optionally content zip files could be added to '../your_cordova_project/www'.
  6. add version.json, app.zip and optionally content.zip to your update_server. DropBox is ok too :).
  7. install all dependencies.

All of the added content would be unpacked at the first run of the application.

Dependencies

org.apache.cordova.dialogs
org.apache.cordova.file
org.apache.cordova.file-transfer
org.chromium.zip

Configuration of bootstrapperConfig.js

appNameSpace - root directory for your app in the device's File System.
packageFolder - use 'www' for cordova projects.
downloadDir - name of the temporary directory for downloads from server. Would be deleted after each update.
embeddedApp - name of the zip file that contains www dir with your app.
embeddedCordova - name of the zip file that contains platform cpecific cordova files and plugins.
appEntry - entry point for your app.
serverDir - URI to the directory on update_server.
configName - name of the json file which contains info about updates.

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.