<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: xuelinger</title>
    <description>The latest articles on DEV Community by xuelinger (@_55d75133ad4e878cdf076).</description>
    <link>https://dev.to/_55d75133ad4e878cdf076</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3926216%2Fd6c33c76-564d-4618-99ce-e71fddb73692.png</url>
      <title>DEV Community: xuelinger</title>
      <link>https://dev.to/_55d75133ad4e878cdf076</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_55d75133ad4e878cdf076"/>
    <language>en</language>
    <item>
      <title>Why I Built an Open-Source Alternative to Shorebird for Flutter Android</title>
      <dc:creator>xuelinger</dc:creator>
      <pubDate>Wed, 13 May 2026 15:11:02 +0000</pubDate>
      <link>https://dev.to/_55d75133ad4e878cdf076/why-i-built-an-open-source-alternative-to-shorebird-for-flutter-android-dol</link>
      <guid>https://dev.to/_55d75133ad4e878cdf076/why-i-built-an-open-source-alternative-to-shorebird-for-flutter-android-dol</guid>
      <description>&lt;p&gt;Shorebird is a great product. If it fits your team's needs, you should probably just use it.&lt;/p&gt;

&lt;p&gt;This post is for the cases where it doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Flutter doesn't officially support hot updates. When a bug ships to production on Android, the only path is to rebuild, re-sign, re-submit, and wait for store review. For teams shipping to multiple Android stores — especially in markets where store review can take days — this is a real operational cost.&lt;/p&gt;

&lt;p&gt;Shorebird is currently the most mature solution to this problem. But it makes a few choices that aren't universal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The backend is closed-source. Patch metadata, user telemetry, and rollout state all go through Shorebird's infrastructure.&lt;/li&gt;
&lt;li&gt;It's a paid service, priced per patch install on the team tier and above.&lt;/li&gt;
&lt;li&gt;The CDN's primary edges are in the US and EU. For users in Asia, patch fetch latency varies.&lt;/li&gt;
&lt;li&gt;Your production runtime depends on a third-party service staying available long-term.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For some teams these are fine tradeoffs. For others — anyone with data-residency requirements, anyone with a long-lived product, anyone whose users are concentrated outside the US/EU, anyone who just wants to own their own infrastructure — they're not.&lt;/p&gt;

&lt;p&gt;I wanted an open-source, self-hosted option. There wasn't one I was happy with. So I built &lt;code&gt;flutter_patcher&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Flutter Android Hot Updates Actually Work
&lt;/h2&gt;

&lt;p&gt;In release mode, Flutter compiles all your Dart code ahead-of-time into &lt;code&gt;libapp.so&lt;/code&gt;. This shared object contains the VM snapshot and isolate snapshot. At runtime, Flutter Engine loads it and starts the Dart VM.&lt;/p&gt;

&lt;p&gt;This shapes what's possible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You can't ship Dart source or bytecode&lt;/strong&gt; the way React Native ships JS bundles. There's no interpreter to feed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can only replace &lt;code&gt;libapp.so&lt;/code&gt; wholesale.&lt;/strong&gt; A one-line Dart change requires a full recompile.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The replacement has to happen before Engine loads the lib.&lt;/strong&gt; Once &lt;code&gt;mmap&lt;/code&gt; has run, you're too late.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshot format compatibility is strict.&lt;/strong&gt; The patched &lt;code&gt;libapp.so&lt;/code&gt; must be built with the exact same Flutter SDK version as the installed app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The actual mechanic is straightforward: intercept the native library load path before &lt;code&gt;Application.onCreate&lt;/code&gt;, redirect to a patched &lt;code&gt;libapp.so&lt;/code&gt; on disk, let Flutter Engine load that instead.&lt;/p&gt;

&lt;p&gt;What makes it production-grade is everything around that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;versionCode binding so a patch can't be applied to the wrong app version&lt;/li&gt;
&lt;li&gt;Signature verification (MD5 + optional Ed25519) so a compromised CDN can't push malicious code&lt;/li&gt;
&lt;li&gt;Crash rollback so a bad patch doesn't brick your app on the next launch&lt;/li&gt;
&lt;li&gt;A bad-patch blacklist so a known-broken patch can't be re-applied even if the server still serves it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These aren't optional features. They're what separates "a hot update plugin" from "a hot update plugin you'd ship to production."&lt;/p&gt;

&lt;h2&gt;
  
  
  What flutter_patcher Is
&lt;/h2&gt;

&lt;p&gt;An open-source Flutter plugin that does the above. Specifically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Android-only.&lt;/strong&gt; iOS App Store policy forbids dynamic code delivery for executable code. This isn't a roadmap item; it's an architectural decision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dart-layer only.&lt;/strong&gt; Native code, assets, and AndroidManifest changes are out of scope. If you need to change those, you ship a new build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosted.&lt;/strong&gt; The plugin talks to your server. Your patch CDN. Your rollout logic. The plugin ships a reference protocol; the backend is yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Minimal usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;dependencies&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;flutter_patcher&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;^0.1.2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;FlutterPatcher&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;checkUpdate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nl"&gt;serverUrl:&lt;/span&gt; &lt;span class="s"&gt;'https://your-api/check'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;FlutterPatcher&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;applyPatch&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To make evaluation easy, 0.1.2 ships a local mock server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart run flutter_patcher:mock_server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This runs through the full &lt;code&gt;check → download → apply → verify → rollback-on-crash&lt;/code&gt; flow without any backend setup. Takes about 5 minutes end to end.&lt;/p&gt;

&lt;h2&gt;
  
  
  What It Isn't
&lt;/h2&gt;

&lt;p&gt;Honest scope:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Not for iOS. Won't be.&lt;/li&gt;
&lt;li&gt;Not for native, asset, or manifest changes. By design.&lt;/li&gt;
&lt;li&gt;Not a managed service. You run the server.&lt;/li&gt;
&lt;li&gt;Not battle-tested at scale yet. Status is beta. I've validated on a handful of devices; production device-matrix coverage is something the community will have to help build.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're a small team that wants someone else to handle the infrastructure, Shorebird is still probably the right answer.&lt;/p&gt;

&lt;p&gt;If you have backend capacity and want infrastructure ownership, this might be worth 30 minutes of evaluation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/xuelinger2333/flutter_patcher" rel="noopener noreferrer"&gt;https://github.com/xuelinger2333/flutter_patcher&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;pub.dev: &lt;a href="https://pub.dev/packages/flutter_patcher" rel="noopener noreferrer"&gt;https://pub.dev/packages/flutter_patcher&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Issues and feedback welcome — especially from anyone who's actually evaluated Flutter hot-update options and has opinions about what's missing.&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>android</category>
      <category>opensource</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
