https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Klara Erlebachova

09/20/2019, 9:26 AM
Hi, I am developing my first MPP project. I am wondering if it is possible to make Android studio on Linux understand platform specific imports e.g.
import platform.UIKit.UIDevice
. On Mac it's working just fine but on Linux I am getting
Unresolved reference: platform
. It would be helpful to have syntax highlighting working also on Linux which is my primary platform. Any suggestions?
r

ribesg

09/20/2019, 9:44 AM
Aren’t things like
UIKit
installed on Mac with XCode? I don’t think you can see that from any other platform
k

Klara Erlebachova

09/20/2019, 11:03 AM
I was hoping it would be possible to somehow import some equivalent of header files so IDE can understand it. Even without possibility to run the code, it would make doing small changes in code more productive.
a

Artyom Degtyarev [JB]

09/20/2019, 12:33 PM
This is not possible, Mac is only available host machine type for all Apple targets.
k

Kris Wong

09/20/2019, 1:07 PM
even if for some reason the IDE supported it, you wouldn't be able to compile, so what would be the point?
k

Klara Erlebachova

09/20/2019, 1:52 PM
Two use-cases: 1. during code review I sometimes want to check the code inside IDE (e.g. when I am not yet familiar with some classes/library that the code is using). It's usually quicker for me then pulling up the documentation. 2. When working on business logic I don't need to run the code that often. And I still can run tests in CI. But I guess I have to get myself more productive on Mac to get this project done. Thanks for your answers.