ns build android

No description

Options

NameDescription
--env.aotCreates an Ahead-Of-Time build (Angular only)
--env.uglifyProvides basic obfuscation and smaller app size
--env.reportCreates a Webpack report inside a /report folder in the root folder
--env.sourceMapCreates inline source maps
--env.hiddenSourceMapCreates sources maps in the root folder (useful for Crashlytics usage with bundled app in release)
--env.verbosePrints verbose logs and the internal config before building
--env.productionEnable production mode (will minify the code)
--env.replace=from:toAdd file replacement rules. For source files (.js and .ts) this will add a new alias to the config, for everything else, this will add a new copy rule
--releaseProduces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build
--copy-to <path>Specifies the file path where the built .ipa|.apk will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used
--path <directory>Specifies the directory where you want to create the project, if different from the current directory
--forceSkips the application compatibility checks and forces npm i to ensure all dependencies are installed
--cleanForces rebuilding the native application
--device <device id>Specifies a connected device/emulator to start and run the app
--aabSpecifies that the command will produce and deploy an Android App Bundle
--env.snapshotCreates a V8 Snapshot decreasing the app start time (only for release builds for Android)
--env.compileSnapshotCompiles the static assets produced by --env.snapshot into .so files allowing the native build to split them per architecture. This will reduce the app size when using the --aab option
--env.appComponentsAllows passing additional App Components for android
--compileSdk <api level>Sets the Android SDK that will be used to build the project
--key-store-path <path>Specifies the file path to the keystore file (P12) which you want to use to code sign your APK
--key-store-password <password>Provides the password for the keystore file specified with --key-store-path
--key-store-alias <alias>Provides the alias for the keystore file specified with --key-store-path
--key-store-alias-password <alias password>Provides the password for the alias specified with --key-store-alias-password