<?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: Vladislav Kochetov</title>
    <description>The latest articles on DEV Community by Vladislav Kochetov (@vladleesi).</description>
    <link>https://dev.to/vladleesi</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1019904%2Fa5e1882a-402e-4c26-b000-f66da7fccbf5.png</url>
      <title>DEV Community: Vladislav Kochetov</title>
      <link>https://dev.to/vladleesi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vladleesi"/>
    <language>en</language>
    <item>
      <title>Teaching a Compose Multiplatform App to Be a Website</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Thu, 19 Nov 2026 15:20:00 +0000</pubDate>
      <link>https://dev.to/vladleesi/teaching-a-compose-multiplatform-app-to-be-a-website-31n1</link>
      <guid>https://dev.to/vladleesi/teaching-a-compose-multiplatform-app-to-be-a-website-31n1</guid>
      <description>&lt;p&gt;&lt;em&gt;Notes from an Android developer. Still a work in progress.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'm an Android developer, and most of my work has been Kotlin and Jetpack Compose. On the side, I'm building &lt;a href="https://braindancegg.com" rel="noopener noreferrer"&gt;Braindance&lt;/a&gt;, an open-source app that helps you pick your next game with recommendations, what's trending now, and free giveaways. The web app is live at &lt;a href="https://app.braindancegg.com" rel="noopener noreferrer"&gt;app.braindancegg.com&lt;/a&gt;, with Android and iOS coming next.&lt;/p&gt;

&lt;p&gt;For the web version, I didn't write a separate JavaScript frontend. I used Compose Multiplatform, which compiles the same Kotlin UI to WebAssembly and draws it into a &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;. Running it in a browser took one commit. Making it behave like a website has taken 37 commits and about 2,300 lines of browser-only code so far.&lt;/p&gt;

&lt;p&gt;This post covers what broke along the way, what I changed, and what I measured. Version numbers link to their release notes where a release exists, and the commits are listed at the end.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Stack: Compose Multiplatform 1.12.2, Kotlin 2.4.21 (Kotlin/Wasm), Coil 3.6.3.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What I've done so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Caching that survives deploys:&lt;/strong&gt; content-hashed bundles and fingerprinted Compose resources. A repeat visit downloads only the 4.6 KB page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real website navigation:&lt;/strong&gt; URLs, Back and Forward, reloads that keep your place, page titles, and link previews for games and giveaways.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text on the first frame:&lt;/strong&gt; a replacement for Compose's web resource reader, plus fonts cut from about 212 KB to 37 KB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smoother scrolling:&lt;/strong&gt; list prefetching moved out of the wheel event, which halved Chrome's time in wheel handlers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fewer dead ends:&lt;/strong&gt; a Retry message instead of endless loading when offline, and a workaround for Safari 27.2's white page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Desktop habits:&lt;/strong&gt; middle-click and Ctrl-click to open links in a new tab, draggable scrollbars, and Windows-style autoscroll.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The easy part
&lt;/h2&gt;

&lt;p&gt;The web app started on September 20, 2026, in version 0.3.0. Screens, view models, repositories, and navigation were already shared by the Android and iOS apps, so the first browser build needed only 91 lines of web code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// webApp/.../Main.kt, first version&lt;/span&gt;
&lt;span class="nd"&gt;@OptIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;ExperimentalComposeUiApi&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;initKoin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;debugHttpLogging&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nc"&gt;ComposeViewport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;!!&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;BraindanceApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Android, that's a fine start. For a website, it was just a canvas in a page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Images loaded through Ktor with no disk cache.&lt;/li&gt;
&lt;li&gt;The layout read &lt;code&gt;window.innerWidth&lt;/code&gt; once and ignored window resizes.&lt;/li&gt;
&lt;li&gt;Debug HTTP logging was still on.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Caching: a website doesn't update all at once
&lt;/h2&gt;

&lt;p&gt;The Play Store swaps the whole APK in one go. A browser happily mixes a cached page from one deploy with Wasm files from the next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bundles.&lt;/strong&gt; My first fix put the version into the bundle's file name (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.3.5" rel="noopener noreferrer"&gt;0.3.5&lt;/a&gt;). Nine days later I moved from GitHub Pages to Cloudflare Pages, which can set headers per path (0.11.2). Now bundles get content-hashed names and &lt;code&gt;Cache-Control: public, max-age=31536000, immutable&lt;/code&gt;. Only the HTML is checked again, and the build fails unless there's exactly one hashed bundle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compose resources.&lt;/strong&gt; Strings compile into a binary &lt;code&gt;.cvr&lt;/code&gt; file, read at byte offsets baked into the Wasm module. Mix last week's strings with this week's code, and the text comes out garbled.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding the app version to resource URLs (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.10.1" rel="noopener noreferrer"&gt;0.10.1&lt;/a&gt;) fixed that, but made every release re-download the fonts and strings.&lt;/li&gt;
&lt;li&gt;A content fingerprint works better (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.19.2" rel="noopener noreferrer"&gt;0.19.2&lt;/a&gt;). A Gradle &lt;code&gt;ValueSource&lt;/code&gt; computes it, so the configuration cache notices changes, and &lt;code&gt;composeResources/&lt;/code&gt; is cached as immutable too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I checked production on November 19, a second visit sent just one request over the network: the 4.6 KB HTML.&lt;/p&gt;

&lt;p&gt;One catch: the page's preload tags must use the same fingerprint as the app's own requests. If the URLs differ even in the query string, the browser downloads the file twice. So the project's instructions now require a browser check after every Compose or Coil upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Navigation: the address bar is part of the app
&lt;/h2&gt;

&lt;p&gt;On a phone, the app owns navigation. In a browser, people expect URLs, Back and Forward, reloads, and pasted links to just work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reloads.&lt;/strong&gt; At first, a reload sent you back to Home. The fix (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.4.2" rel="noopener noreferrer"&gt;0.4.2&lt;/a&gt;) saves tabs and back stacks in &lt;code&gt;sessionStorage&lt;/code&gt;, treated as optional because private windows can refuse it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real addresses.&lt;/strong&gt; These took two tries. Hash routes like &lt;code&gt;#/game/42&lt;/code&gt; went out in 0.8.0, because GitHub Pages couldn't route unknown paths, and plain paths replaced them the same day. That change also fixed Back going somewhere unexpected after switching tabs, and it brought a new model: each history entry stores a snapshot of every tab and back stack. The &lt;code&gt;HistoryMirror&lt;/code&gt; KDoc keeps the rule I had to learn the hard way:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Browsers skip entries a page adds without a user action, so adding one while handling Back would desynchronize the two histories.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;HistoryMirror&lt;/code&gt; is common Kotlin with unit tests, and only a small &lt;code&gt;BrowserLocation&lt;/code&gt; adapter touches &lt;code&gt;window.history&lt;/code&gt;. It's the same separation that keeps an Android view model testable.&lt;/p&gt;

&lt;p&gt;That paid off when game pages got chips for switching editions in place. A new &lt;code&gt;Navigator.replace()&lt;/code&gt; (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.25.0" rel="noopener noreferrer"&gt;0.25.0&lt;/a&gt;) maps to &lt;code&gt;replaceState&lt;/code&gt;, so the URL and shared links keep the edition, while Back leaves the game, just like on Android.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Link previews.&lt;/strong&gt; Crawlers and chat apps only read the HTML &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, so every address used to look the same. Since &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.24.0" rel="noopener noreferrer"&gt;0.24.0&lt;/a&gt;, the build writes a copy of the page for each fixed address with its own title and description, plus a sitemap and a real 404. A Cloudflare Pages Function rewrites the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; for game and giveaway pages using the API's edge cache. It never caches the HTML itself, because the HTML names the current bundle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security policy.&lt;/strong&gt; The content security policy (0.8.0) has to allow &lt;code&gt;'wasm-unsafe-eval'&lt;/code&gt; for Kotlin/Wasm, a &lt;code&gt;blob:&lt;/code&gt; worker, and &lt;code&gt;fonts.gstatic.com&lt;/code&gt;, where Compose fetches fallback fonts. It also blocked webpack's &lt;code&gt;eval()&lt;/code&gt;-based development source maps, so the dev server's app silently never started until I switched to separate &lt;code&gt;.map&lt;/code&gt; files. A CI check now fails if the policy gets looser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessibility&lt;/strong&gt; relies on the hidden DOM mirror of the canvas in Compose Multiplatform 1.12. I haven't tested it properly with a screen reader yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Startup: getting text on the first frame
&lt;/h2&gt;

&lt;p&gt;On Android, startup means a cold start of an app that's already installed. On the web, every first visit downloads the whole app before anything appears.&lt;/p&gt;

&lt;p&gt;The loading screen improved in steps: a dark background instead of a white page (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.3.6" rel="noopener noreferrer"&gt;0.3.6&lt;/a&gt;), then a spinner (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.1" rel="noopener noreferrer"&gt;0.11.1&lt;/a&gt;), then the logo inlined as a data URI (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.4" rel="noopener noreferrer"&gt;0.11.4&lt;/a&gt;). As a real &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;, the logo also gives Lighthouse a contentful paint. Before that, Lighthouse found no Largest Contentful Paint element at all, because nothing inside a canvas counts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Text that showed up late
&lt;/h3&gt;

&lt;p&gt;I assumed fonts made text appear late. So in &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.1" rel="noopener noreferrer"&gt;0.11.1&lt;/a&gt; I preloaded the fonts and strings, which the app only requests after the Wasm module starts, and dropped two unused font weights (783,828 → 469,992 bytes). The release note promised text in the app's font from the first frame.&lt;/p&gt;

&lt;p&gt;It didn't deliver. Tracing a reload frame by frame showed the full layout drawn with no text at all. I rebuilt older versions from Git and captured them the same way, with the API switched off.&lt;/p&gt;

&lt;p&gt;Here are both side by side. On the left, the first web build shows titles one at a time in a fallback font. On the right, after the preloads, a redesign, and the caching work, the fallback font is gone, but labels still appear one by one, down to a button with no label yet.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;First web build&lt;/th&gt;
&lt;th&gt;After preloads and caching&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;266 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;166 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw3gulighcn0p398cqrz9.png" alt="No section titles yet" width="360" height="300"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9ovc5ozm11uohhjmvu0j.png" alt="An unlabeled button" width="470" height="260"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;294 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;241 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuc7nctkr3en1p57yiecb.png" alt="One title, fallback font" width="360" height="300"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65087003p8ln3prmtfo3.png" alt="Some sidebar labels" width="470" height="260"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;305 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;277 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frgastpv7rsml6ca89uaw.png" alt="Still the fallback font" width="360" height="300"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9zfa0dbyszrm8frwlrwm.png" alt="Headline appears" width="470" height="260"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;424 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;320 ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F030qlun6su7c763fpj9f.png" alt="Every title, in Poppins" width="360" height="300"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fna133cbbp95n04fjx42j.png" alt="Complete" width="470" height="260"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;components-resources&lt;/code&gt; 1.12.2 sources explained why:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;stringResource()&lt;/code&gt; starts empty and &lt;code&gt;Font()&lt;/code&gt; starts with a fallback, so the first composition never has the right text.&lt;/li&gt;
&lt;li&gt;Every read goes through a Cache Storage copy that Compose deletes on each page load. That took about 107 ms in my trace.&lt;/li&gt;
&lt;li&gt;Reads are serialized behind a mutex. Replayed in JavaScript, they cost about 1.95 ms per string, or 340 ms for all 174 strings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The preloaded files were already in the HTTP cache. The app just couldn't get them out quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reading resources once
&lt;/h3&gt;

&lt;p&gt;In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.26.0" rel="noopener noreferrer"&gt;0.26.0&lt;/a&gt; I replaced the resource reader through the documented &lt;code&gt;LocalResourceReader&lt;/code&gt; hook. &lt;code&gt;WebResourceReader&lt;/code&gt; fetches each file once at its fingerprinted URL and keeps the strings in memory. Then &lt;code&gt;WebAppHost&lt;/code&gt; keeps the HTML loading screen up until every string and font is cached:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/src/wasmJsMain/.../WebAppHost.kt (trimmed)&lt;/span&gt;
&lt;span class="nc"&gt;CompositionLocalProvider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nc"&gt;LocalResourceReader&lt;/span&gt; &lt;span class="n"&gt;provides&lt;/span&gt; &lt;span class="nc"&gt;WebResourceReader&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;LocalPlatformPrefetchScheduler&lt;/span&gt; &lt;span class="n"&gt;provides&lt;/span&gt; &lt;span class="n"&gt;prefetchScheduler&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nc"&gt;LocalUriHandler&lt;/span&gt; &lt;span class="n"&gt;provides&lt;/span&gt; &lt;span class="nc"&gt;WebUriHandler&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;rememberStartupResourcesLoaded&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;PageAutoscrollHost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="c1"&gt;// Compose draws this composition in the same animation frame, before the browser paints.&lt;/span&gt;
        &lt;span class="nc"&gt;SideEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;removeLoadingScreen&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details mattered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The loading screen had to move outside the app's container, because &lt;code&gt;ComposeViewport&lt;/code&gt; empties that container when it starts.&lt;/li&gt;
&lt;li&gt;Removing it from a &lt;code&gt;SideEffect&lt;/code&gt;, instead of waiting an extra frame, saved about 85 ms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a resource fails to load, the gate opens anyway.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjqypazrytwu783g67myb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjqypazrytwu783g67myb.png" alt="The first screen of 0.26.0, complete on its first visible frame" width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it faster?&lt;/strong&gt; Honestly, I can't say. A first comparison (259 ms before, 214 ms after) didn't reproduce. Every probe that can see the old build's text also slows the new one, and reading the canvas each frame roughly doubled the new build's time to first screen. With only a mutation observer watching, the new build removes its loading screen at a median of about 283 ms in Chrome 157 and 320 ms in Firefox 160. What I'm sure of is in the screenshots: no more frames with missing labels or the wrong font.&lt;/p&gt;

&lt;h3&gt;
  
  
  Smaller fonts
&lt;/h3&gt;

&lt;p&gt;Most of Poppins' 1,059 glyphs per weight are Devanagari, which the app never shows. In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.27.0" rel="noopener noreferrer"&gt;0.27.0&lt;/a&gt; I used &lt;code&gt;pyftsubset&lt;/code&gt; to keep only English and Spanish (Basic Latin, Latin-1 Supplement, common punctuation, €, ™), with every layout feature intact. HarfBuzz shaped sample text identically in the old and new fonts.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Font files&lt;/td&gt;
&lt;td&gt;469,992 bytes (~212 KB compressed)&lt;/td&gt;
&lt;td&gt;57,812 bytes (~37 KB compressed)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Loading screen gone, slow 4G (3 cold loads each)&lt;/td&gt;
&lt;td&gt;28.44–28.47 s&lt;/td&gt;
&lt;td&gt;27.58–27.60 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's about 0.86 s sooner on Lighthouse's slow 4G profile (150 ms latency, 1.6 Mbps), and the Android and iOS apps got smaller too. The trade-off: other characters, like a Polish ł or a Japanese title, now use a fallback font. For game titles that's a real cost, and I accepted it.&lt;/p&gt;

&lt;p&gt;Those 28 seconds are almost entirely the Wasm download. A server-rendered page or a typical JavaScript framework would show readable text long before that. It's the main price of drawing everything with Skia in WebAssembly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Network: a sleepy API and endless loading
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A cold API.&lt;/strong&gt; On production, the slowest request wasn't a Wasm module. It was the app's first &lt;code&gt;/health&lt;/code&gt; call to its own API, which started at 541 ms and finished at 4,734 ms in one observation. The API is a small deployment that can take seconds to wake up. That &lt;code&gt;/health&lt;/code&gt; call is a best-effort warm-up the app has sent at startup since &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.3.2" rel="noopener noreferrer"&gt;0.3.2&lt;/a&gt;, so the API starts waking before Home asks for data. The same release made game reads cacheable &lt;code&gt;GET&lt;/code&gt;s instead of &lt;code&gt;POST&lt;/code&gt;s. Timeouts, bounded retries, and cancelling overlapping loads (0.7.1) came straight over from Android practice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Offline that loaded forever.&lt;/strong&gt; With the API blocked, web Home stayed in its loading state forever, and the console showed four uncaught &lt;code&gt;Error: Fail to fetch&lt;/code&gt; messages.&lt;/p&gt;

&lt;p&gt;The repositories use a &lt;code&gt;safeCall&lt;/code&gt; helper that maps &lt;code&gt;Exception&lt;/code&gt;s to typed failures. But Ktor 3.6.1's browser engine reports a rejected &lt;code&gt;fetch&lt;/code&gt; as &lt;code&gt;kotlin.Error("Fail to fetch", JsError(reason))&lt;/code&gt;, and &lt;code&gt;Error&lt;/code&gt; isn't an &lt;code&gt;Exception&lt;/code&gt;. OkHttp and the Darwin engine throw exceptions, so only the web was affected.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.27.0" rel="noopener noreferrer"&gt;0.27.0&lt;/a&gt;, a small check recognizes exactly that shape. Any other &lt;code&gt;Error&lt;/code&gt; is still rethrown:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/src/wasmJsMain/.../EngineFetchFailure.wasmJs.kt&lt;/span&gt;
&lt;span class="k"&gt;internal&lt;/span&gt; &lt;span class="n"&gt;actual&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nc"&gt;Throwable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isEngineFetchFailure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;cause&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="nc"&gt;JsError&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A browser test fetches a closed local port through the real engine, so a future Ktor change to the wrapper will break it. Now each section shows "Can't reach the server" with a Retry button, in Chrome and WebKit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A preconnect that didn't help.&lt;/strong&gt; I also tried &lt;code&gt;&amp;lt;link rel="preconnect"&amp;gt;&lt;/code&gt; for the API and image hosts. In six cold loads, no request reused the early connection. On slow 4G the 20-second gap outlives Chrome's idle connection, and on fast connections the warm-up request already opens it. I didn't ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Download size and two Safari surprises
&lt;/h2&gt;

&lt;p&gt;Here's what a first visit downloads, rebuilt from Git and compressed with &lt;code&gt;brotli -q 11&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;th&gt;Skia module&lt;/th&gt;
&lt;th&gt;App module&lt;/th&gt;
&lt;th&gt;JS loader&lt;/th&gt;
&lt;th&gt;Total&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First web build&lt;/td&gt;
&lt;td&gt;8.64 MB → 2.62 MB&lt;/td&gt;
&lt;td&gt;4.45 MB → 1.10 MB&lt;/td&gt;
&lt;td&gt;0.54 MB → 83 KB&lt;/td&gt;
&lt;td&gt;3.80 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Font preloads (0.11.1)&lt;/td&gt;
&lt;td&gt;8.65 MB → 2.62 MB&lt;/td&gt;
&lt;td&gt;5.60 MB → 1.25 MB&lt;/td&gt;
&lt;td&gt;0.55 MB → 83 KB&lt;/td&gt;
&lt;td&gt;3.96 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.26.0&lt;/td&gt;
&lt;td&gt;same&lt;/td&gt;
&lt;td&gt;6.09 MB → 1.35 MB&lt;/td&gt;
&lt;td&gt;0.58 MB → 84 KB&lt;/td&gt;
&lt;td&gt;4.06 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;The Skia module never changed.&lt;/li&gt;
&lt;li&gt;The app module grew by about a quarter as features landed. All of 0.26.0 added only 11,735 compressed bytes.&lt;/li&gt;
&lt;li&gt;Material 2 turned out to be about 1% of the app module (~20 KB compressed), so it isn't worth a migration for size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Brotli detour.&lt;/strong&gt; In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.4" rel="noopener noreferrer"&gt;0.11.4&lt;/a&gt; I served maximum-quality &lt;code&gt;.wasm.br&lt;/code&gt; files through a Pages Function and preloaded the modules. &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.5" rel="noopener noreferrer"&gt;The next release&lt;/a&gt; took both out, because Safari hung on the loading screen: its module preload failed with a lost connection. It only reproduced against the live site, which points at the CDN's HTTP/3, though I haven't confirmed that. I also preferred standard hosting behavior over custom serving code, so compression went back to the host's default. That leaves about 20% on the table: production serves the Skia module at 3,291,897 bytes, and &lt;code&gt;brotli -q 11&lt;/code&gt; makes it 2,621,262.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The white page in Safari 27.2.&lt;/strong&gt; Later, Safari 27.2 and every browser on iOS 27.2 showed a white page with no error. WebKit can corrupt float arguments in JavaScript tail calls into WebAssembly (&lt;a href="https://bugs.webkit.org/show_bug.cgi?id=329421" rel="noopener noreferrer"&gt;WebKit bug 329421&lt;/a&gt;), and every Skiko export wrapper is such a call (&lt;a href="https://youtrack.jetbrains.com/issue/CMP-10986" rel="noopener noreferrer"&gt;CMP-10986&lt;/a&gt;). The fix in &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.15.0" rel="noopener noreferrer"&gt;0.15.0&lt;/a&gt; is a small webpack loader:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// webApp/webpack/skiko-no-tail-call-loader.cjs&lt;/span&gt;
&lt;span class="c1"&gt;// Before: export let name = (...a) =&amp;gt; (name = loadedWasm._["name"])(...a);&lt;/span&gt;
&lt;span class="c1"&gt;// After:  export let name = (...a) =&amp;gt; { try { return (name = loadedWasm._["name"])(...a); } catch (e) { throw e; } };&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A call inside &lt;code&gt;try&lt;/code&gt; is never a tail call. A webpack plugin fails the build if any tail-call wrapper reaches a bundle, and a comment says to delete the whole thing once supported Safari versions have the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scrolling: measuring the probe instead of the app
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Habits that carried over from Android:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The shimmer reads its animated offset in &lt;code&gt;drawBehind&lt;/code&gt; instead of during composition (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.3.6" rel="noopener noreferrer"&gt;0.3.6&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AsyncImage&lt;/code&gt; replaced a painter, so Coil decodes covers at display size (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.7" rel="noopener noreferrer"&gt;0.11.7&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Covers load at the smallest IGDB size that fills the card, as WebP (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.15.1" rel="noopener noreferrer"&gt;0.15.1&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A code comment claimed WebP was "about a quarter smaller". When I re-measured five covers at 540×720, it was 3.6% smaller, and one cover was actually bigger. Choosing the right size was the real win: 264×352 covers are 67% smaller than 720p JPEGs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My first numbers were wrong.&lt;/strong&gt; They showed 150 ms frames, and most of that was my own probe calling &lt;code&gt;getImageData&lt;/code&gt; every frame. Without it, the 95th-percentile frame at 120 Hz was 9.3 ms.&lt;/p&gt;

&lt;p&gt;Profiling a development build with synthetic wheel input found the real cost. Of 391 busy samples, 223 were inside &lt;code&gt;ComposeWindow.onWheelEvent&lt;/code&gt;, where &lt;code&gt;LazyGridState.onScroll&lt;/code&gt; remeasured the grid and ran &lt;code&gt;Recomposer.composeInitial&lt;/code&gt;. New rows were being composed inside the DOM wheel event.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefetching did nothing.&lt;/strong&gt; On Android, the platform schedules lazy-layout prefetching between frames. On the web, Compose UI 1.12.2 falls back to &lt;code&gt;NoOpPlatformPrefetchScheduler&lt;/code&gt;. So prefetching did nothing, and neither did the "ahead" half of a cache window (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.6" rel="noopener noreferrer"&gt;0.11.6&lt;/a&gt;) whose KDoc said it worked everywhere.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.26.0" rel="noopener noreferrer"&gt;0.26.0&lt;/a&gt;, &lt;code&gt;WebPrefetchScheduler&lt;/code&gt; runs prefetch requests in whatever time is left in each animation frame:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/src/wasmJsMain/.../WebPrefetchScheduler.kt&lt;/span&gt;
&lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;runUntil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frameDeadline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Double&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;deadline&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frameDeadline&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;availableTimeNanos&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;highPriority&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ifEmpty&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;lowPriority&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;firstOrNull&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="k"&gt;break&lt;/span&gt;
        &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;hasMoreWork&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;with&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;scope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;// A request with more work ran out of time; it continues after the next frame.&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hasMoreWork&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;break&lt;/span&gt;
        &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeFirst&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nf"&gt;requestFrameIfNeeded&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It relies on &lt;code&gt;PlatformPrefetchScheduler&lt;/code&gt;, which is marked &lt;code&gt;@InternalComposeUiApi&lt;/code&gt;. I chose that over composing rows inside input events. The project docs say to recheck it on every Compose upgrade and delete it once Compose does this itself.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scrolling check&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chrome, time in wheel handlers over 40 wheel events&lt;/td&gt;
&lt;td&gt;78–104 ms before, 40–57 ms after&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firefox, same test&lt;/td&gt;
&lt;td&gt;No measurable difference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Headless Chrome at 4× and 6× CPU slowdown&lt;/td&gt;
&lt;td&gt;Frames held at 16.7 ms, with one 33 ms frame&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Jank has been reported on a Windows laptop, and I haven't reproduced it yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mouse and links: desktop habits a phone never needed
&lt;/h2&gt;

&lt;p&gt;A touchscreen has one kind of tap. A desktop browser has hover, a middle button, modifier keys, and years of user habits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Small fixes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cards show a hand cursor (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.1" rel="noopener noreferrer"&gt;0.11.1&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Focus highlights appear only in keyboard mode (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.13.0" rel="noopener noreferrer"&gt;0.13.0&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Pull-to-refresh is touch-only, because a wheel overscroll never "releases" (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.1" rel="noopener noreferrer"&gt;0.11.1&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Carousels have previous and next buttons (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.3.1" rel="noopener noreferrer"&gt;0.3.1&lt;/a&gt;), hidden on touchscreens (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.11.3" rel="noopener noreferrer"&gt;0.11.3&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;The web host enables a desktop layout with a sidebar (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.12.0" rel="noopener noreferrer"&gt;0.12.0&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Sharing uses the Web Share API, or copies the link where there's no share sheet (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.22.0" rel="noopener noreferrer"&gt;0.22.0&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Desktop pages get Compose's &lt;code&gt;VerticalScrollbar&lt;/code&gt; when a media query reports a precise pointer (&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.26.1" rel="noopener noreferrer"&gt;0.26.1&lt;/a&gt;). It hides half a second after scrolling stops, without the fade under reduced motion.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Links you can open in a new tab
&lt;/h3&gt;

&lt;p&gt;A canvas has no &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; elements, and &lt;code&gt;clickable&lt;/code&gt; only reacts to the primary button. In &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.26.0" rel="noopener noreferrer"&gt;0.26.0&lt;/a&gt; I added &lt;code&gt;Modifier.routeLink(route)&lt;/code&gt;, a common modifier that builds the address with the same &lt;code&gt;toWebPath()&lt;/code&gt; the history code uses. It's a no-op on Android and iOS, so shared components can use it without platform checks. On the web, it classifies each press before the element's click handler sees it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/src/wasmJsMain/.../RouteLink.wasmJs.kt&lt;/span&gt;
&lt;span class="k"&gt;internal&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;linkPress&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;middle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;shift&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="n"&gt;isApplePlatform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;when&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;middle&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OpenInNewTab&lt;/span&gt;
        &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;primary&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Activate&lt;/span&gt;
        &lt;span class="n"&gt;ctrl&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;isApplePlatform&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Ignore&lt;/span&gt; &lt;span class="c1"&gt;// a Ctrl-click is a secondary click on Apple systems&lt;/span&gt;
        &lt;span class="n"&gt;shift&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;isApplePlatform&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;ctrl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OpenInNewTab&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;LinkPress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Activate&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a new-tab press, it consumes the release and calls &lt;code&gt;window.open(url, "_blank", "noopener")&lt;/code&gt; while the browser still has user activation. The browser then places the tab just as it would for a real link.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.27.0" rel="noopener noreferrer"&gt;0.27.0&lt;/a&gt; extended it to more places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The profile and search buttons, "Explore games", "Open Releases", "Open News", and version chips.&lt;/li&gt;
&lt;li&gt;The inline link in "Expansion for &lt;em&gt;The Witcher 3&lt;/em&gt;". A new &lt;code&gt;routeTextLink&lt;/code&gt; asks the text layout whether a press hit the link's characters.&lt;/li&gt;
&lt;li&gt;External links. They already open a new tab on a normal click, so they only needed the middle button.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Right-click didn't work out.&lt;/strong&gt; The browser only shows its link menu over a real link, and Compose cancels &lt;code&gt;contextmenu&lt;/code&gt; anyway. I built a prototype that slipped an invisible &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; under the pointer. But it inserted DOM on every right-press, stole the next pointer-up, needed cleanup timers, and would have required declaring every route by hand. I never committed it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Autoscroll, which I'd written off
&lt;/h3&gt;

&lt;p&gt;Windows browsers autoscroll a page when you middle-click it, but only for scrollable page elements, and a Compose list isn't one. &lt;a href="https://github.com/vladleesi/braindance/releases/tag/app-v0.27.0" rel="noopener noreferrer"&gt;0.27.0&lt;/a&gt; builds it anyway. &lt;code&gt;WebAppHost&lt;/code&gt; watches for middle presses in the main pointer pass, which reaches the root after everything under the pointer has seen the event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/src/wasmJsMain/.../PageAutoscroll.kt&lt;/span&gt;
&lt;span class="c1"&gt;// The main pass reaches this root after everything under the pointer, so a link that took the press is known.&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;press&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;awaitPointerEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;PointerEventPass&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Main&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;change&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;press&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;changes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;first&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;autoscrollPress&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;press&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;PointerEventType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Press&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
        &lt;span class="n"&gt;change&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;PointerType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Mouse&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
        &lt;span class="n"&gt;press&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buttons&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isTertiaryPressed&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
        &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;change&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isConsumed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Links consume their middle press, so autoscroll only starts when nothing else claimed it. Pages register through the scrollbar call they already make, so new screens need no extra wiring. The root scrolls the innermost page under the pointer on each animation frame through &lt;code&gt;ScrollableState.scroll&lt;/code&gt;. That counts as user input, so the scrollbar shows and a wheel scroll takes over.&lt;/p&gt;

&lt;p&gt;How it behaves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After a click, it keeps scrolling until the next click or Esc.&lt;/li&gt;
&lt;li&gt;If you hold the middle button while moving, it stops when you let go.&lt;/li&gt;
&lt;li&gt;It's Windows-only. macOS has no such convention, and Linux pastes on middle click.&lt;/li&gt;
&lt;li&gt;It moves only the page, not the horizontal rows inside it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I tested it in headless Chrome told it was running on Windows, not on an actual Windows machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still missing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Right-click menus:&lt;/strong&gt; none.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Link address on hover:&lt;/strong&gt; browsers only show it for real link elements. I could draw a look-alike, but I haven't decided whether it's worth it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text selection:&lt;/strong&gt; works only inside a &lt;code&gt;SelectionContainer&lt;/code&gt;. Giveaway descriptions use one, and most other text doesn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wheel distance:&lt;/strong&gt; Compose 1.12.2 converts wheel deltas with no app setting, so a notch can scroll less than a normal page. Firefox on Windows is probably the worst case. I won't ship a guessed multiplier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing coverage:&lt;/strong&gt; most measurements come from one Mac, in Chrome and Firefox. Safari, Edge, Windows, and phones are next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download size:&lt;/strong&gt; better Brotli could still cut the first visit by about a fifth.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advice for other Android developers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The web target is the cheap part.&lt;/strong&gt; Treat the browser as its own platform, with its own history, caching, deployment, HTML metadata, and pointer conventions. For me, that was 37 commits and about 2,300 lines on top of a shared UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content-hash everything you cache,&lt;/strong&gt; Compose resources included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read your framework's web code.&lt;/strong&gt; My two biggest wins came from reading Compose sources, not from error messages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check what each platform throws.&lt;/strong&gt; A failed request that's an &lt;code&gt;IOException&lt;/code&gt; on Android is a &lt;code&gt;kotlin.Error&lt;/code&gt; from the browser engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Doubt your own claims.&lt;/strong&gt; "Text from the first frame", "WebP is a quarter smaller", and "the cache window works on every target" all turned out to be at least partly wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure production builds,&lt;/strong&gt; and make sure your probe isn't what you're timing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guard every workaround&lt;/strong&gt; with a build check and a note on when to remove it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Compose Multiplatform gave Braindance a web app with the same screens and logic as the phone apps. Much of the rest has been building, one commit at a time, what a regular website gets for free. Some gaps won't close from inside the app, and some I still have to go and find.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://braindancegg.com" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2qajwlrs9xnti5unjktc.png" alt="Braindance" width="799" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Braindance helps you find what to play next: popular and upcoming games, games like the ones you already love, and free game giveaways.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web:&lt;/strong&gt; live now at &lt;a href="https://app.braindancegg.com/" rel="noopener noreferrer"&gt;app.braindancegg.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android:&lt;/strong&gt; alpha testing comes next. Join the &lt;a href="https://discord.gg/XawnYAVdzj" rel="noopener noreferrer"&gt;Discord&lt;/a&gt; to try early versions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS:&lt;/strong&gt; after Android.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ideas and bugs:&lt;/strong&gt; &lt;a href="https://www.reddit.com/r/BraindanceGG/" rel="noopener noreferrer"&gt;r/BraindanceGG&lt;/a&gt; or &lt;a href="https://github.com/vladleesi/braindance" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, where all the code is open source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;News:&lt;/strong&gt; @braindancegg on &lt;a href="https://x.com/braindancegg" rel="noopener noreferrer"&gt;X&lt;/a&gt;, &lt;a href="https://bsky.app/profile/braindancegg.com" rel="noopener noreferrer"&gt;Bluesky&lt;/a&gt;, and &lt;a href="https://www.threads.com/@braindancegg" rel="noopener noreferrer"&gt;Threads&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If something feels wrong in your browser, I'd like to hear about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to find the code
&lt;/h2&gt;

&lt;p&gt;The full source is on &lt;a href="https://github.com/vladleesi/braindance" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. These are the changes this post describes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The first web build:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/a117aba04f74d9a274fd0b8d421a5dca8f92afa8" rel="noopener noreferrer"&gt;the &lt;code&gt;webApp&lt;/code&gt; module&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caching:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/cac2640ca4f01f7c71941a3aaf76bc0dd7979423" rel="noopener noreferrer"&gt;versioned bundle name&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/da361e2cc88b8917c09b1269637399fb02d20559" rel="noopener noreferrer"&gt;Cloudflare Pages and hashed files&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/86b9d60a2b67c9a267e9fc7267e5bfed60c43d93" rel="noopener noreferrer"&gt;versioned resource URLs&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/78acb79960b79b71ccf21b20ab807abdb0760b7a" rel="noopener noreferrer"&gt;content fingerprint&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Navigation:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/e98c1bf6248d7a12c80c91512857b6b4393377a9" rel="noopener noreferrer"&gt;restore after reload&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/e73a207c92dda9a327f71e4bc8ab998d0e8435f3" rel="noopener noreferrer"&gt;hash routes&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/b26e2202d6da41f10da76a1d70dc3c236e065e4c" rel="noopener noreferrer"&gt;plain paths and history snapshots&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/6807aeb5dc9b3ca6ccabade511be68aee82f5dfc" rel="noopener noreferrer"&gt;editions with &lt;code&gt;replaceState&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Page metadata and security:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/b02fa38865c52e8cd1408a180aa3a6869e9cde6a" rel="noopener noreferrer"&gt;per-page titles and link previews&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/f150a3f99fcff6b1ede2da8d1222945058ee3b6a" rel="noopener noreferrer"&gt;content security policy&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/9389448394c68d915b4b8cd07f201afe27fb63ec" rel="noopener noreferrer"&gt;CI policy check&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Startup:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/d8ece3b6dfcd7c566612e406a3bc7586bd8ff2b5" rel="noopener noreferrer"&gt;dark background&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/c6d5df0c0b918ca081642ca42cfde727b671151b" rel="noopener noreferrer"&gt;spinner and font preloads&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/58a2c53edc227a6a8583f737895b647d77698467" rel="noopener noreferrer"&gt;resource reader and startup gate&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/0aebd6f5e50af62bb40c57de84acfc183e2d7223" rel="noopener noreferrer"&gt;font subset and offline fix&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/02a2f977df5ad53e7977d5c1966f93e37daafa10" rel="noopener noreferrer"&gt;warm-up and cacheable reads&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/346089560ade1543296756600aa3cf9119014e65" rel="noopener noreferrer"&gt;timeouts and retries&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/d758cbe737ba1333f5d570f2c7e21dd9b968604c" rel="noopener noreferrer"&gt;cancelling overlapping loads&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download size and Safari:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/0c56566ff2f68b68c46342e905f67c74530de7d6" rel="noopener noreferrer"&gt;Brotli and module preloads&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/776462425ad02e2d613eb697e8abd56d5fdcd729" rel="noopener noreferrer"&gt;the Safari fix that removed them&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/78ee24fbb69821cd28fd5bed23910d7e6eab60b2" rel="noopener noreferrer"&gt;the tail-call workaround&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrolling:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/c692db7fc50629256049f026cda4c65f2adc7e84" rel="noopener noreferrer"&gt;images at display size&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/2911fde47134f6c58b0efd848da8723870611bda" rel="noopener noreferrer"&gt;smallest covers as WebP&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/f81a7fe6e26ec9a2b0dd75d6771b3ae020376dd1" rel="noopener noreferrer"&gt;the cache window&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/58a2c53edc227a6a8583f737895b647d77698467" rel="noopener noreferrer"&gt;the prefetch scheduler&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mouse and links:&lt;/strong&gt; &lt;a href="https://github.com/vladleesi/braindance/commit/b28c46a5dea18175c469ed79d0a64fd382e2bb96" rel="noopener noreferrer"&gt;keyboard-only focus&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/24ec4b2695ee4a0016ea8f571d54d0aab03b193e" rel="noopener noreferrer"&gt;carousel buttons&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/0eb57c0ec68bb70d601ddbe052a916c4c168c1be" rel="noopener noreferrer"&gt;desktop layout&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/4b91525ad152444265b3cf11a9cbd6716cc5642d" rel="noopener noreferrer"&gt;sharing&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/d9b84c9ac372c5489180236a10c19aaa47e74c8c" rel="noopener noreferrer"&gt;scrollbars&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/58a2c53edc227a6a8583f737895b647d77698467" rel="noopener noreferrer"&gt;new-tab links&lt;/a&gt;, &lt;a href="https://github.com/vladleesi/braindance/commit/0aebd6f5e50af62bb40c57de84acfc183e2d7223" rel="noopener noreferrer"&gt;more links and autoscroll&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I measured
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Machine:&lt;/strong&gt; a MacBook Pro with Apple silicon and a 120 Hz display, running Chrome 157 and Firefox 160.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Builds:&lt;/strong&gt; production builds, except for function-level profiling. Older versions were rebuilt in Git worktrees with their own toolchains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;First frames:&lt;/strong&gt; a script read the canvas after each animation frame, with every API request failing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Startup:&lt;/strong&gt; a &lt;code&gt;MutationObserver&lt;/code&gt; waited for the loading screen to disappear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fonts and preconnect:&lt;/strong&gt; headless Chrome over DevTools, with fresh profiles, a local gzip server, and the production API. DevTools throttling adds latency per request but not per connection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrolling:&lt;/strong&gt; 40 synthetic wheel events of 100 px, 40 ms apart, three runs per build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource reads:&lt;/strong&gt; the default reader's steps replayed 174 times in JavaScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sizes:&lt;/strong&gt; &lt;code&gt;brotli&lt;/code&gt;, &lt;code&gt;gzip&lt;/code&gt;, and &lt;code&gt;curl&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The limits are real: one fast machine, mostly localhost, synthetic input, and small samples. None of this tells you how the app behaves on Windows, Safari, phones, or slower hardware.&lt;/p&gt;

&lt;p&gt;P.S. If this post was useful, please consider giving a ⭐ to the &lt;a href="https://github.com/vladleesi/braindance" rel="noopener noreferrer"&gt;Braindance GitHub repository&lt;/a&gt;. Thank you! 🙏&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>multiplatform</category>
      <category>webdev</category>
      <category>performance</category>
    </item>
    <item>
      <title>Vertical text in Jetpack Compose (without rotation width problems)</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Tue, 27 Jan 2026 09:41:03 +0000</pubDate>
      <link>https://dev.to/vladleesi/vertical-text-in-jetpack-compose-without-rotation-width-problems-4n2m</link>
      <guid>https://dev.to/vladleesi/vertical-text-in-jetpack-compose-without-rotation-width-problems-4n2m</guid>
      <description>&lt;p&gt;Sometimes you need vertical text in Jetpack Compose — for side labels, indicators, or compact UI elements. A naive approach is rotating a &lt;code&gt;Text&lt;/code&gt;, but rotation preserves the original layout bounds, which often leads to incorrect width and spacing.&lt;/p&gt;

&lt;p&gt;If we simply rotate a &lt;code&gt;Text&lt;/code&gt;, the layout still uses the &lt;strong&gt;horizontal width&lt;/strong&gt;, causing the text to be visually clipped when rendered vertically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Vertical Text!"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;modifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;270f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which results in the following layout:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9cxrujou5cl56kda8be1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9cxrujou5cl56kda8be1.jpg" alt="Simple rotation with incorrect width" width="755" height="226"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fix this issue, the following composable renders text vertically by rotating and laying out each character individually, adjusting layout bounds so the width behaves as expected:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgsxpobhxqb0e57nrtl1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgsxpobhxqb0e57nrtl1.jpg" alt="VerticalText with corrected layout bounds" width="160" height="626"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Implementation
&lt;/h3&gt;

&lt;p&gt;In this case, each character is rendered as a separate Text and rotated individually. By applying the rotation per character, we avoid treating the entire string as a single horizontal block, which allows the layout to size and position each char correctly in a vertical flow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;reversedText&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;remember&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reversed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;Column&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;horizontalAlignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Alignment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CenterHorizontally&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;verticalArrangement&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Arrangement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Center&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;reversedText&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;forEach&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kt"&gt;char&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;
        &lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;modifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rotateVertically&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And &lt;code&gt;rotateVertically&lt;/code&gt; makes the rotation layout-aware. &lt;code&gt;Modifier.rotate(270f)&lt;/code&gt; only affects drawing, so without additional work the layout would still use the original horizontal bounds. This extension fixes that by explicitly re-measuring and re-placing the rotated content.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rotateVertically&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Rotate the content&lt;/span&gt;
    &lt;span class="c1"&gt;// The rotate modifier applies a 270° rotation, affecting only how the text is drawn.&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;rotate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;270f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;adjustBounds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;layout&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;measurable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraints&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;
        &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;placeable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;measurable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="c1"&gt;// Re-measure with relaxed constraints&lt;/span&gt;
            &lt;span class="c1"&gt;// The custom layout block measures the child with unbounded width and height. &lt;/span&gt;
            &lt;span class="c1"&gt;// This prevents clipping and lets the text report its natural size after rotation.&lt;/span&gt;
            &lt;span class="n"&gt;constraints&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;minWidth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;minHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;maxWidth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Constraints&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Infinity&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;maxHeight&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Constraints&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Infinity&lt;/span&gt;
            &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="c1"&gt;// Swap width and height to match the rotated orientation and the child is re-centered.&lt;/span&gt;
        &lt;span class="nf"&gt;layout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;// Re-center the rotated content so it stays aligned within the new bounds.&lt;/span&gt;
            &lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;place&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;placeable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;adjustBounds&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In short, this modifier combines a visual rotation with a custom layout pass, ensuring that the measured size reflects the rotated content rather than the original horizontal text.&lt;/p&gt;

&lt;p&gt;You can find the full code &lt;a href="https://gist.github.com/vladleesi/27fae826ffa7490d697bc96d674ebd36" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;br&gt;
If this saved you some time, consider starring the gist 🙏&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>android</category>
      <category>multiplatform</category>
      <category>ui</category>
    </item>
    <item>
      <title>Write Once, Run Everywhere: Building with Kotlin and Compose Multiplatform</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Fri, 28 Jul 2023 06:44:09 +0000</pubDate>
      <link>https://dev.to/vladleesi/write-once-run-everywhere-building-with-kmm-and-compose-multiplatform-3kh9</link>
      <guid>https://dev.to/vladleesi/write-once-run-everywhere-building-with-kmm-and-compose-multiplatform-3kh9</guid>
      <description>&lt;p&gt;Welcome to the world of Kotlin multiplatform app development! In this article, we'll explore a simple example of an app built entirely with Kotlin. We'll leverage the power of Kotlin multiplatform, Compose multiplatform, Kotlin Coroutines, Kotlin Serialization, and Ktor to create an app that runs smoothly on both Android and iOS platforms.&lt;/p&gt;

&lt;p&gt;The focus here is on creating a multiplatform app that uses shared network logic and user interface only just on Kotlin.&lt;/p&gt;

&lt;p&gt;We require macOS, &lt;a href="https://developer.android.com/studio" rel="noopener noreferrer"&gt;Android Studio&lt;/a&gt;, &lt;a href="https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform-mobile" rel="noopener noreferrer"&gt;Kotlin Multiplatform Mobile plugin&lt;/a&gt;, &lt;a href="https://developer.apple.com/xcode/" rel="noopener noreferrer"&gt;Xcode&lt;/a&gt;, and a dash of enthusiasm!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Disclaimer: I aim to focus solely on essential aspects. For the complete code, please refer to the following GitHub repository: &lt;a href="https://github.com/vladleesi/factastic" rel="noopener noreferrer"&gt;https://github.com/vladleesi/factastic&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, let's get started!&lt;/p&gt;

&lt;p&gt;To begin, let's create a multiplatform project in Android Studio by selecting "New Project" and then choosing the "Kotlin Multiplatform App" template.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwnn34qwg4p77gjuy6gam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwnn34qwg4p77gjuy6gam.png" alt="Creation of new multiplatform project" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After creating the multiplatform project in Android Studio, the next step is to add all the necessary dependencies and plugins.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// gradle.properties&lt;/span&gt;
&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jetbrains&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;experimental&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uikit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="n"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;native&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cacheKind&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;none&lt;/span&gt;

&lt;span class="c1"&gt;// build.gradle.kts (app)&lt;/span&gt;
&lt;span class="n"&gt;plugins&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"multiplatform"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"com.android.application"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"com.android.library"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"org.jetbrains.compose"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"plugin.serialization"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;span class="c1"&gt;// settings.gradle.kts&lt;/span&gt;
&lt;span class="n"&gt;plugins&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;kotlinVersion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"kotlin.version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;gradleVersion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"gradle.version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;composeVersion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"compose.version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;

    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"jvm"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kotlinVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"multiplatform"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kotlinVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"plugin.serialization"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kotlinVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"android"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kotlinVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"com.android.application"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gradleVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"com.android.library"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gradleVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"org.jetbrains.compose"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;composeVersion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;repositories&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;google&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;mavenCentral&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;maven&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://maven.pkg.jetbrains.space/public/p/compose/dev"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After setting up versions, we proceed to work on the platform-specific 'shared' module.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// build.gradle.kts&lt;/span&gt;
&lt;span class="n"&gt;plugins&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"multiplatform"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"com.android.library"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"org.jetbrains.compose"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"plugin.serialization"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;listOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nf"&gt;iosX64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;iosArm64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;iosSimulatorArm64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;forEach&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;binaries&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;framework&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="n"&gt;baseName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"shared"&lt;/span&gt;
         &lt;span class="c1"&gt;// IMPORTANTE: Include a static library instead of a dynamic one into the framework.&lt;/span&gt;
         &lt;span class="n"&gt;isStatic&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;commonMain&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;getting&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="n"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="c1"&gt;// Compose Multiplatform&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runtime&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;foundation&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;material&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
         &lt;span class="nd"&gt;@OptIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jetbrains&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ExperimentalComposeLibrary&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;components&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

         &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
     &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And add dependencies for Android &amp;amp; iOS http client specifics.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;androidMain&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;getting&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="n"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;ktorVersion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ktor.version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"io.ktor:ktor-client-okhttp:$ktorVersion"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;iosMain&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;getting&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
         &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;ktorVersion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ktor.version"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;
         &lt;span class="nf"&gt;implementation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"io.ktor:ktor-client-darwin:$ktorVersion"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, it's time to dive into the UI development. We'll focus on creating a simple UI featuring a button to generate random useless facts from a server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/../FactasticApp.kt&lt;/span&gt;
&lt;span class="nd"&gt;@Composable&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nc"&gt;FactasticApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AppViewModel&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;modifier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Modifier&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;FactasticTheme&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Surface&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;modifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;modifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fillMaxSize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;color&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MaterialTheme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;background&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stateFlow&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;collectAsState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="nc"&gt;LaunchedEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Unit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loadUselessFact&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="nc"&gt;MainScreen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Business logic inside &lt;code&gt;AppViewModel&lt;/code&gt; is &lt;a href="https://github.com/vladleesi/factastic/blob/master/shared/src/commonMain/kotlin/dev/vladleesi/factastic/presentation/AppViewModel.kt" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;br&gt;
Configuration of Ktor client is &lt;a href="https://github.com/vladleesi/factastic/blob/master/shared/src/commonMain/kotlin/dev/vladleesi/factastic/data/api/HttpClient.kt" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Behold, the moment for the grand trick has arrived.&lt;/p&gt;

&lt;h4&gt;
  
  
  Android
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MainActivity&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ComponentActivity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bundle&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;viewModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AppViewModel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;setContent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nc"&gt;FactasticApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  iOS
&lt;/h4&gt;

&lt;p&gt;Let's adapt our Compose code for iOS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// shared/iosMain/../FactasticApp.kt&lt;/span&gt;

&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nc"&gt;MainViewController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;UIViewController&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;viewModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AppViewModel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;ComposeUIViewController&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;FactasticApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;viewModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, we should open Xcode to work on the iOS part, as we need to perform some Swift-related tasks. Locate &lt;code&gt;iosApp/iosApp.xcodeproj&lt;/code&gt;, right-click on it, and then choose "Open in" -&amp;gt; "Xcode."&lt;/p&gt;

&lt;p&gt;In Xcode, create a new Swift file named "ComposeView.swift" by clicking on "File" -&amp;gt; "New" -&amp;gt; "File..." -&amp;gt; "Swift File" -&amp;gt; "Next" -&amp;gt; "ComposeView.swift" -&amp;gt; "Create."&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh my God, what is this? Is it Swift?&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="c1"&gt;// ComposeView.swift&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Foundation&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;SwiftUI&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;shared&lt;/span&gt;

&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="nc"&gt;ComposeView&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;UIViewControllerRepresentable&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;updateUIViewController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="n"&gt;uiViewController&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;UIViewControllerType&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// ignore&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;makeUIViewController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;some&lt;/span&gt; &lt;span class="nc"&gt;UIViewController&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;FactasticAppKt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MainViewController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make a minor update to the existing &lt;code&gt;ContentView.swift&lt;/code&gt; file in Xcode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;SwiftUI&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;shared&lt;/span&gt;

&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="nc"&gt;ContentView&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;View&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;some&lt;/span&gt; &lt;span class="nc"&gt;View&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// This one&lt;/span&gt;
      &lt;span class="nc"&gt;ComposeView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="nc"&gt;ContentView_Previews&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PreviewProvider&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;previews&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;some&lt;/span&gt; &lt;span class="nc"&gt;View&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;ContentView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all the Xcode part, you may forget about it (if you can) and return to Android Studio.&lt;/p&gt;

&lt;p&gt;Before running the app, we must build the iOS module using the following command: &lt;code&gt;./gradlew :shared:compileKotlinIosArm64&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In Android Studio, select the target platform, and then click on the "Run" button to launch the application on the chosen platform.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy2c9iv7xbl1vms6qo3z.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy2c9iv7xbl1vms6qo3z.jpg" alt="Choosing target platform for launch" width="400" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Well done!&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Android (Dark theme)&lt;/th&gt;
&lt;th&gt;iOS (Light theme)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftvgbm18ch9x2vmypi0z2.gif" alt="Android (Dark theme)" width="295" height="640"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhtgbvoh1d4402og8ims6.gif" alt="iOS (Light theme)" width="300" height="649"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kotlinlang.org/docs/multiplatform-mobile-getting-started.html" rel="noopener noreferrer"&gt;Kotlin Multiplatform for mobile&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.jetbrains.com/lp/compose-multiplatform/" rel="noopener noreferrer"&gt;Compose Multiplatform&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kotlinlang.org/docs/coroutines-overview.html" rel="noopener noreferrer"&gt;Kotlin Coroutines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kotlinlang.org/docs/serialization.html" rel="noopener noreferrer"&gt;Kotlin Serialization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ktor.io/docs/getting-started-ktor-client.html" rel="noopener noreferrer"&gt;Ktor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/AAkira/Napier" rel="noopener noreferrer"&gt;Napier&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Update as of 08/02/2023:&lt;br&gt;
Additionally, I have incorporated &lt;a href="https://github.com/vladleesi/factastic/tree/master/desktop" rel="noopener noreferrer"&gt;the desktop module&lt;/a&gt; into the project.&lt;/p&gt;

&lt;p&gt;P.S.&lt;br&gt;
I'd greatly appreciate receiving feedback. If my examples happen to be useful to you, please, consider giving a star to the GitHub repository. Thank you!&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>android</category>
      <category>ios</category>
      <category>multiplatform</category>
    </item>
    <item>
      <title>Accessibility Guidelines for Android Apps</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Thu, 06 Jul 2023 15:02:00 +0000</pubDate>
      <link>https://dev.to/vladleesi/accessibility-guidelines-for-android-apps-3h30</link>
      <guid>https://dev.to/vladleesi/accessibility-guidelines-for-android-apps-3h30</guid>
      <description>&lt;p&gt;This article provides comprehensive guidelines and best practices for making your Android app more accessible to users with disabilities. By following these recommendations, you can ensure that your app is usable and inclusive for a wider range of users.&lt;/p&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Accessibility is crucial in Android app development to ensure that all users, including those with disabilities, can fully access and interact with your app. This article will help you understand the key principles and techniques for creating accessible Android apps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Designing Accessible UI
&lt;/h3&gt;

&lt;p&gt;When designing your app's user interface, keep these accessibility considerations in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Color Contrast&lt;/strong&gt;: Use appropriate color contrast to ensure readability for users with visual impairments. Consider using tools like the Web Content Accessibility Guidelines (WCAG) color contrast checker to validate your color choices.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Text Size and Resizability&lt;/strong&gt;: Provide resizable text options to accommodate users with different visual needs. Consider implementing features such as adjustable font size within your app.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Interactive Elements&lt;/strong&gt;: Ensure interactive elements, such as buttons and checkboxes, are large enough for easy touch interaction. Provide sufficient spacing between elements to prevent accidental taps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Responsive Layout&lt;/strong&gt;: Make sure your layout is responsive and works well across different screen sizes and orientations. Test your app on various devices to ensure proper usability.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Handling Accessibility Focus and Navigation
&lt;/h3&gt;

&lt;p&gt;To support users who rely on accessibility features, consider the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Focus Order&lt;/strong&gt;: Set the proper focus order for interactive elements to ensure a logical flow. Users who navigate using keyboard or assistive technologies should be able to navigate through your app in a consistent and intuitive manner.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Feedback and Visual Cues&lt;/strong&gt;: Provide appropriate feedback and visual cues when elements receive focus. For example, you can highlight the focused element or provide audio feedback.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Providing Alternative Text
&lt;/h3&gt;

&lt;p&gt;Adding alternative text to images is crucial for users with visual impairments. Follow these guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the &lt;code&gt;android:contentDescription&lt;/code&gt; attribute to provide descriptive alternative text for images.&lt;/li&gt;
&lt;li&gt;Consider the context in which the image is used to provide accurate and meaningful descriptions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Supporting Screen Readers and Assistive Technologies
&lt;/h3&gt;

&lt;p&gt;Ensure your app is compatible with screen readers and other assistive technologies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Markup and Semantic Elements&lt;/strong&gt;: Use proper markup and semantic elements to provide meaningful information to screen readers. For example, use the appropriate accessibility roles and states for interactive elements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Announcements&lt;/strong&gt;: Make sure interactive elements, such as buttons and checkboxes, are announced correctly by screen readers. Test your app with popular screen readers like &lt;a href="https://support.google.com/accessibility/android/answer/6007100" rel="noopener noreferrer"&gt;TalkBack&lt;/a&gt; to ensure compatibility.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Color Contrast and Readability
&lt;/h3&gt;

&lt;p&gt;Choose colors carefully to maintain sufficient contrast for users with visual impairments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensure that text is easily readable by choosing appropriate color combinations. Consider the contrast ratio between the foreground text color and the background color.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Testing and Validation
&lt;/h3&gt;

&lt;p&gt;Thoroughly test and validate your app's accessibility features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Manual Testing&lt;/strong&gt;: Conduct manual testing by using your app with accessibility features enabled. Try navigating through the app using a keyboard and assistive technologies.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Automated Testing&lt;/strong&gt;: Utilize automated testing tools, such as Accessibility Scanner or &lt;a href="https://support.google.com/accessibility/android/answer/6007100" rel="noopener noreferrer"&gt;TalkBack&lt;/a&gt; testing, to identify potential issues. These tools can help you detect accessibility violations and provide suggestions for improvement.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;User Feedback&lt;/strong&gt;: Get feedback from users with disabilities or involve accessibility experts to provide insights and suggestions. User feedback can help you identify real-world usage scenarios and areas for improvement.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Resources and References
&lt;/h3&gt;

&lt;p&gt;For further learning and detailed documentation on Android app accessibility, refer to the following resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.android.com/guide/topics/ui/accessibility" rel="noopener noreferrer"&gt;Android Accessibility Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.google.com/accessibility/" rel="noopener noreferrer"&gt;Google Accessibility&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noopener noreferrer"&gt;Web Content Accessibility Guidelines (WCAG)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;By following these accessibility guidelines, you can make your Android app more inclusive and provide an excellent user experience for users with disabilities. Let's work together to create apps that everyone can enjoy!&lt;/p&gt;

&lt;p&gt;If you have any questions or need further assistance, please reach out to the project contributors or leave a comment below.&lt;/p&gt;




&lt;p&gt;This article was written to provide comprehensive accessibility guidance for Android app developers. Feel free to share this article with fellow developers and contribute to the conversation on creating accessible apps.&lt;/p&gt;

&lt;p&gt;If you have any suggestions or feedback, please feel free to leave a comment.&lt;/p&gt;

</description>
      <category>android</category>
      <category>tutorial</category>
      <category>ui</category>
      <category>development</category>
    </item>
    <item>
      <title>How to set up publication signature with the Gradle plugin</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Sun, 11 Jun 2023 21:09:40 +0000</pubDate>
      <link>https://dev.to/vladleesi/how-to-set-up-publication-signature-with-the-gradle-plugin-hfa</link>
      <guid>https://dev.to/vladleesi/how-to-set-up-publication-signature-with-the-gradle-plugin-hfa</guid>
      <description>&lt;h2&gt;
  
  
  Introduction:
&lt;/h2&gt;

&lt;p&gt;In the realm of software development, ensuring the security and integrity of your artifacts is of paramount importance. One effective approach is to sign your artifacts using GPG (GNU Privacy Guard) keys. This article will guide you through the process of setting up GPG, generating keys, and utilizing &lt;a href="https://docs.gradle.org/current/userguide/signing_plugin.html" rel="noopener noreferrer"&gt;The Signing Plugin&lt;/a&gt; to sign artifacts before publishing them to Nexus.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Installing GPG:
&lt;/h3&gt;

&lt;p&gt;To begin, let's install GPG on our system. Follow the instructions below:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&lt;br&gt;
      - Open a terminal window.&lt;br&gt;
      - Execute the command: &lt;code&gt;sudo apt-get install gnupg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;macOS&lt;/strong&gt;:&lt;br&gt;
      - Open a terminal window.&lt;br&gt;
      - Run the command: &lt;code&gt;brew install gnupg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&lt;br&gt;
      - Download the Gpg4win installer from the &lt;a href="https://gpg4win.org/" rel="noopener noreferrer"&gt;Gpg4win website&lt;/a&gt;.&lt;br&gt;
      - Run the installer and follow the on-screen instructions.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Generating GPG Keys:
&lt;/h3&gt;

&lt;p&gt;Once GPG is installed, let's generate GPG keys. These keys will be used to sign your artifacts. Follow these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open a terminal or command prompt.&lt;/li&gt;
&lt;li&gt;Execute the command: &lt;code&gt;gpg --full-generate-key&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Follow the interactive prompts to configure your key, such as selecting the key type and size.&lt;/li&gt;
&lt;li&gt;Set a strong passphrase for your key. Remember this passphrase as you will need it later.&lt;/li&gt;
&lt;li&gt;Once the key generation is complete, your GPG key pair will be stored in the GPG keyring.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  3. Configuring The Signing Plugin:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Open the &lt;code&gt;build.gradle&lt;/code&gt; file of your project.&lt;/li&gt;
&lt;li&gt;Add the following lines to the top of the file:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight groovy"&gt;&lt;code&gt;   &lt;span class="n"&gt;plugins&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
       &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="s1"&gt;'signing'&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Configure the signing plugin for root project:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight groovy"&gt;&lt;code&gt;   &lt;span class="n"&gt;signing&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
       &lt;span class="n"&gt;sign&lt;/span&gt; &lt;span class="n"&gt;publishing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;publications&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Provide the GPG key details in &lt;code&gt;gradle.properties&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight groovy"&gt;&lt;code&gt;&lt;span class="n"&gt;signing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keyId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;YOUR_KEY_ID&lt;/span&gt;
&lt;span class="n"&gt;signing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;secretKeyRingFile&lt;/span&gt;&lt;span class="o"&gt;=~/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gnupg&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;secring&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gpg&lt;/span&gt;
&lt;span class="n"&gt;signing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;YOUR_PASSPHRASE&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To get the &lt;code&gt;keyId&lt;/code&gt;, you can run the following command &lt;code&gt;gpg --list-keys --keyid-format short&lt;/code&gt; and take the 8-digit value&lt;/li&gt;
&lt;li&gt;The secring.gpg file has been removed in GPG 2.1. However, GPG still can create such a file: &lt;code&gt;gpg --export-secret-keys -o secring.gpg&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;To upload your public key to the keyserver, you can use the following command &lt;code&gt;gpg --keyserver hkp://keyserver.ubuntu.com --send-keys YOUR_KEY_ID&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  4. Publish with signing:
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;./gradlew publishToMavenLocal&lt;/code&gt;&lt;br&gt;
&lt;code&gt;./gradlew publish&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Sep 28, 2026 Update: GitHub Actions + Maven Central
&lt;/h3&gt;

&lt;p&gt;The original article uses &lt;code&gt;secring.gpg&lt;/code&gt;. For GitHub Actions, it is easier and safer to use an &lt;strong&gt;in-memory GPG key&lt;/strong&gt; and Maven Central secrets.&lt;/p&gt;
&lt;h4&gt;
  
  
  1. Open the Maven Central Portal:
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;https://central.sonatype.com/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Go to &lt;strong&gt;Account → Generate User Token&lt;/strong&gt; and save:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAVEN_CENTRAL_USERNAME
MAVEN_CENTRAL_PASSWORD
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  2. Export your private GPG key:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gpg --armor --export-secret-keys YOUR_KEY_ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy the complete:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-----BEGIN PGP PRIVATE KEY BLOCK-----
...
-----END PGP PRIVATE KEY BLOCK-----
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  3. Add these GitHub repository secrets under:
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Settings → Secrets and variables → Actions&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAVEN_CENTRAL_USERNAME
MAVEN_CENTRAL_PASSWORD
SIGNING_KEY
SIGNING_PASSWORD
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MAVEN_CENTRAL_USERNAME — username from the Maven Central User Token&lt;/li&gt;
&lt;li&gt;MAVEN_CENTRAL_PASSWORD — password from the Maven Central User Token&lt;/li&gt;
&lt;li&gt;SIGNING_KEY — the complete ASCII-armored private GPG key exported with gpg --armor --export-secret-keys YOUR_KEY_ID&lt;/li&gt;
&lt;li&gt;SIGNING_PASSWORD — the passphrase you set when creating the GPG key&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  4. Pass them to Gradle in GitHub Actions:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Publish to Maven Central&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./gradlew publishAndReleaseToMavenCentral&lt;/span&gt;
  &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ORG_GRADLE_PROJECT_mavenCentralUsername&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.MAVEN_CENTRAL_USERNAME }}&lt;/span&gt;
    &lt;span class="na"&gt;ORG_GRADLE_PROJECT_mavenCentralPassword&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.MAVEN_CENTRAL_PASSWORD }}&lt;/span&gt;
    &lt;span class="na"&gt;ORG_GRADLE_PROJECT_signingInMemoryKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.SIGNING_KEY }}&lt;/span&gt;
    &lt;span class="na"&gt;ORG_GRADLE_PROJECT_signingInMemoryKeyPassword&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.SIGNING_PASSWORD }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this approach, &lt;code&gt;secring.gpg&lt;/code&gt; is not required in CI.&lt;/p&gt;

</description>
      <category>gradle</category>
      <category>gpg</category>
      <category>signing</category>
      <category>nexus</category>
    </item>
    <item>
      <title>Building a Game Tracker Application with Jetpack Compose and RAWG API</title>
      <dc:creator>Vladislav Kochetov</dc:creator>
      <pubDate>Sun, 30 Apr 2023 22:42:18 +0000</pubDate>
      <link>https://dev.to/vladleesi/building-a-game-tracker-application-with-jetpack-compose-and-igdb-api-1a5a</link>
      <guid>https://dev.to/vladleesi/building-a-game-tracker-application-with-jetpack-compose-and-igdb-api-1a5a</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;Beauty app with &lt;a href="https://rawg.io/apidocs" rel="noopener noreferrer"&gt;RAWG&lt;/a&gt; api for tracking games, game activity and communication with the community. This app will use &lt;a href="https://github.com/features/actions" rel="noopener noreferrer"&gt;Github Actions&lt;/a&gt; for automated testing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Category Submission:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Phone Friendly&lt;/strong&gt;: Projects built for Mobile (PWA readiness, iOS/Android)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Guidance: Developers can use Codespaces or Actions to create mobile applications that work on both iOS and Android devices, as well as set up automation workflows and CI/CD pipelines for their PWA ready apps.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  App Link
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/vladleesi/braindance" rel="noopener noreferrer"&gt;Braindance: Games Tracker&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshots
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Description
&lt;/h3&gt;

&lt;p&gt;This mobile app helps gamers keep track of their favorite games and access detailed information using the RAWG API. Features include a game library, game details, search, notifications, and social integration. Stay up-to-date on the latest games and join gaming communities with this user-friendly app.&lt;/p&gt;

&lt;h3&gt;
  
  
  Link to Source Code
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/vladleesi/braindance" rel="noopener noreferrer"&gt;braindance&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissive License
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/vladleesi/braindance/blob/master/LICENSE" rel="noopener noreferrer"&gt;Mozilla Public License Version 2.0&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Background (What made you decide to build this particular app? What inspired you?)
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Introduction
&lt;/h4&gt;

&lt;p&gt;As a die-hard gaming enthusiast, I have always wanted a better way to keep track of my gaming progress, from the games I've played to the ones I still need to conquer. So, I decided to take matters into my own hands and create an Android application that tracks games and integrates with the RAWG API to provide up-to-date information about the latest and greatest games out there.&lt;/p&gt;

&lt;p&gt;Participating in the GitHub Hackathon 2023 is incredibly important to me as an Android developer, as it provides a unique opportunity to showcase my skills, learn from others, and potentially win exciting prizes. Additionally, being a part of a community of developers and collaborating on innovative projects is an experience that I believe will benefit me both personally and professionally.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why Compose?
&lt;/h4&gt;

&lt;p&gt;As you may already know, &lt;a href="https://developer.android.com/jetpack/compose" rel="noopener noreferrer"&gt;Jetpack Compose&lt;/a&gt; is a game-changer for Android UI development. With its declarative approach and intuitive API, building beautiful and responsive user interfaces has never been easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?)
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Coming up with an app name
&lt;/h4&gt;

&lt;p&gt;I brainstormed name ideas for my games tracker app and chose "Braindance" because it combined "brain" and "dance," conveying the idea of improving cognitive abilities through gaming. The name was also available and reminded me of the virtual reality concept from Cyberpunk 2077, which I appreciated as a pop culture reference.&lt;/p&gt;

&lt;h4&gt;
  
  
  Choice of Design Kit
&lt;/h4&gt;

&lt;p&gt;I decided to stick with this color palette and Lato font.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpe4wlwh7pby9800jllnt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpe4wlwh7pby9800jllnt.png" alt="Screenshot of Design Kit from the mobile app" width="800" height="1723"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Practice with GitHub Actions
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Create a YAML file with the workflow definition in the .github/workflows directory of your repository.&lt;/li&gt;
&lt;li&gt;Define the event that triggers the workflow, in our case, a push to the master branch.&lt;/li&gt;
&lt;li&gt;Specify the jobs to be performed in the workflow, in our case, building and testing the Kotlin Gradle project.&lt;/li&gt;
&lt;li&gt;Use the ad-m/github-push-action Action to push the built artifact to the build branch upon successful build and test.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Using GitHub Actions to automate your workflow can save you time and improve the efficiency of your software development process.&lt;/p&gt;

&lt;p&gt;I decided to use a simple script: build, run unit tests and push code to the master branch.&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;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build, Test and Push&lt;/span&gt;

&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s"&gt;develop&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;

    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Checkout code&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v2&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Setup JDK 11&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-java@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;java-version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'11'&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Make gradlew executable&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chmod +x ./gradlew&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build with Gradle&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./gradlew build&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run unit tests&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./gradlew test&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run Android tests&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;reactivecircus/android-emulator-runner@v2&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;api-level&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;29&lt;/span&gt;
          &lt;span class="na"&gt;arch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;x86&lt;/span&gt;
          &lt;span class="na"&gt;profile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Nexus 6&lt;/span&gt;
          &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./gradlew connectedCheck --stacktrace&lt;/span&gt;

      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Push to Branch&lt;/span&gt;
        &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ success() }}&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ad-m/github-push-action@master&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;branch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;master&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This workflow triggers when there is a push to the master branch and performs the following steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checks out the code from the repository.&lt;/li&gt;
&lt;li&gt;Sets up JDK version 11.&lt;/li&gt;
&lt;li&gt;Builds the project with Gradle.&lt;/li&gt;
&lt;li&gt;Runs tests with Gradle.&lt;/li&gt;
&lt;li&gt;Pushes the built artifact to the build branch if the build and test process is successful.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Definition of bottom bar items
&lt;/h4&gt;

&lt;p&gt;I chose that sections:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Home&lt;/strong&gt;: The home section is often the default landing page for users when they open an app, and it usually contains the most frequently used features. By including search, feed, and notifications in the home section, the user can quickly access the latest updates, search for specific games, and stay up-to-date with their favorite games.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collections&lt;/strong&gt;: The collections section allows users to organize their games based on different criteria, such as games they have played, want to play, have rated or reviewed, or are currently following. By having quick access to these collections, users can easily keep track of their gaming habits and preferences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Community&lt;/strong&gt;: The community section is important for users who want to interact with other gamers, share their thoughts and opinions on games, and connect with friends who have similar interests. By including rating and friend features in the community section, users can quickly access these important social features and stay connected with their gaming community.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Profile&lt;/strong&gt;: The profile section provides users with a summary of their gaming activity, as well as links to other screens and app settings. This allows users to personalize their experience, customize their settings, and access other features that may not be available in the bottom bar.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0q3flikim1jf52yjo92b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0q3flikim1jf52yjo92b.png" alt=" " width="800" height="1723"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Resources/Info
&lt;/h3&gt;

&lt;p&gt;Lato font: &lt;a href="https://github.com/google/fonts/tree/main/ofl/lato" rel="noopener noreferrer"&gt;https://github.com/google/fonts/tree/main/ofl/lato&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The article will be updated..&lt;/p&gt;

</description>
      <category>githubhack23</category>
      <category>kotlin</category>
      <category>android</category>
      <category>games</category>
    </item>
  </channel>
</rss>
