mbonnin
07/21/2019, 12:34 PMorg.jetbrains.kotlin.multiplatform
and https://github.com/chris-hatton/kotlin-multiplatform-template/blob/master/Code/Client/Android/mobile/build.gradle.kts#L17 has kotlin-android
mbonnin
07/21/2019, 12:35 PMDominaezzz
07/21/2019, 12:52 PMmbonnin
07/21/2019, 12:57 PMDominaezzz
07/21/2019, 12:58 PMDominaezzz
07/21/2019, 12:58 PMmbonnin
07/21/2019, 1:00 PMDominaezzz
07/21/2019, 1:02 PMDominaezzz
07/21/2019, 1:02 PMmbonnin
07/21/2019, 1:03 PMDominaezzz
07/21/2019, 1:03 PMDominaezzz
07/21/2019, 1:03 PMDominaezzz
07/21/2019, 1:04 PMDominaezzz
07/21/2019, 1:04 PMmbonnin
07/21/2019, 1:05 PMmbonnin
07/21/2019, 1:06 PMmbonnin
07/21/2019, 1:07 PMmbonnin
07/21/2019, 1:08 PMDominaezzz
07/21/2019, 1:11 PMjcentre()
to your repositories
block?mbonnin
07/21/2019, 1:12 PMmbonnin
07/21/2019, 1:13 PMSergioedcigreja
07/21/2019, 1:14 PMmbonnin
07/21/2019, 1:14 PMDominaezzz
07/21/2019, 1:18 PMmbonnin
07/21/2019, 1:18 PMmbonnin
07/21/2019, 1:19 PMDominaezzz
07/21/2019, 1:21 PMDominaezzz
07/21/2019, 1:22 PMDominaezzz
07/21/2019, 1:23 PMmbonnin
07/21/2019, 1:24 PMDominaezzz
07/21/2019, 1:24 PMmbonnin
07/21/2019, 1:25 PMmbonnin
07/21/2019, 1:25 PMmbonnin
07/21/2019, 1:26 PMDominaezzz
07/21/2019, 1:26 PMmbonnin
07/21/2019, 1:26 PMmbonnin
07/21/2019, 1:27 PMlouiscad
07/21/2019, 1:27 PMDominaezzz
07/21/2019, 1:27 PMmbonnin
07/21/2019, 1:28 PMclient-common
is all red now (it used to link to the decompiled class file)mbonnin
07/21/2019, 1:29 PMmbonnin
07/21/2019, 1:29 PMlouiscad
07/21/2019, 1:33 PMandroid
or a jvm
target, or from a non Kotlin multiplatform module (and if so, android or jvm?)mbonnin
07/21/2019, 1:35 PMcommonMain
sourceSet that is included as a jvm() artifact (does that make sense ?)mbonnin
07/21/2019, 1:36 PMFirstPresenterContract
usages for an example are all red until I build and gradle sync. Then usages are not red anymore but Ctrl-click opens the .jar and not the source file.
https://github.com/chris-hatton/kotlin-multiplatform-template/blob/121ef4fa3129d506245e4f5ca9b0ceb29e02f773/Code/Client/Common/src/commonMain/kotlin/org/chrishatton/example/ui/contract/FirstPresenterContract.kt#L4-L3Dominaezzz
07/21/2019, 1:40 PMclient-common
itself red?mbonnin
07/21/2019, 1:42 PMmbonnin
07/21/2019, 1:43 PMmbonnin
07/21/2019, 1:43 PMlouiscad
07/21/2019, 1:46 PMlouiscad
07/21/2019, 1:47 PMmbonnin
07/21/2019, 1:47 PMlouiscad
07/21/2019, 1:48 PMmbonnin
07/21/2019, 1:49 PMlouiscad
07/21/2019, 1:56 PMandroid
targets for now because of these kind of issues. I planned to try 1.3.50 EAPs on a personal project after I make a release with 1.3.40 soon, so I can see what improved and open new issues for the remaining issues I encounter.
I'm also rounding the corners of a project template that bundles modules templates to generate modularized bug reproducers by reproducing the modules w/ targets and dependency graph, and generate other projects more quickly.
I didn't encounter the behavior you describe, so I still strongly encourage you to report it. If you want me to help generate a reproducing project, feel free to reach me here or by DM, my modules templates + (Kotlin) script already work well, I finished settings.gradle.kts
auto-editing last nigh.mbonnin
07/21/2019, 1:59 PMmbonnin
07/21/2019, 2:00 PMmbonnin
07/21/2019, 2:20 PMlouiscad
07/21/2019, 2:23 PMmbonnin
07/22/2019, 10:06 PMdarkmoon_uk
07/22/2019, 10:19 PMlouiscad
07/22/2019, 10:29 PMstdlib-jdk7
on Android. Maybe even stdlib-jdk8
since D8 in AGP 3.4+? Can you confirm @jw Also, do you know if it automatically raises the Kotlin jvmTarget to 8, and if you need to set compileOptions for AGP for it to work properly?jw
07/22/2019, 10:39 PMmbonnin
07/22/2019, 10:52 PMstdlib-jdk8
instead of the plain stdlib
?jw
07/23/2019, 12:44 AMdarkmoon_uk
07/23/2019, 8:51 AMkotlin-android
plugin instead of the kotlin-multiplatform
plugin at the top-level; this was a considered choice. Considerations being:
• Firstly, I would expect either kotlin-android
or kotlin-multiplatform
(with Android target) to ultimately work.
• While there seems to be a perception that the multi-platform plugin is 'recommended'; I wasn't able to find any suggestion that the platform-specific plugins are deprecated in any way - they still have their place and are valid for use.
• Creating an all-in-one multiplatform client project for the clients I wanted to support is currently problematic for the multiplatform
plugin. Specifically: to include a JavaFX Desktop client would mean the android
and java
plugins both need to be instated, but they are currently mutually exclusive in the same Gradle file.
• Anyway, the amount of configuration I have (or may want to expand to) would become too cluttered and disorganised in a single file. I feel that multiplatform
driven projects are better suited to libraries and do not cater well to top-level application projects where there is a lot of extra configuration going on.
• In summary: the Android client project in my template should be only ever target the Android platform - so kotlin-android
is the best fit
• Finally: My supporting library projects are kotlin-multiplatform
- as the best fit for themmbonnin
07/23/2019, 8:54 AMdarkmoon_uk
08/12/2019, 12:41 AMdarkmoon_uk
08/12/2019, 1:10 AM