markusa
07/08/2019, 7:18 PMNikky
07/09/2019, 9:32 AMDefaultKotlinDependencyHandler
seems to not handle things that the nromal dependencies block ca.. or maybe its just the kts bit thats broken ?kpgalligan
07/09/2019, 2:16 PMaddamsson
07/09/2019, 11:08 PMaltavir
07/10/2019, 8:09 AMMarc Knaup
07/10/2019, 9:29 PM.module
?
jvm {
attributes {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 7)
}
}
It does work in another multiplatform library which has multiple JVM targets.
Update: Got it.
It happens if I dare to call subprojects { apply<MavenPublishPlugin>() }
. Is that a bug in MP or Gradle?Alejandro Rios
07/11/2019, 1:26 AMKotlin Native-Multiplatform
in Medium articles and the page of raywenderlich, can you share please more resources to check?? ThanksCyrille QUÉMIN
07/11/2019, 11:12 AMSergioedcigreja
07/11/2019, 12:58 PMalex.hart
07/12/2019, 1:10 PMmarkusa
07/13/2019, 9:05 AMsourceSets {
main {
kotlin {
srcDir 'src/main/kotlin'
if(isAndroid) {
exclude '**/*Backtick*'
}
}
}
now I have
kotlin {
jvm()
jvm('android')
jvmMain {...}
jvmTest {...}
androidMain {
kotlin.srcDirs += jvmMain.kotlin.srcDirs // exclude **/*Backtick*?
}
androidTest {
kotlin.srcDirs += jvmTest.kotlin.srcDirs // exclude **/*Backtick*?
}
}
markusa
07/13/2019, 9:35 AMaltavir
07/13/2019, 3:10 PMspierce7
07/14/2019, 7:02 PMx.0
at the end when there is no decimal data.JoakimForslund
07/15/2019, 7:53 AMApplication.kt
file placed inside my package called `box`:
tasks.create("run", JavaExec::class) {
dependsOn("jvmMainClasses", "jvmJar")
main = "box.ApplicationKt"
classpath = files(
kotlin.targets["jvm"].compilations["main"].output.allOutputs.files,
configurations["jvmRuntimeClasspath"]
)
args = listOf()
}
However, this results in : Error: Could not find or load main class box.ApplicationKt
Anyone have any pointers to run a jvm target?addamsson
07/15/2019, 1:24 PMcommon
module (commonMain
) and I have my tests in commonTest
. When I run my tests with Coverage in IDEA I get No coverage results
. How can I configure IDEA to do Coverage for common
code?kpgalligan
07/15/2019, 10:02 PMNikolai
07/16/2019, 12:46 AMkotlin {
android("android")
....
}
But I don't understand what exactly it doing, what means "android" as parameter, what we have as output? And as result how common module code goes to android part?
P.S. Also, is where any place I can found docs to understand that closures have this plugin (kotlin-multiplatform), plugin tasks, what they do and how they works?ribesg
07/16/2019, 8:55 AM-android
and -android-debug
variants of my kmp libs until now because I never managed to force a kmp library B to use the kmp library A’s -android
release in its -android-debug
build. Now I’m making another lib and I feel like I should stop publishing debug builds. Anyone encounter this problem and worked around it?darkmoon_uk
07/16/2019, 8:55 AMDmitry Motyl
07/16/2019, 12:18 PM./gradlew android:build
via terminal and build
via Android Studio?
I get exception
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
if I build via terminal..alex.hart
07/16/2019, 4:58 PMMichał Kalinowski
07/17/2019, 7:56 PMciriti
07/18/2019, 9:52 AMrusshwolf
07/18/2019, 4:47 PMJan Stoltman
07/19/2019, 12:10 AMaltavir
07/19/2019, 7:50 AMSergioedcigreja
07/19/2019, 9:36 AMhttps://files.slack.com/files-pri/T09229ZC6-FLD9BHUTB/captura_de_ecra___2019-07-19__a__s_09.11.01.png▾
Nicholas Bilyk
07/20/2019, 2:53 PMmbonnin
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: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
Dominaezzz
07/21/2019, 12:52 PMmbonnin
07/21/2019, 12:57 PMDominaezzz
07/21/2019, 12:58 PMmbonnin
07/21/2019, 1:00 PMDominaezzz
07/21/2019, 1:02 PMmbonnin
07/21/2019, 1:03 PMDominaezzz
07/21/2019, 1:03 PMmbonnin
07/21/2019, 1:05 PMDominaezzz
07/21/2019, 1:11 PMjcentre()
to your repositories
block?mbonnin
07/21/2019, 1:12 PMSergioedcigreja
07/21/2019, 1:14 PMmbonnin
07/21/2019, 1:14 PMDominaezzz
07/21/2019, 1:18 PMmbonnin
07/21/2019, 1:18 PMDominaezzz
07/21/2019, 1:21 PMmbonnin
07/21/2019, 1:24 PMDominaezzz
07/21/2019, 1:24 PMmbonnin
07/21/2019, 1:25 PMDominaezzz
07/21/2019, 1:26 PMmbonnin
07/21/2019, 1:26 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)louiscad
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 ?)FirstPresenterContract
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 PMlouiscad
07/21/2019, 1:46 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 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 AM