App Build Process
The app builder(tools/app-builder/) is a tool that is used to build our apps with cordova.
It has an app-template folder that is used to create a new app. It is a cordova project that has all of the plugins and configuration setup. All that is missing is the app code in the www folder. See Cordova Project Structure for more information.
The general steps are the builder are:
The builder generates a build folder from the
app-templatenamed${APP_NAME}-genthat is used for the build.Bundles javascript and assets into their dist folders.
Copies the required generated html,js and css into the
${APP_NAME}-gen/wwwfolder.Modifies the
config.xmlfile in the${APP_NAME}-genfolder to include the correct app name, version, etc.Creates a
buildConfig.jsfile that includes Git details, APP name etc. Which is used in the app and added to${APP_NAME}-gen/wwwfolder.Creates a
buildInfo.jsonfile that is used by device app builder to generate an app manifest.Add cordova platform to build and run tasks specific to the platform.
iOS: Add and Remove plugins that are required for iOS. Add iOS platform but do not build, as we to build and sign the app in Xcode.
Android: Add and Remove plugins that are required for Android. Add Android platform and build the app using gradle.