---
title: "Release and patch a Flutter add-to-app module once with Shorebird"
description: "Shorebird now gives a Flutter add-to-app module its own release version, separate from the host app's. Release the module once, and any host app that embeds that build gets the patch, whatever version the host is on."
url: https://shorebird.dev/blog/module-patching/
---

[Blog](/blog)

[Product updates](/blog/category/product) December 1, 2026 3 min read

# Flutter add-to-app modules now get their own release version

Your Flutter add-to-app module now has its own release version, separate from the host app's. Release it once, and any host app that embeds that build gets the patch, whatever version the host is on.

![](/_astro/abhishek-doshi.DyEgcBsb_1U7RgS.webp)

Abhishek Doshi

Developer Relations Engineer

With [add-to-app](https://docs.shorebird.dev/flutter-concepts/add-to-app/?utm_source=blog\&utm_medium=blog\&utm_campaign=patch-flutter-module-once\&utm_content=blog-module-patching), your Flutter code is a module and the native Android or iOS app pulls it in like a library.

That caused a snag. Devices reported the host app’s version, and the host app ships on its own schedule, so every new host version needed a new module release before its users got patches.

Now the module has its own release version. Run `shorebird release aar` for Android or `shorebird release ios-framework` for iOS, once. Any host app that embeds that build gets the patch, whatever version the host is on. You need a recent Shorebird CLI and Flutter.

## Why a module needs its own release version

A Shorebird patch targets a release. For a normal Flutter app, that’s just the app’s version.

A module is different. The host team can bump their version or ship a hotfix and never touch your Flutter code. If patches were tied to the host version, you’d have to cut a new module release for every one of those builds before anyone got a patch.

So the module gets its own version. You pick it when you release, and devices report it whichever host build they’re on.

You’ll need Shorebird 1.6.142 or newer (for releasing and patching) and Flutter 3.47.9 or newer. `shorebird upgrade` updates the CLI.

## What a patch can and can’t change in a module

A patch swaps the module’s compiled Dart code, nothing else. A bug in a Flutter screen or an API call? A patch fixes it.

Native code is out. That means the native side of a platform channel, and any new plugin that brings its own native code. Images and fonts too, since patches don’t touch assets.

For those you need a new module release and a new host app build, so if some logic might need a hotfix later, keep it in Dart.

## Several host apps, several host versions, one patch

Say two host apps embed your module, and each has three versions live in the stores. If they all embed the same module build, that’s one release and one patch, not six.

The patch belongs to the module release, not to a host app. A host gets it once it ships that module build. Hosts still on an older build stay on that build’s release, so if the bug is in both builds, you patch both releases.

Everyone on a release gets its patch, and rollbacks work the same way. You can’t pick patches per host app. If you want one host to try a patch first, use a track. [How to release and patch a Flutter add-to-app module](https://shorebird.dev/blog/how-to-patch-module/) walks through it.

For the rest, see the [Module versions](https://docs.shorebird.dev/code-push/guides/add-to-app/module-versions/?utm_source=blog\&utm_medium=blog\&utm_campaign=patch-flutter-module-once\&utm_content=blog-module-patching) guide.

## Try it on your next module release

If you embed Flutter in a native app, the module now gets its own release version, separate from the host app’s. Run `shorebird upgrade`, then read the [Module versions](https://docs.shorebird.dev/code-push/guides/add-to-app/module-versions/?utm_source=blog\&utm_medium=blog\&utm_campaign=patch-flutter-module-once\&utm_content=blog-module-patching) guide.

The commands are in part 2, [How to release and patch a Flutter add-to-app module](https://shorebird.dev/blog/how-to-patch-module/). It also covers checking a patch in device logs, tracks and QA builds, and what to do if your module was built on an older version.

Something look off? Tell us on [Discord](https://discord.gg/shorebird).

## More from the blog

[All posts](/blog)

* Product updates Nov 24, 2026 2 min read

  ### [Stream Shorebird events to your webhooks](/blog/stream-shorebird-events-to-your-webhooks)

  Shorebird now sends signed OCSF events to your webhooks, including release, patch, and track events. Enterprises also get governance audit events.

  ![](/_astro/wesley-peck.C4oaIDVg_ZANUra.webp)

  Wesley Peck

  Lead Product Manager

* Product updates Nov 24, 2026 4 min read

  ### [Roll out patches to a percentage of your users](/blog/percentage-rollouts)

  Send a patch to some of your users first, raise the percentage when you're happy with it, and roll it back if something's wrong. No app changes needed.

  ![](/_astro/abhishek-doshi.DyEgcBsb_2bv7KI.webp)

  Abhishek Doshi

  Developer Relations Engineer

* Product updates Nov 17, 2026 3 min read

  ### [OIDC sign-in for service accounts](/blog/oidc-service-accounts)

  Shorebird service accounts can now sign in from GitHub Actions with OIDC, so CI runs releases and patches without a stored SHOREBIRD_TOKEN to rotate.

  ![](/_astro/wesley-peck.C4oaIDVg_ZANUra.webp)

  Wesley Peck

  Lead Product Manager

## Ship your first patch today.

Install the CLI, create a release and send a patch. Free for 5,000 patch installs a month.

[Start for free](https://console.shorebird.dev/login) [Read the quickstart](https://docs.shorebird.dev/getting-started/)

Larger team? [Talk to sales](/talk-to-sales)
