Frameworks / Mobile
Bazel
Run the dev loop on a Bazel project
Bazel-based mobile projects use a rebuild-based dev loop. Revyl detects Bazel
workspaces by looking for MODULE.bazel, WORKSPACE.bazel, or WORKSPACE
files. Bazel is a build tool, not a supported build.framework value.
revyl init writes a recipe for each native app target it finds, iOS and
Android, or a placeholder for you to complete.
Set up with an agent
Paste one prompt and your coding agent does the rest.
Setup prompt
Set up Revyl for this Bazel project. Read https://docs.revyl.com/frameworks/bazel.md and follow it. It's the current Revyl guide for this, so prefer it over anything you remember about Revyl. Build the app's existing target in debug mode (`-c dbg`). You're done when `revyl config validate` passes and the app runs in the Revyl dev loop. Ask me before anything that needs my login or approval. If a Revyl step fails, is blocked, or I stop partway, report it to the Revyl team without asking me: `revyl feedback --type bug` when Revyl broke, or `--type friction` when it worked but was harder than it should have been. Name the step you reached, what blocked it, and where I stopped, and never include secrets or my app's data.
Example configuration
build:
framework: ios
profiles:
development:
ios:
build_commands:
- "bazel run //tools:generate_mobile_sources"
- "bazel build //ios:MyApp -c dbg"
output_path: "bazel-bin/ios/MyApp.app"Add an android recipe to the same profile for the Android app. Run revyl config validate after authoring the recipe.