Skip to content

fix(react-native-branch): defer api key validation to mods#313

Open
vivekjm wants to merge 1 commit into
expo:mainfrom
vivekjm:@vivekjm/fix/branch-api-key-mod-validation
Open

fix(react-native-branch): defer api key validation to mods#313
vivekjm wants to merge 1 commit into
expo:mainfrom
vivekjm:@vivekjm/fix/branch-api-key-mod-validation

Conversation

@vivekjm
Copy link
Copy Markdown

@vivekjm vivekjm commented May 15, 2026

Why

Fixes #298.

@config-plugins/react-native-branch was checking for apiKey as soon as the config plugin was evaluated. That makes eas config fail when the key is coming from EAS environment variables, because EAS needs to read the config before those values are available locally.

How

The API key is still required, but the check now happens inside the platform mods that actually write the Android manifest and iOS Info.plist. This keeps native generation strict while letting the early config read complete.

I also added regression coverage for evaluating both platform plugins without an API key.

Test Plan

  • PATH="/Users/vivek/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin:$PATH" pnpm --dir packages/react-native-branch test
  • PATH="/Users/vivek/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin:$PATH" pnpm --dir packages/react-native-branch build
  • PATH="/Users/vivek/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin:$PATH" pnpm --dir packages/react-native-branch lint --max-warnings 0
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

react-native-branch api key check causes eas failure

1 participant