HotCodePush

resource-file

Write the resource file into a debug, simulator or local build with hotcodepush resource-file write, without registering a binary or uploading anything.

hotcodepush resource-file write is the build step of every build that is no store build, run by the SDK package's Xcode phase or Gradle task. Nobody types it: it writes the resource file the SDK reads at start and leaves no binary behind, while binary create is the store build's step.

write

The build step of every build that is no store build: writes the resource file the SDK reads, listing the embedded bundle, and creates no binary. Without a token, offline or with an API that cannot be reached, the channel name stays unresolved and one warning says so, in CI too. HOTCODEPUSH_CHANNEL names the channel for a build flavour.

OptionTypeDescription
--embedded-bundle-path <dir>stringThe directory of the embedded bundle, the files the build puts into the app. Defaults to the framework's build output.
--platform <platform>android | iosThe platform being built, ios or android.
--resource-file-path <file>stringWhere the resource file goes, in the app the build makes.
hotcodepush resource-file write --platform ios --embedded-bundle-path build/App.app/public --resource-file-path build/App.app/hotcodepush.json
hotcodepush resource-file write --platform android --embedded-bundle-path build/assets/public --resource-file-path build/assets/hotcodepush.json --json

Last updated on

On this page