简体   繁体   English

Kotlin Multiplatform - iOS + Android 之间的策略共享

[英]Kotlin Multiplatform - Strategy sharing between iOS + Android

How are engineers utilizing kotlin multiplatform between iOS + Android?工程师如何在 iOS + Android 之间使用 kotlin 多平台?

We are adding a build-phase inside of the iOS project to compile the iOS build, do people have this pre-compiled for the main product app / separate from the repo?我们在 iOS 项目中添加了一个构建阶段来编译 iOS 构建,人们是否为主要产品应用程序预编译了这个/与 repo 分开?

I think this varies a lot across teams, generally speaking I'd approach it like this:我认为这在不同团队之间差异很大,一般来说我会这样处理:

  1. If you want gradual experimentation and in a more isolated way, a repository for shared code with dedicated team, that provides a binary (now XCFramework is possible with Kotlin/Native) can be a good option.如果您想要逐步实验并以更孤立的方式,与专门团队共享代码的存储库,提供二进制文件(现在 XCFramework 可以与 Kotlin/Native 一起使用)可能是一个不错的选择。 The iOS team just pulls that in as an external lib. iOS 团队只是将其作为外部库引入。
  2. The problem with the above is exactly isolation (harder to debug and read this shared code), if your goal is to overcome working in silos and include the iOS team more in the discussion I think cloning this shared code repo and using https://github.com/touchlab/xcode-kotlin to read & debug it is a nice lightweight approach to have this part of your code more open to iOS devs上面的问题是完全隔离(更难调试和阅读此共享代码),如果您的目标是克服孤岛工作并在讨论中更多地包括 iOS 团队,我认为克隆此共享代码存储库并使用https:// github.com/touchlab/xcode-kotlin来阅读和调试这是一种很好的轻量级方法,可以让这部分代码对 iOS 开发人员更加开放
  3. If you want full contribution - iteration of read/write from iOS I'd go with a mono repo, full setup of the KMP ecosystem如果你想要完整的贡献 - 从 iOS 的读/写迭代,我会选择一个单一的 repo,KMP 生态系统的完整设置

Hopefully this covers your question at least in some perspective, let me know if you are interested in other aspects希望这至少在某些方面涵盖了您的问题,如果您对其他方面感兴趣,请告诉我

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Android 和 iOS 之间可以通过 Kotlin Multiplatform 共享什么? - What can be shared through Kotlin Multiplatform between Android and iOS? 如何在 Android/IOS Kotlin 多平台项目中设置 protobuf - How to setup protobuf in Android/IOS Kotlin Multiplatform project Kotlin 多平台保留可选项 iOS 框架 - Kotlin Multiplatform keep optionals iOS framework iOS 依赖项在 Kotlin 多平台项目中未解决 - iOS dependences not resolving in Kotlin MultiPlatform Project iOS cocoaods 框架未在 Kotlin 多平台项目中生成 - iOS cocoaods framework not generating in Kotlin Multiplatform project Kotlin 多平台移动 (KMM)。我想让我的 Android 应用程序使用 KMM 在 iOS 上运行吗? - Kotlin Multiplatform Mobile(KMM) .I want to make my Android application work on iOS using KMM? 是否可以在多平台 Z1B4419ABC43A758B418ZA0CA50 应用程序中使用用 Kotlin 编写的 Android 和 iOS 的业务代码? - Is it possible to use business code for Android and iOS written in Kotlin in a multiplatform Xamarin application? 是否可以使用 Ktor 和/或 Kotlin 多平台在 Rest API 和 Android 应用程序之间“共享”暴露的数据? - Is it possible to use Ktor and / or Kotlin multiplatform to "share" the exposed data between a Rest API and an Android Application? 多平台或 android 平台单独和桌面单独用于 Kotlin - multiplatform or android platform alone and desktop alone for Kotlin Kotlin Multiplatform ~ 在 Android 和桌面上添加图像 - Kotlin Multiplatform ~ Add images on Android and Desktop
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM