Darren Bell
07/23/2020, 11:34 AMFriedger
07/23/2020, 12:29 PMwuseal
07/24/2020, 7:32 AMandrewreitz
07/24/2020, 1:30 PMe: Compilation failed: Built-in class kotlin.Any is not foundAny ideas? My other module builds fine and has no issues, so I can’t figure out what could possibly be wrong.
Peter Hsu
07/24/2020, 3:46 PMcommonMain {
dependencies {
implementation project(':common-mp')
Within this project, is an expected class and actual definition for android. When I assemble outputs using mainModuleassemble, the jar within the aar does not contain the source files from the common-mp project. I've tried 'api' instead of 'implementation', but that doesn't work. Am I missing something obvious?Alberto
07/24/2020, 5:14 PMserebit
07/25/2020, 8:46 PMMonoClock
compiles in both common and JVM
- Usage of Monotonic
(imported directly from TimeSource
) compiles in both common and JVM
- Usage of TimeSource.Monotonic
compiles in common, but fails in JVM
All three scenarios were regarded as acceptable by the IntelliJ Kotlin plugin (version 1.4-M3), but the last one failed to compile regardless.janvladimirmostert
07/25/2020, 9:33 PM@JsonIgnoreProperties
, maybe a @JsonInclude and @JsonExclude would be nice
or something more generic that allows field filtering when serializing / deserializingrnett
07/26/2020, 5:51 AMactual
declarations) for an external library's common code? E.g. have your common module depend on the library's common, and implement it's expect
definitions in your own platform module.Big Chungus
07/26/2020, 10:56 AMjean
07/27/2020, 2:15 PMgroup = "some.group.id"
version = "0.2.0"
application {
mainClassName = "io.ktor.server.netty.EngineMain"
}
tasks.withType<ShadowJar> {
archiveBaseName.set("some.group.id")
archiveClassifier.set("")
archiveVersion.set("")
}
Should I have a specific build.gradle.kts
under backendMain
(source set for my ktor backend) ?Big Chungus
07/27/2020, 10:36 PMBig Chungus
07/28/2020, 12:52 AMJan Stoltman
07/28/2020, 7:57 AMMarc Knaup
07/28/2020, 5:38 PMinternal
declarations?Sterling Albury
07/29/2020, 2:07 AMJetBrains/kotlin-native
project using the kotlin-native-xcode-11-4-workaround
library. I modified the kotlin-library
project to have two modules, both of which are using the cocoapods plugin.
I saw this thread where @Kris Wong found a project that uses a third module to aggregate things using the packForXCode
task pattern, and I’ve tried to do basically the same thing but haven’t been successful getting that to work.
I’ve also played with creating a fatFramework in a third module but I’m not sure I’m doing it correctly. I feel like from everything that I’ve read, this might be the best way to go.
Has anyone aggregated two or more modules with cocoapods frameworks for ios targets? Would having a module that creates a fatFramework from other modules be a way to go? Should I be using the export
function to export the module and the module dependecies in my ‘aggregate’ module, and then create the fatFramework?
The project I’d like get to eventually would have a bunch of shared modules, some using cocoapod frameworks, some not, so I’m trying to find a good way to keep expanding on this. Thanks.khairil.ushan
07/29/2020, 2:53 AMnative-mt
Alberto
07/29/2020, 12:42 PMMgj
07/29/2020, 12:46 PMcommonTest {
dependencies {
implementation(kotlin('test-common'))
implementation(kotlin('test-annotations-common'))
}
}
jvmTest {
def mockk_version = "1.10.0"
dependencies {
dependsOn(commonTest)
implementation kotlin('test')
implementation kotlin('test-junit')
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
implementation "io.mockk:mockk:${mockk_version}"
implementation "io.ktor:ktor-client-serialization-jvm:$ktor_version"
implementation "io.ktor:ktor-client-json-jvm:$ktor_version"
}
}
However i think there's something funky going on with org.jetbrains.kotlinx:kotlinx-serialization even though supposedly it supports the JVM target - Every model i have which is annotated with @Serializable
gives the following error: error: incompatible types: Serializable cannot be converted to Annotation @java.io.Serializable()
jean
07/29/2020, 1:20 PMktor-client
under my sourceSets["backendMain"].dependencies
?John O'Reilly
07/29/2020, 3:07 PMnative-mt
version of kotlinx coroutines will be made available that works with Kotlin 1.4? (doesn't look at least like there's one corresponding to -rc release)Loboda Deni
07/30/2020, 2:16 PMMgj
07/30/2020, 3:16 PMjvmTest
sourceset that i use to run unit tests. I can run individual test-classes or individual test-methods from IntelliJ, and gradlew jvmTest
also works correctly but when i try to "Run all tests..." for jvmTest i get an error: "No tests were found". What gives? Gradle:
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
John O'Reilly
07/30/2020, 5:55 PM1.3.8-native-mt-1.4.0-rc
version of kotlinx coroutines. Looking good so far on Android and iOS but now on macOS I'm seeing following (when building in XCode)....has anyone else come across this?
Undefined symbols for architecture x86_64:
"__kernelrpc_mach_port_destroy_trap", referenced from:
_platform_darwin__kernelrpc_mach_port_destroy_trap_wrapper850 in common(result.o)
(maybe you meant: knifunptr_platform_darwin883__kernelrpc_mach_port_destroy_trap, _platform_darwin__kernelrpc_mach_port_destroy_trap_wrapper850 )
Skolson5903
07/31/2020, 12:49 AMrnentjes
08/01/2020, 10:33 AMJohn O'Reilly
08/01/2020, 11:44 AMlouiscad
08/01/2020, 1:49 PMExecution failed for task ':modules:collections:allMetadataJar'.
> Cannot expand ZIP '/home/runner/work/Splitties/Splitties/modules/collections/build/classes/kotlin/metadata/nativeMain/collections_nativeMain.klib' as it does not exist.
Here's the Gradle scan: https://gradle.com/s/prbmyqsufsl4y
And here's the GitHub Actions run: https://github.com/LouisCAD/Splitties/runs/934757382#step:4:1
What could be the root cause?ahmedre
08/01/2020, 6:01 PMREPO_ROOT="$PODS_TARGET_SRCROOT"
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" :common:syncFramework -Pkotlin.native.cocoapods.target=$KOTLIN_TARGET -Pkotlin.native.cocoapods.configuration=$CONFIGURATION -Pkotlin.native.cocoapods.cflags="$OTHER_CFLAGS" -Pkotlin.native.cocoapods.paths.headers="$HEADER_SEARCH_PATHS" -Pkotlin.native.cocoapods.paths.frameworks="$FRAMEWORK_SEARCH_PATHS"
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Tried manually replacing REPO_ROOT
with the correct folder there but didn’t help. Don’t think it’s cocoapods related because before cocopoads, I had the manual connection way first and that was also failing with the same issue only on Xcode 12 beta.Skolson5903
08/01/2020, 11:59 PMkotlin("native.cocoapods")
working on windows? I have Ruby and libcurl installed, and ruby installed cocoapods just fine, but when the plugin tries to use "gem" it fails. On windows it needs to run gem.bat instead, and I have no idea if there is any way to configure this in the plugin. As a test I took out the failing plugin and put this snippet in to verify that gradle can run the stuff, and it works:
project.exec {
println("ruby gem version")
commandLine("gem.cmd", "-v")
}
project.exec {
println("pod version")
commandLine("pod.bat", "--version")
}
This displays on the gradle console during sync, So i know both would work if I could get the plugin to use them. I tried to cheat and make shortcuts to these, but that won't work either, so I'm curious if anyone else has it. Moving to linux is not a short-term option for me🙂 . Thanks in advance for any info