darkmoon_uk
09/30/2024, 10:30 PMProximityReader
, FamilyControls
and DeviceActivityMonitor
have been the newer, Swift-only API's I've needed to wrap.Pablichjenkov
09/30/2024, 10:35 PMdarkmoon_uk
09/30/2024, 10:36 PMdarkmoon_uk
10/01/2024, 8:29 AMkpgalligan
10/01/2024, 1:38 PMI'd like to understand if/when we can expect direct Swift *Import*; which seems far more valuable than Export to me.Export isn't "direct". I think there's an expectation building around export that it'll be more appealing to iOS devs who like Swift, but the interop issues aren't primarily caused by ObjC. ObjC just happens to be the common evolutionary ancestor of Kotlin and Swift, or if you wanted to stretch the metaphor, imagine Java and ObjC had an immediate common ancestor (that common ancestor was actually conceptual. Both were created in the period of time when people thought OOP was language design end-game. I'm exaggerating for comedic effect, but I'm not far off). Swift export has the same problems. I think Swift export is necessary for the long term. I'm just a bit concerned, judging from various conversations, that the nuance of what it'll actually be is lost. That is, Swift export is a different form of interop to Kotlin, but it won't make Kotlin into Swift. Semantically speaking. On import, just commented in the other channel thread (touchlab, not swift export). Import is increasingly important. Advocating for it is important, as JB has to deal with a lot of signals to sort out priority. Getting a clear view of the relative importance of features can be very difficult. I'd suggest having a link, or list of links, to youtrack issues and point people at them to vote or comment. Slack has a short memory, or at least our memory of what's in slack is short, and not easily quantifiable.
Rene Gens
10/01/2024, 6:38 PMkpgalligan
10/01/2024, 6:40 PMHow do you export the API’s is there somewhere documentation for this?I'm not sure we're talking about the same thing, if this was in reply to my post. Which API?
Rene Gens
10/01/2024, 6:41 PMkpgalligan
10/01/2024, 6:48 PMRene Gens
10/01/2024, 6:50 PMsergey.bogolepov
10/03/2024, 10:47 AMWhy did KMP team focus on Export over ImportSwift export is easier to implement than import, and use-cases are more clear. Generic Swift import akin to existing Objective-C import is hard to achieve for several reasons: • Swift is already much more rich language than Kotlin. For example, consider recent changes around ownership semantics. • Unlike Objecitve-C, Swift will continue to evolve, introducing new features which are hard to map to Kotlin. • If we decide to focus on some subset of the language, what cases should we cover?
I'd like to understand if/when we can expect direct Swift *Import*;We will decide if we will work on Swift import not earlier Swift export is "done". We don't want to stretch team resources thin.
darkmoon_uk
10/04/2024, 7:18 AMPablichjenkov
10/04/2024, 6:35 PMkpgalligan
10/04/2024, 6:49 PM