<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexandre Guzu on Medium]]></title>
        <description><![CDATA[Stories by Alexandre Guzu on Medium]]></description>
        <link>https://medium.com/@alexandre.guzu_85738?source=rss-57886a6829e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TkPzsfigHH1DSkcv</url>
            <title>Stories by Alexandre Guzu on Medium</title>
            <link>https://medium.com/@alexandre.guzu_85738?source=rss-57886a6829e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:27:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexandre.guzu_85738/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Breaking Down Silos with Kotlin Multiplatform: The Cheerz Journey — part 2]]></title>
            <link>https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-part-2-1a66cf13142e?source=rss-57886a6829e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a66cf13142e</guid>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Alexandre Guzu]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 17:38:14 GMT</pubDate>
            <atom:updated>2026-03-27T17:38:14.673Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part 2 of our series about our KMP integration and how it helped collaboration. You can find the first part <a href="https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-e681fa65b2cd">here</a>.</p><h3>Decisions, Decisions</h3><p>At this point in the story, and as we established in <a href="https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-e681fa65b2cd">part 1</a>, we are now convinced that KMP fits our requirements. But before writing multi-platform code, we had to answer some fundamental questions about our project structure and our migration strategy.</p><h4>Monorepo or Submodules?</h4><p>We considered several approaches when adopting KMP:</p><p><strong>Option #1 : Three separate repositories</strong> (KMP / Android / iOS) ❌</p><p>This approach required three pull requests (PRs) for each multiplatform adjustment, a considerable lead time for changes. The KMP PR needed to be merged before triggering the final round of CI jobs for the iOS PR. For those familiar with <a href="https://www.atlassian.com/devops/frameworks/dora-metrics">DORA metrics</a>, this sequential process would directly impact them negatively. We decided to dismiss this approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HOoPGmtV3HOIGRVqqdLK0Q.png" /><figcaption><strong>Three separate repositories</strong> (KMP / Android / iOS)</figcaption></figure><p><strong>Option #2 :Android+KMP repo with iOS separate </strong>❌</p><p>This approach would still require two separate PRs, preventing CI jobs from running in parallel. One advantage is the local inclusion and refreshing of the KMP Swift Package during iOS builds, while Android would use Gradle dependencies. For our web implementation, we would export the compiled KMP module to a JFrog binary artifact repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFmg3p6fOTpR0GCuPP1pYw.png" /><figcaption><strong>Android+KMP repo with iOS separate</strong></figcaption></figure><p>This would have worked pretty well, but we decided to go even further.</p><p><strong>Option #3 :Monorepo </strong>✅</p><p>This approach is based on creating a shared folder containing multiple KMP modules exported as an “umbrella” fat framework for iOS. We would dedicate ios and android folders for platform-specific code, and a unified Gradle build for both Android and KMP. But most importantly: this structure effectively broke down silos between team members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7G9U0Nzoe4v9Im8wxGORQ.png" /><figcaption><strong>Monorepo</strong> — Our ultimate choice</figcaption></figure><p>The monorepo approach eliminated the concept of a dedicated “KMP team.” Instead, every team member can edit, test, and experiment with shared code. This created a shared responsibility model that perfectly aligned with our goal of unified development practices.</p><p>This approach wasn’t without its challenges.</p><ul><li>We had concerns about potential increases in PR volume and merge conflicts. Fortunately, our team of 10–15 developers did not experience major issues.</li><li>We also needed to standardize our git workflow across teams and make several adjustments to our CI pipelines for builds and releases. All things considered, that was a small price to pay in our team unification effort.</li><li>Another challenge is that a breaking change in KMP directly impacts those who checked it out and they cannot use a previous KMP version, even temporarily. In practice, these issues are rare, quickly noticed and fixed by the team.</li><li>Finally, using an Umbrella framework on iOS breaks modularization. Any KMP object can be used anywhere we import Umbrella. That&#39;s one reason we are actively waiting for Swift export from Jetbrains!</li></ul><p>Despite these initial worries, everything worked out smoothly in practice, and we’re now quite happy with our monorepo approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPBjApoJmioILw5TzXtS0A.png" /><figcaption>Can you spot when we merged our mobile repositories ?</figcaption></figure><h3>What’s the Strategy?</h3><blockquote>The takeaway: <strong>take your time</strong> and focus on <strong>shipping iteratively</strong> and quickly. You want to encounter your first roadblocks when implementing small, manageable modules rather than deep into a complex migration.</blockquote><p>First, we identified several <strong>low-impact modules</strong> that would make perfect candidates for our initial implementation :</p><ul><li>Tracking stack</li><li>Logging stack</li><li>API stack for isolated parts of the apps (specifically our settings API)</li></ul><p>When these integrations went smoothly, we felt confident to tackle a key part of our strategy: <strong>sharing interfaces</strong> and their associated data structures. Our second step was to define clear interfaces, as they are the critical boundaries between architecture layers. We began sharing :</p><ul><li>Our <strong>customization interfaces</strong> used for opening, deleting, and modifying product customizations</li><li>Our <strong>upload engine interface</strong> used for managing customer photo uploads to our servers</li><li>Our <strong>back-for-front catalog models</strong></li></ul><p>This meant a bit of prep work by aligning and sharing our business models as well.</p><h3>Challenges</h3><h4>Solving Our iOS Integration Challenge</h4><blockquote>The takeaway: until swift-export gets out of the alpha/beta stage, handling modularization via frameworks on iOS means going through a &quot;fat KMP framework&quot; phase</blockquote><p>On iOS, we have a multi-module architecture (called “frameworks” in iOS terminology). The standard approach for integrating KMP into iOS is using the embedAndSignAppleFrameworkForXcode Gradle task, which generates a signed binary that you then link to your main iOS framework.</p><p>This method worked perfectly during development, but when we attempted to publish to the App Store, we were rejected due to a signing issue. Fortunately, we discovered a <a href="https://stackoverflow.com/questions/74324603/ios-framework-with-embedded-kotlin-multiplatform-framework-fails-appstore-upload/74324604#74324604">Stack Overflow answer</a> — with just a single upvote at the time — that saved our first KMP release.</p><p>The solution was to generate a “fat framework” containing all architecture binaries and all KMP modules bundled together. The key difference is that a fat framework is <em>linked</em> rather than <em>signed</em>, using the linkFrameworkForXcode Gradle task instead. Since iOS prohibits importing signed frameworks into sub-frameworks, this technique allowed us to successfully import our KMP Umbrella framework into our various iOS sub-modules without triggering signing violations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVXqN1ng85uMyo-pYhpipg.png" /><figcaption>&quot;Fat&quot; framework generation for iOS</figcaption></figure><h4>Handling KMP Build for iOS</h4><blockquote>The takeaway: be careful of KMP full compilation on every CI commit if you&#39;re using multi-framework modularization on iOS.</blockquote><p>We encountered an unexpected challenge that affected both our build times and CI costs. For reasons we couldn’t immediately identify, our KMP Gradle task was triggering a full recompilation on every CI commit, despite having the Gradle build cache properly configured.</p><p>After watching our CI costs steadily climb while investigating the issue, we decided to implement our own custom diff system. We modified our KMP Build Phase script to manually track changes between KMP input and output files, essentially creating our own caching mechanism to determine when recompilation was truly necessary.</p><p>While we’re still investigating the root cause, we suspect our somewhat unconventional project structure might be confusing Gradle’s built-in caching system. Our custom solution isn’t ideal, but it has significantly reduced unnecessary builds and helped keep our CI costs under control while we search for a more permanent fix.</p><p>Touchlab wrote a <a href="https://touchlab.co/optimizing-gradle-builds-in-Multi-module-projects">great article</a> about gradle build optimizations for KMP.</p><h4>Database</h4><p>Another challenge was our iOS database implementation with CoreData. Our iOS developers often struggled with edge cases and migrations, which proved to be a recurring pain point. This is why we decided to share a database implementation using <strong>SQLDelight</strong> for handling local Customization object storage, a change our iOS developers found to be a substantial improvement. With SQLDelight, we gained better control over our database at the reasonable cost of writing some SQL queries ourselves.</p><h3>Tips and tricks</h3><h4>Kotlin-Swift Interoperability</h4><p>At the time of writing, Kotlin doesn’t directly interoperate with Swift but rather communicates through an Objective-C bridge. This indirect approach means some Kotlin features work perfectly (most basic types, classes and interfaces), others work partially (generics, sealed classes), and some don’t work at all (inline value types).</p><p>One particular pain point we encountered was with Kotlin enumerations and sealed classes. Since a Kotlin enum class gets translated into Objective-C interfaces, we had to switch on class <em>types</em> instead of enum values, forcing us to add default cases in our switch statements.</p><p>Thankfully, <a href="https://skie.touchlab.co/">SKIE</a> (Swift-friendly API Generator for Kotlin Multiplatform) from Touchlab helps solve these lost-in-translation issues.</p><p>Here, SKIE’s onEnum(…) syntax transforms a sealed class into a proper Swift enum:</p><pre>// Kotlin code<br>sealed class UIState {<br>    data object Loading : UIState()<br>    data class Filled(val title: String) : UIState()<br>}</pre><pre>// Swift without SKIE<br>switch uiState {<br>  case _ as UIState.Loading:<br>    break<br>  case let filledState as UIState.Filled:<br>    break<br>  default:<br>    fatalError()<br>}</pre><pre>// Swift with SKIE<br>switch onEnum(uiState) {<br>  case .Loading:<br>    break<br>  case .Filled(let filledState):<br>    break<br>}</pre><p>Another major advantage SKIE provides is converting Kotlin’s suspend functions into Swift’s native async functions. This eliminates the need to wrap every coroutine call with Task { @MainActor in } to handle “Calling suspend functions from Swift is currently supported only on main thread” errors.</p><h4>Debugging</h4><p>Wouldn’t it be great to debug your KMP code directly from Xcode? While this isn’t possible out-of-the-box, Touchlab’s <a href="https://github.com/touchlab/xcode-kotlin">xcode-kotlin plugin</a> enables exactly that. We don’t use this feature frequently, but when we need to trace an issue across platform boundaries, we’re extremely grateful it exists.</p><h3>What are we expecting for the future of KMP ?</h3><p>All in all, using KMP to share the business logic between iOS and Android was a very positive move for us. But we’re also very excited about what&#39;s coming next in the <a href="https://kotlinlang.org/docs/roadmap.html#kotlin-roadmap-by-subsystem">Kotlin roadmap</a>.</p><p>In particular, we&#39;re watching with attention the advances of swift-export which bypasses the ObjC bridge entirely and generates Swift declarations directly from the Kotlin code. That means :</p><ul><li><strong>true nullability</strong> from primitives (no more KotlinInt to preserve nullability)</li><li>preserving <strong>modularity</strong> by splitting our Umbrella framework into clean module imports</li><li>idiomatic Swift APIs (no more FileNameKt classes)</li></ul><p>That would also mean removing our dependency on a third-party tool, SKIE, even though we&#39;re grateful of its existence so far!</p><h3>What’s next for us ?</h3><p>Cheerz is about personalisation, that’s our core value proposition. It means a lot of specific and sometimes complex business logics. We handle sophisticated user customizations with numerous actions : adding, moving, and removing photos; swapping page layouts with or without images; adding pages ; all while supporting a diverse range of products including albums, prints, calendars, and more.</p><p>From a technical perspective, we’ve developed complex “user customization” business models that represent our customers’ creations. We’re currently in the process of migrating these models to KMP iteratively. Once this is done, we’ll move on to migrating our customization “engine” — the component that encapsulates all the modifiers that transform these business models from UI actions.</p><p>This migration represents one our most significant challenge yet on mobile, as we’re essentially transferring the heart of our application into shared code. The complexity of our product customization system makes this particularly demanding, but also offers the greatest potential benefit from code sharing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a66cf13142e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-part-2-1a66cf13142e">Breaking Down Silos with Kotlin Multiplatform: The Cheerz Journey — part 2</a> was originally published in <a href="https://medium.com/cheerz-engineering">Cheerz Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Down Silos with Kotlin Multiplatform: The Cheerz Journey — part 1]]></title>
            <link>https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-e681fa65b2cd?source=rss-57886a6829e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e681fa65b2cd</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Alexandre Guzu]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 09:52:55 GMT</pubDate>
            <atom:updated>2026-06-01T15:32:49.428Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How we used Kotlin Multiplatform to improve collaboration</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMHNLNjgd8naHCGSxpJtKg.png" /></figure><p>At Cheerz, we specialize in building the best user experience to create photo products accross our website, iOS, and Android apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4VWg6p1159u3c04QAbhUQ.png" /></figure><p>A couple of years ago, we faced a set of challenges that many software teams can relate to. Our iOS and Android teams were siloed to the point that features didn’t ship at the same speed, bugs were specific to one platform, and communication with the product team was negatively impacted.</p><p>At the time, we were convinced that <strong>breaking barriers between platform teams</strong> and standardizing development practices were essential to improve productivity at Cheerz. This transformation truly happened when we decided to adopt Kotlin MultiPlatform (KMP), which we’ve successfully integrated between our iOS and Android platforms.</p><p>In this series of article, we’ll explore how KMP has helped our team overcome these challenges, the obstacles we encountered during implementation, and our vision for the future of cross-platform development at Cheerz. Let&#39;s first dive into the organisational aspect of bringing KMP to our organization.</p><p><em>Note: This article is not a technical guide nor a tutorial for implementing KMP. If you’re unfamiliar with this technology and want to explore it further, the </em><a href="https://kotlinlang.org/docs/multiplatform/kmp-overview.html"><em>official documentation</em></a><em> is an excellent starting point</em>.</p><h3>Where we started</h3><h4>The Problem</h4><p>Before embracing our cross-platform journey, we faced several challenges that will likely sound familiar to many mobile development teams.</p><p>First of all, our mobile platform teams had developed strong opinions about development approaches and technologies. Should we stick with Google’s recommended MVVM architecture or explore the latest Redux-like framework everyone’s talking about? While this kind of discussion reflects how deeply mobile developers invest in their platform’s ecosystem — an attachment that is both important and productive — it can also create friction when trying to align on unified solutions across platforms.</p><p>Moreover, communication between team members was fragmented and inconsistent, as iOS and Android developers often worked in silos, rarely collaborating on technical design and instead developing solutions independently. This mindset extended to our back-end approach as well, ultimately influencing the creation of platform-specific APIs.</p><p>As a result, our mobile platforms had evolved along completely separate architectural paths. Android implemented a standard MVVM architecture, while iOS used a hybrid approach combining a Redux-like pattern in some areas with a MVVM-Coordinator pattern in others. In some cases, this resulted in entirely different models for the same business concepts.</p><h4>The Consequences</h4><p>These differences created several significant problems for our organization. We observed substantial differences in development velocity between platforms when implementing new features. The gaps grew so large that developers rarely worked on the same features simultaneously. In one extreme case, a UI overhaul was delayed by a couple of years on one platform compared to the other.</p><p>From a technical perspective, we gradually recognized that these differences represented a form of technical debt that would eventually have to be tackled. Perhaps most concerning, our product teams were steadily losing trust in the engineering team’s ability to deliver consistent experiences across platforms.</p><h3>The goal, the solutions, and why KMP was one of them</h3><p>From these observations, it became clear that different teams working in isolation with different approaches would inevitably produced different results. We needed a comprehensive strategy to align our development practices across platforms. Our solution involved several approaches:</p><h4>Technical practices and mindset</h4><p>First, we had to make sure we were technically aligned between our 2 mobile apps :</p><ul><li>We standardized <strong>MVVM</strong> across platforms and deleted our Redux-like implementation on iOS</li><li>Aligning our <strong>naming standards, data structures, and interfaces</strong> during major refactorings and also feature development</li><li>Pushed for <strong>cross-platform pull requests (PR) reviews</strong></li><li>Thinking as “<strong>software engineers</strong>” rather than platform-specific developers</li><li>Always considering implementing a generic solution instead of a platform-specific approach</li></ul><h4>Cross-platform organisation</h4><p>Communication also became the cornerstone of our transformation :</p><ul><li>Merging the iOS and Android teams’ weekly meetings</li><li>Restructured our mobile team organization by placing all mobile developers under a single manager, further consolidating our shared technical vision and objectives</li><li>Recruiting team members who embraced this collaborative mindset. At the same time, we made it a priority to challenge and engage those who were hesitant, ensuring that no one was left behind in the transition.</li></ul><h4>Facing Reality: The Persistence of Divergence</h4><p>This mindset shift represented a crucial and positive step forward. However, despite our best efforts, we observed that after several iterations, changes, and feature additions, our<strong> interfaces and structures would begin to diverge again</strong>. Moreover, the separation between layers wasn’t maintaining itself as cleanly as we’d hoped.</p><p>This observation was contextual to our company. While this approach <em>could</em> have been sufficient for many teams, at Cheerz we chose to push further toward unification due to the complexity of our app, particularly with its extensive business logic situated on the frontend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*DrbTYrDvDFCKVoTvzxdjRg.png" /><figcaption>Kotlin Multiplatform</figcaption></figure><h4>Kotlin Multiplatform enters the scene</h4><p>At this point of the story, we’re at the end of 2023 and Kotlin Multiplatform had been on the back of the mind of several developers on the Android team. Once we decided we had the capacity to share low-impact components using KMP, the Android team developed proof-of-concept implementations and presented them to the entire Tech team at Cheerz. In fact, all our previous efforts were setting the stage for this transition.</p><p>After some discussions and feedbacks, the response was mostly positive, with several iOS engineers eager to begin integrating KMP.</p><h3>The Advantages of KMP for Cheerz</h3><p>We identified several compelling advantages of adopting Kotlin Multiplatform :</p><ul><li>KMP crystallized our commitment to converging code and practices by providing a <strong>concrete, technical sharing mechanism</strong></li><li>It naturally enforced <strong>good separation of concerns</strong>, reinforcing our existing commitment to Clean Architecture and Clean Code patterns</li><li>Compared to more prescriptive solutions like Flutter or React Native, KMP offered remarkable <strong>flexibility</strong> : we could share precisely what made sense for our codebase and nothing more</li><li>KMP leveraged the <strong>power of Kotlin</strong>, a language our Android developers knew well and that our iOS developers found approachable</li><li>Permit to keep the <strong>native UI</strong> while <strong>sharing the logic</strong></li></ul><h3>Did It Keep Its Promises ?</h3><p>Over the past few months, KMP reduced the technical debt in our iOS codebase while standardizing the mobile code to prevent it from becoming stagnant. We&#39;re happy to report that all our logging, tracking, catalog business models, API stack, and product customization business models (among other things) are all shared between iOS and Android thanks to KMP. We&#39;re now focusing on sharing customization business logic, which is looking great so far.</p><p>This effort has fostered greater collaboration between the Android and iOS teams, enabling both to upskill on each other’s platforms. As a result, development cycles have become shorter, allowing features to be developed and released simultaneously. This progress has also restored confidence among Product Managers, ensuring we can consistently deliver value to our users.</p><p>In conclusion, we can happily say that we’re very satisfied with what KMP brought on an organisational level. By cementing our codebase into a single source of truth, it brought our original vision of cross-team collaboration to life.</p><p>In our <a href="https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-part-2-1a66cf13142e?source=collection_home_page----6b19f892293e-----0-----------------------------------">second article</a>, we will dive into the technical aspect of our KMP migration and in particular the decisions we had to make in order to promote our collaboration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e681fa65b2cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cheerz-engineering/breaking-down-silos-with-kotlin-multiplatform-the-cheerz-journey-e681fa65b2cd">Breaking Down Silos with Kotlin Multiplatform: The Cheerz Journey — part 1</a> was originally published in <a href="https://medium.com/cheerz-engineering">Cheerz Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>