Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Moodle Mobile Building Automatic Building System

From MoodleDocs
Revision as of 14:16, 20 March 2013 by Juan Leyva (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

Requirements

Steps

1 Build the .apk file using the Android SDK with all the plugins we need (WebIntent, Notificacions, Childbrowser, etc..)

2 Use this apk as a template for future builds

3 Make an automatic build process that does something like (can be a cron job)

Extract our .apk file template in a directory (apktool d path/to/yourApp.apk path/to/output-folder)

Download from moodlehq/moodlemobile repository the last files to -> apkdirectory/assets/www directory (where all the html, css, js files are stored)

Re-build the .apk file (apktool b path/to/output-folder path/to/yourAppV2.apk )

Re-sign the .apk file (jarsigner -verbose -keystore ~/.android/debug.keystore path/to/yourAppV2.apk androiddebugkey)