<?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: Manuel</title>
    <description>The latest articles on DEV Community by Manuel (@noloman).</description>
    <link>https://dev.to/noloman</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%2F11222%2F183264.jpeg</url>
      <title>DEV Community: Manuel</title>
      <link>https://dev.to/noloman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noloman"/>
    <language>en</language>
    <item>
      <title>What I put in shared Kotlin code, and what I kept native, in a remote jobs app</title>
      <dc:creator>Manuel</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:25:09 +0000</pubDate>
      <link>https://dev.to/noloman/what-i-put-in-shared-kotlin-code-and-what-i-kept-native-in-a-remote-jobs-app-4b9a</link>
      <guid>https://dev.to/noloman/what-i-put-in-shared-kotlin-code-and-what-i-kept-native-in-a-remote-jobs-app-4b9a</guid>
      <description>&lt;p&gt;I started AnywhereRoles back in 2020 as an iPhone app, just for myself. Now it's on iPhone, Android and the web, and the two phone apps share one Kotlin Multiplatform module. I want to tell you where I put the line between shared and native code, because I got it wrong a few times before it felt right.&lt;/p&gt;

&lt;p&gt;My rule is simple. If both apps must give the same answer, that answer is computed once, in shared code. If it's about how the app feels, it stays native.&lt;/p&gt;

&lt;p&gt;Here is where it paid off. Each job card shows something like "Posted 2 d ago, checked 3 h ago". For a long time Android and iPhone didn't agree on it, because each had its own little rules. Now one shared function decides what to show, and each platform only turns the ages into words with its own date formatter. Same with the small flag next to a job's location. One function reads the free text ("Berlin or Lisbon, EU only"), finds the countries, and picks a flag, a globe or nothing.&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%2Fa78ttyp56wjku0k1p6p4.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%2Fa78ttyp56wjku0k1p6p4.png" alt="The jobs list on Android and on iPhone, side by side." width="800" height="746"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The paywall table is the same story: it's just data in the shared module, so if I add a row, both apps get it.&lt;/p&gt;

&lt;p&gt;Everything else in the shared module is the usual stuff: database, network, repositories, use cases, and the state each screen shows. Koin for injection. Android draws that state with Compose, the iPhone app with SwiftUI through a few small bridge classes.&lt;/p&gt;

&lt;p&gt;I never tried to share the UI. Navigation, sheets, share dialogs, the large-screen layout on Android, all native. Calendar events are a good small example. Android hands the event to the system calendar. On iPhone I use the write-only calendar permission, so the app can never read anyone's calendar. The shared code only builds the title, length and reminder, so both apps make the same event.&lt;/p&gt;

&lt;p&gt;Now the parts that hurt.&lt;/p&gt;

&lt;p&gt;My CI is Linux only. It checks that the iOS Kotlin code compiles, but it does not run the shared tests for iOS. So a change can pass everything and still break on a Mac. I learned that the annoying way, twice. Now I run the iOS test task on my own Mac for every change in the shared module.&lt;/p&gt;

&lt;p&gt;Kotlin/Native is not the JVM, and it doesn't always tell you. A test name with a comma inside the backticks works fine on the JVM and gets rejected by Kotlin/Native. And a regex class that mixes a Unicode letter class with other characters just quietly ignored part of it on iOS. I wrote a small script that looks for both, and it runs in the build.&lt;/p&gt;

&lt;p&gt;I also don't build Swift in CI at all. A hosted Mac runner costs way more than a Linux one and one expensive month was enough for me. So I build the iPhone app on my machine before each release. The downside: if I add a Swift file and forget to add it to the Xcode project, nothing tells me until the upload fails. I live with that for now.&lt;/p&gt;

&lt;p&gt;If I started again, I'd write down the "both apps must agree" list on day one. I found most of mine by fixing bugs where the apps disagreed. And I'd set up the Mac checks much earlier.&lt;/p&gt;

&lt;p&gt;The app is free to browse if you want to see it: &lt;a href="https://anywhereroles.com/?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=nov_2026" rel="noopener noreferrer"&gt;https://anywhereroles.com/?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=nov_2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By the way, I'm available for hire as an Android or Kotlin Multiplatform developer. And if you do things differently, I'd like to hear how, in the comments.&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>android</category>
      <category>ios</category>
      <category>kmp</category>
    </item>
    <item>
      <title>Hi, I'm Manuel Lorenzo</title>
      <dc:creator>Manuel</dc:creator>
      <pubDate>Tue, 14 Mar 2017 21:08:31 +0000</pubDate>
      <link>https://dev.to/noloman/hi-im-manuel-lorenzo</link>
      <guid>https://dev.to/noloman/hi-im-manuel-lorenzo</guid>
      <description>&lt;p&gt;I have been coding for about 5 years.&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/noloman" rel="noopener noreferrer"&gt;noloman&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I live in Amsterdam.&lt;/p&gt;

&lt;p&gt;I work for Mobgen, part of Accenture Digital.&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: Java, Kotlin and Scala.&lt;/p&gt;

&lt;p&gt;I am currently learning more about Kotlin and Scala.&lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
