Skip to content

Build and Versioning

Amal Antony edited this page Feb 19, 2015 · 12 revisions

Structure

The client side of the Application is merely a stub that redirects to the website which holds most of the application's code. The entry point of the app is the file index.html inside www.

On the server side, the Corodva related files including the plugin code is hosted under public/s/phonegap. The plugin related files are versioned and stored in the corodva-plugins folder in this directory. The default folder in cordova-plugins has all plugins used and the test apk generated loads its plugins from this folder. Also, if a version number is not specified in index.html, plugins will be loaded from this folder by default.

The public/s/phonegap directory is a git submodule and this points to the scrollback/phoegap repository on Github. All of the plugin related code is version controlled.

Versioning

The cordova project has to be versioned before each new apk is released on the appstore. Versioning ensures that older versions of the app are backward compatible with the server side Scrollback code. The app is versioned by providing the version number as part of the redirect URL inside index.html. For instance, the URL for version 1.1 would be:

https://local.scrollback.io/me?platform=cordova-android&app-version=1.1

Clone this wiki locally