A business-to-business ordering app may begin on Android tablets and later expand to iPhones and desktop computers. The product owner then asks whether its Android Jetpack Compose screens can be reused through Compose Multiplatform rather than rebuilt for every platform. This is a more specific architectural question than whether Kotlin code can be shared. Jetpack Compose is Google's Android UI toolkit; Compose Multiplatform is the JetBrains project that extends a closely related declarative UI model to other supported platforms. They share important concepts but are not two interchangeable installers for the same product. The decision should come from the app's supported targets, dependencies and user journeys.
1. Start with an actual B2B ordering workflow
Picture a wholesaler with an Android tablet app used by sales representatives. It displays customer-specific catalogues, negotiated prices, draft orders, stock availability and purchase approvals. The company now wants similar functions on iPhone and on desktop. Ask which screens are genuinely identical in purpose and which require different interaction patterns. A tablet grid may be excellent for rapid order entry, while a phone needs compressed navigation and a desktop needs keyboard access and richer data tables. A shared UI implementation does not erase these differences, and forcing every screen to look identical may make the product less usable.
Define the contract between interface and business services: product search, price retrieval, customer permissions, order draft persistence and final server-side validation. The backend must remain responsible for real prices and account entitlement. A shared screen should not become a second source of truth. Agree what happens when a representative edits an offline order, another employee changes the stock allocation and the connection resumes. These rules must be written and tested independently of the rendering approach.
2. What Jetpack Compose provides on Android
The Android Compose documentation explains composable functions, state and a declarative UI model integrated with Android. Android Studio supports previews, debugging, build and profiling workflows. An existing Compose app can use Android Jetpack libraries and platform-specific resources. This arrangement may be straightforward when the Android product meets all current business needs and no other platform is genuinely committed. Keeping the Android interface native avoids introducing additional target frameworks and cross-platform release constraints.
Nevertheless, a mature Android app can be difficult to share if its screens directly depend on Android Context, Android-only navigation, resource identifiers or third-party widgets. Developers should map these dependencies before promising a migration. Compose makes it possible to structure reusable composables and separate UI from data, but it does not automatically keep a screen free of Android-specific APIs. A company that may expand later can reduce migration cost today by controlling dependency boundaries even if it retains native Compose.
3. What Compose Multiplatform shares and what it does not
The official relationship guide explains that Compose Multiplatform extends Compose APIs across Android, iOS, desktop and web. It shares the Compose compiler and runtime concepts, while implementation and platform-specific facilities vary. On Android, Compose Multiplatform projects use Google Jetpack Compose artefacts. On other targets, JetBrains provides multiplatform counterparts and additional resources. That relationship supports reusing declarative UI concepts, but does not mean that every Android-specific library is available without adaptation.
The official matrix identifies differences: some platform-specific integrations such as Android Maps Compose are not available as common multiplatform UI APIs in the same form. A B2B ordering screen may rely on an Android barcode scanner or specialised map SDK. Such a requirement might need a platform-specific composable, adapter or separate screen. In procurement terms, 'shared Compose UI' must be translated into a measured percentage of code that actually compiles and behaves on all required targets, not assumed to mean an identical whole application.
4. Separate shared business logic from shared visual components
Kotlin Multiplatform can share selected non-UI logic without sharing visual screens. Compose Multiplatform goes further by potentially sharing UI. The two decisions should not be combined into a single yes-or-no question. A product may benefit from common pricing-format logic and API models while keeping platform-native layouts. Another may share most product cards and form components but use target-specific shell navigation and payment integration. Choose the boundary using actual code and acceptance tests.
Define layers with clear ownership: common domain rules, networking and persistence interfaces, shared visual components, and platform-specific capabilities. Avoid moving hardware permission handling into a shared composable merely because it is convenient. Keep the trusted server checks separate. Test code sharing on every actual target rather than just observing successful compilation. A layout can compile and still perform badly under large fonts or platform-specific window sizes.
5. Navigation, keyboard and adaptive design
The ordering journey must work for different input devices. On Android tablets, a customer may use touch, scanner keys and landscape layouts. On desktop, keyboard shortcuts, focus order and resizable windows are central. On iOS, navigation and back gestures should feel consistent with user expectations. Shared UI reduces duplicated implementation, but it increases the importance of adaptive components and accessibility testing across targets.
Write separate interaction acceptance criteria where the platforms differ. A shared product-search component might keep its underlying results model while adjusting input controls and layout by form factor. Test long customer names, large price tables, screen readers and unsupported network states. If a required native component cannot be implemented affordably as common code, document the platform-specific alternative rather than forcing a weak substitute. The user experience is not a sacrificial variable in a code-reuse target.
6. Device APIs and dependency portability
Third-party UI packages can be a practical obstacle. A mature Android app may use a chart library, camera scanner, file picker and lifecycle adapter designed only for Android. Before migrating, inventory each dependency and check whether it supports the proposed non-Android targets. The official library comparison is a useful starting point, but every third-party package needs its own compatibility evidence. A supplier promising 'one source tree' should disclose where platform-specific implementations remain.
Security and privacy also differ by operating system. Storage, camera permissions, identity services and background work must use supported platform mechanisms. Shared UI code is not permission to bypass Apple or Android restrictions. Specify how authentication tokens and offline order drafts are protected on each target. A good architecture makes those responsibilities visible through interfaces and tests rather than hiding them in visual components.
7. Build and release complexity is part of the cost
Shared UI can reduce repeated feature work but adds build targets, toolchain compatibility and platform release coordination. Android Studio remains relevant for the Android target, while iOS builds require applicable Apple tooling and signing. Desktop and web targets have their own deployment and test requirements. The team should document supported versions of Kotlin, Compose libraries, Gradle and platform SDKs. An update to common UI may require retesting several applications, which is sensible but not free.
Decide who can release and debug each platform. If the business has one Android engineer and no iOS experience, compiling for iOS does not establish a sustainable iOS support service. Run a handover exercise in which a second engineer changes a shared field, fixes one target-specific defect and produces signed or packaged builds. Record tool setup time and maintenance obstacles. A common codebase is useful only when the company can operate the resulting product.
8. Pilot with a representative ordering feature
Use a product-search-and-draft-order workflow as a controlled pilot. Reuse the same sample catalogue, account restrictions and mock API. Implement a native Compose version and a Compose Multiplatform version targeting at least Android plus one committed secondary platform. Compare actual common code, native adapters, functional outcomes, accessibility, performance and developer handover. Measure production builds on representative devices; do not compare one screen in a simulator against an entire deployed app.
Include failures: expired login, stock change after offline work, invalid quantities and a disconnected backend. Confirm the server remains authoritative. Record exactly which features were shared and where target-specific code was needed. No numeric code-saving or speed claim is made here because this article did not execute such a pilot. The purpose is to provide a reproducible evaluation method, not a vendor ranking.
9. Choose an architecture the company can support
Stay with Android-specific Jetpack Compose if the product is committed to Android, needs many Android-only libraries and no credible second-platform requirement exists. Evaluate Compose Multiplatform if the company genuinely needs multiple targets, has Kotlin skills and a substantial portion of the interface can be shared without compromising usability. A mixed approach may be strongest: share domain and selected UI components while retaining target-specific screens for devices and navigation.
For a 4KM software-house decision record, capture a platform matrix, dependency audit, build reproducibility, shared-code boundary, accessibility tests and ownership of each release. Explain residual risks rather than announcing that a common source tree has solved them. Responsible mobile architecture preserves business correctness and supports future changes, even when doing so means less reuse than the most enthusiastic marketing claim.
Primary sources: Google Jetpack Compose; JetBrains Compose relationship and feature matrix; Kotlin Multiplatform overview; Android Kotlin Multiplatform support.
