Creates an uploadable bundle of your React-Native application so it can run on
the appetize.io platform. It currently only supports
ios builds. Please note
that this module assumes you have a iOS build tool chain installed on your
system. As it needs to have access to the following CLI's:
npm install --save appetizer-bundle
The following arguments are required in the
nameThe name of your application as you configured it with
dirThe root directory of your React-Native app, this contains the
const Bundle = ;const bundle = 'name of your application' 'path to your app dir';
This is the method that most people would be using, it chains all other methods in the correct order to generate a new build:
Generates the offline React-Native bundle. The method expects 2 arguments:
AppDelegate.m so it points to new React-Native offline bundle.
The rewrite function is a bit special. It receives a
restore function as
second argument which restores the
AppDelegate.m to it's original state.
restore function accepts the following arguments:
errAn error that will be passed in the completion argument so you can clean up, and forward it to the callback.
Packs the resulting the application in a zip file so it can easily be uploaded
to the appetize.io service as it only accepts
tar files. The zip
callback receives the full path to the generated zip file as result.
Read the given project directory and check if we have an xcode project or workspace we're dealing with. It requires the following arguments.
dirThe location where the project files should be located in.
fnCompletion callback that receives error and a project object.
The project object contains the following information:
nameName of the file
fileFull file name
workspaceBoolean indication if its a workspace.
Generate a new iphonesimulator compatible xcode build. It expects a single argument which is an error first completion callback.