<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suriki on Medium]]></title>
        <description><![CDATA[Stories by Suriki on Medium]]></description>
        <link>https://medium.com/@suriki2652?source=rss-1b9781b2df47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Suriki on Medium</title>
            <link>https://medium.com/@suriki2652?source=rss-1b9781b2df47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:42:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suriki2652/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Rewrote My Tamil Radio App From Flutter to Kotlin. Here’s What I Measured.]]></title>
            <link>https://medium.com/@suriki2652/i-rewrote-my-tamil-radio-app-from-flutter-to-kotlin-heres-what-i-measured-f0f5f5a91857?source=rss-1b9781b2df47------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0f5f5a91857</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[google-play-store]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[radio]]></category>
            <category><![CDATA[rewrite]]></category>
            <dc:creator><![CDATA[Suriki]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 19:03:13 GMT</pubDate>
            <atom:updated>2026-11-26T19:03:13.305Z</atom:updated>
            <content:encoded><![CDATA[<p>I build small Android radio apps. Tamil Vanoli (தமிழ் வானொலி) is the main one. You open it, pick a station, and music plays. That’s the whole pitch.</p><p>For a long time it was a Flutter app, and Flutter served me well. One codebase, hot reload, and I could clone the app into a Hindi version, a Malayalam version and a few others without losing my mind.</p><p>Last month I rewrote the whole thing in Kotlin with Jetpack Compose. This post is about why, how it went, and what actually changed when I measured it. Some of the numbers surprised me, and not all of them in the direction I expected.</p><h3>Why I even considered it</h3><p>Honestly, it was not one big thing at first. It was a pile of small annoyances:</p><ul><li><strong>Audio is the whole product.</strong> A radio app lives or dies on background playback, the notification, Bluetooth buttons, Android Auto and what happens when the network drops for three seconds in a lift. In Flutter every one of those went through a plugin, and every plugin was one more layer between me and Android’s media APIs.</li><li><strong>Size matters on the phones my users have.</strong> A lot of my listeners are on budget devices with limited storage and patchy data. I had been fighting for every megabyte since version 3.3.1, and the Flutter engine and compiled Dart code were a fixed cost of around 7.5 MB that I couldn’t shrink.</li><li><strong>Startup.</strong> The engine has to spin up before a single widget appears.</li><li><strong>Ads and consent SDKs</strong> are native Android libraries. I was writing platform channel glue just to talk to them.</li></ul><p>None of these were fatal. But when I added them up I kept coming back to the same question: <em>what would this app look like if it were just Android?</em></p><h3>The rule I set for myself</h3><p>Before writing a line of Kotlin I wrote one rule down: <strong>version 4.0.0 must behave exactly like 3.4.0.</strong> Same screens, same ad rules, same everything. No “while I’m in here” redesigns.</p><p>I also kept the same package name and the same signing key. That meant the rewrite would ship as a normal update. Users wouldn’t have to uninstall anything, and I had to make sure nobody lost their favourites.</p><p>That second part was the scary bit. On first launch the new app reads the old Flutter app’s storage and imports favourites, recently played stations, theme choice and the rate-prompt state. If that migration had failed, I’d have wiped out people’s personal station lists, and nobody forgives that in a radio app.</p><h3>What the new architecture looks like</h3><p>I split the project into modules instead of one big folder:</p><ul><li>core:model holds plain Kotlin with no Android in it, so it&#39;s trivial to unit test</li><li>core:data has Retrofit for the Radio-Browser API, Room for the station cache and DataStore for settings</li><li>core:player wraps Media3 and is the only way the UI is allowed to play audio</li><li>core:ads holds AdMob, Meta and the consent flow</li><li>feature:browse, feature:player and feature:settings hold the screens</li></ul><p>Hilt does dependency injection. Room is the source of truth, and the UI just collects state from ViewModels.</p><p>The nicest consequence is that the station list is now cached in a database, so Home appears instantly on launch instead of waiting for a network call. In the Flutter version that was always a bit of a loading spinner.</p><p>The second nicest is playback. With Media3 I get the media notification, lock-screen controls, Bluetooth and Android Auto browsing from one service, rather than stitching plugins together. The old “stream died, now what?” logic became a small retry policy (retry after 1 second, then 3, then tell the user) that I could unit test properly.</p><h3>The Download Size benchmark</h3><p>This is the one number I’m happy to share about:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QA8NzxyDxPqez9ergFKw6Q.png" /><figcaption>Playstore Download Size</figcaption></figure><p>The app went from roughly 14.5 MB to roughly 7.7 MB on the reference device on the day 4.0.0 rolled out. That’s close to <strong>half</strong>. I watched the line in the Console fall off a cliff on the 19th and honestly refreshed it a few times to make sure it wasn’t a glitch.</p><p>The breakdown chart tells the story. In the Flutter builds, about 7.5 MB of the total was “native libraries”, which is the Flutter engine plus my compiled Dart code. In the Kotlin builds that whole orange block is gone. The code itself grew a bit (roughly 6.4 MB to 7.5 MB, since Compose and Media3 are real libraries), but nowhere near enough to make up for it.</p><p>Two versions in a row (4.1.0 and 4.1.1) added a widget, a Quick Settings tile, Android Auto folders, and the size didn’t move. That was the part I cared about most. I’d spent months fighting for single megabytes in Flutter, and now I had room.</p><h3>Was it worth it?</h3><p>For the user, yes. The download is half the size, which matters a lot on a slow connection. Playback is more reliable, the app works with Android Auto, Bluetooth “play” resumes the last station even after the app has been killed, and there’s a home-screen widget and a Quick Settings tile, which I would not have attempted through Flutter plugins.</p><p>For me, it made the sibling apps much easier too. The Tamil app is now the template, and I carry changes into the others with a script instead of copy-pasting.</p><p>If you’re thinking of leaving Flutter, my honest advice: don’t do it for speed alone. Do it if your app is deeply tied to platform features, like audio, notifications and ads SDKs in my case. If your app is mostly screens and forms, Flutter is perfectly fine.</p><h3>The apps</h3><p>If you want to try the results, here’s the family. They all share the same Kotlin codebase foundation, with their own stations and look:</p><ul><li><a href="https://play.google.com/store/apps/details?id=com.tamilfmradio.tamilvanoli&amp;referrer=utm_source%3Dmedium.com%26utm_medium%3Dreferral"><strong>Tamil Vanoli</strong> (தமிழ் வானொலி)</a></li><li><a href="https://play.google.com/store/apps/details?id=hindi.radio.fm.songs.hindiradio&amp;referrer=utm_source%3Dmedium.com%26utm_medium%3Dreferral"><strong>Hindi Radio</strong></a></li><li><a href="https://play.google.com/store/apps/details?id=malayalam.radio.fm.songs.malayalamradio&amp;referrer=utm_source%3Dmedium.com%26utm_medium%3Dreferral"><strong>Malayalam Radio</strong></a></li></ul><p>Here is my website — <a href="https://awestrucktech.github.io/">https://awestrucktech.github.io/</a></p><p>Thanks for reading my first post. If this was useful, or if you think I measured something wrong, leave a comment. I’d like to know.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0f5f5a91857" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>