ern run-android
--baseComposite <compositePath>
--descriptor, -d
--dev [true|false]
--extra/-e
androidConfig
attributes--extra '{"androidConfig": {"androidGradlePlugin": "3.2.1","buildToolsVersion": "28.0.3","compileSdkVersion": "28","gradleDistributionVersion": "4.6","minSdkVersion": "19","sourceCompatibility": "VERSION_1_8","supportLibraryVersion": "28.0.0","targetCompatibility": "VERSION_1_8","targetSdkVersion": "28"}}'
--extra /home/user/my-container-config.json
--extra cauldron://config/container/my-container-config.json
package.json
of the MiniApp, inside the ern
object. For example:preBundle
hook, it will be executed after the composite generation, prior to running metro bundler, from the directory containing the generated composite project. --extra '{"containerGenerator": {"hooks": {"preBundle": "/workspace/ern/picking-miniapp/script/pre-script.sh"}}}'
--extra <path>/container-config.json
--extra cauldron://config/config.json
postBundle
hook, it will be executed just after metro bundler has been run, from the directory containing the bundle.--extra '{"containerGenerator": {"hooks": {"postBundle": "/workspace/ern/picking-miniapp/script/post-script.sh"}}}'
--extra <path>/container-config.json
--extra cauldron://config/config.json
--host
--launchFlags <string>
am start
command when launching the application (correspond to the Launch Flags
in Run/Debug Configurations of application in Android Studio, as can be seen on screenshot below)=
on the command line to provide this option, and keep the string in quotes. For example --launchFlags="--es aKey aStringValue --ei anotherKey 1"
--mainMiniAppName
MainApp
directory, only specify name of the MiniApp
(Not the path).--miniapps/m
--port
--usePreviousDevice/-u
ern
object of the MiniApp package.json :ern run-android
command for this MiniApp), the existing runner project is used.ern run-android
command is issued, the project and your changes will remain.ern run-android
command is the ern
equivalent of the react-native run-android
command.MainApp
directory, only specify name of the MiniApp
(Not the path) in the --mainMiniAppName
option.