Hi, I am developing my first MPP project. I am won...
# multiplatform
k
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
Aren’t things like
UIKit
installed on Mac with XCode? I don’t think you can see that from any other platform
k
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
This is not possible, Mac is only available host machine type for all Apple targets.
k
even if for some reason the IDE supported it, you wouldn't be able to compile, so what would be the point?
k
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.