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

matej

04/10/2019, 3:23 PM
Makes sense. On the other hand, the very same official example uses iOS classes to obtain the device info, and then in the Android section they just return a string
Android
😄 which nicely circumvents having to deal with all of that but can lead to quite some confusion as you say. I guess we just have to live with the fact that for now a lot of things are in flux and documentation is lacking, but it is improving constantly.
m

matej

04/11/2019, 7:36 AM
@olonho Thanks, that's exactly what I was looking for and very much along the lines of what @Dennis L said. Applying the
com.android.library/application
plugin in the
build.gradle
file of the shared module and adding a dummy manifest file to
src/main/res
in there. I've checked pull requests now and [there is one](https://github.com/JetBrains/kotlin-web-site/pull/1277) that partially addresses this, but not fully enough. Do you mind if I make a pull request of my own for that page and include the required
AndroidManifest
and
com.android.library
, as well as changes to the Android source code so that it actually uses the Android system classes?
2 Views