You are on page 1of 14

Creating closed

Cordova build
Sunil P
P&I Tech Engineering Services
Problem Statement
Can we do a closed Cordova build with no access
to internet during the build time of the product?

During a Cordova build, which plugins and which
type of input enter the builds, should these be in
GIT or in Common Repo, Can we use Nexus at
all?
Some Jargons
Apache Cordova
PhoneGAP
Kapsel
NODE JS
NODE Package Manager
(NPM)
Plugman (Cordova
Plugin tool)
Regular Cordova build
- An Android Example
Setup Time
Build Time
Internet
Create Project
Add Platform
Add Plugin
Build/Run
So what happens during Cordova Create
Project?
Is
template
project
available
locally?
Cordova Create
Project
Template at
$HOME/.cordova/li
b/www
Download from
Apache cordova
public GIT
Create Cordova
Project from
template
Yes
No
So what happens during Cordova Platform Add
to a project?
Is platform
template
available
locally?
Cordova platform
add
Template at
$HOME/.cordova/li
b/<platform>
Download from
Apache cordova
public GIT
Add Platform based
on local platform
template
Yes
No
So what happens during Cordova plugin add to
a project?
(standard Cordova plugins*)
Is plugin
available
locally?
Cordova Plugin add
Template at
$HOME/.plugman/c
ache/<plugin>
Download from
Apache cordova
plugin repository
Add plugin files to
the Cordova Project
Yes
No
* Kapsel plugins are added
from local disk
Closed Cordova Build
-An Android Example
Setup Time
Build Time
Internet
Create Project
Add Platform
Build/Run
Add Plugin
Questions
Internet
Future Possibilities for
Cordova template &
plugins
Links
External:
Cordova Command Line
options

Internal:
Rex C4C Mobile App Wiki
Rex C4C Project Portal
Creating closed
Cordova build
Sunil P
P&I Tech Engineering Services

You might also like