Build & release

Signing

OTADart keeps your Android signing key, so Google Play accepts every build.

Same key as your Flutter build

Adding the OTADart engine changes the app bundle, so it must be signed again. OTADart signs it with the same key Flutter used and checks the certificate matches before it finishes. If it cannot find that key, the release stops — it never uploads a build signed with the wrong key.

Where OTADart finds your key

OrderSource
1OTADART_ANDROID_KEYSTORE_<FLAVOR> environment variables (CI, per flavor)
2OTADART_ANDROID_KEYSTORE environment variables (CI)
3android/key-<flavor>.properties (a key per flavor)
4android/key.properties (Flutter’s standard setup)
5The debug key (~/.android/debug.keystore) — only for testing
# android/key.properties
storePassword=…
keyPassword=…
keyAlias=upload
storeFile=/Users/you/upload-keystore.jks

For CI, set OTADART_ANDROID_KEYSTORE, OTADART_ANDROID_STORE_PASSWORD, OTADART_ANDROID_KEY_ALIAS and OTADART_ANDROID_KEY_PASSWORD (add _PROD, _DEV… for a flavor).

Different keys per flavor

Each flavor can have its own key: put it in android/key-<flavor>.properties, then run otadart release android --flavor <flavor>. OTADart pins each platform + flavor separately.

Protected in the console

The first release of each platform and flavor pins its signing certificate. A later release signed with a different key is refused — Google Play would refuse it too. If you really changed keys, an owner or admin can allow it: app → Settings → Signing → Allow releases signed with a different key, or Forget the pinned key.

iOS

iOS builds keep the signing Xcode gives them; OTADart does not re-sign them.

Related: otadart.yaml · Release · Builds · Patch · Store compliance · Tracks & rollouts · Rollback · Flavors