Rahul Rawat
01/14/2022, 4:40 PMAnaR
01/14/2022, 5:47 PMRahul Rawat
01/15/2022, 1:19 PMaarjav
01/15/2022, 6:31 PMLoadingCache
of guava. I am fairly familiar with kotlin jvm, however haven't used kotlin on other platforms yet. Is it okay to jump into multiplatform directly? If not, is there some roadmap I can follow?
I have started to write the common api, but I am not sure what to use in place of ConcurrentMap
, Do I make my own map interface? What would be the actual in kotlin native?Javier
01/15/2022, 11:50 PMkotlin-js-store/yarn.lock
?Rita Okonkwo
01/16/2022, 6:22 PMsalomonbrys
01/17/2022, 1:36 PMMilan Vadhel
01/18/2022, 4:44 AMEvgenii Sokol
01/18/2022, 5:53 PMLandry Norris
01/18/2022, 7:49 PMmartmists
01/19/2022, 3:17 PMplugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
}
kotlin {
js(IR) {
browser()
}
jvm()
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
}
}
}
}
group = "com.martmists"
version = "1.0"
Why is the code in this submodule saying serialization and datetime don't exist when I try to compile it, but only for compileKotlinJs?Johannes Fahrenkrug
01/19/2022, 5:30 PMTravis Reitter
01/19/2022, 6:00 PMembedAndSignAppleFrameworkForXcode
and followed the steps here but am getting:
Task 'embedAndSignAppleFrameworkForXcode' not found in project ':SharedCode'
Travis Reitter
01/19/2022, 10:48 PMembedAndSignAppleFrameworkForXcode
to build my iOS app (Kotlin 1.6.10, M1 Mac, Xcode 13.2.1) and I hit this crash at runtime which seems to indicate a linking error but I'm not sure why since I include this in my Frameworks search paths:
$(SRCROOT)/../SharedCode/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
The error is:
dyld[28834]: Library not loaded: @rpath/SharedCode.framework/SharedCode
Referenced from: /Users/treitter/Library/Developer/CoreSimulator/Devices/A5638492-9E3A-4766-B4D4-6827DF4DBAC8/data/Containers/Bundle/Application/CADE4DEF-489A-4E7F-B600-8CFAA803F19D/DoubleStrain <http://dev.app/DoubleStrain|dev.app/DoubleStrain> dev
Reason: tried: '/Users/treitter/Library/Developer/Xcode/DerivedData/DoubleStrain-csfvqjqyopvjufbkvgenmyhjexpz/Build/Products/Debug-iphonesimulator/SharedCode.framework/SharedCode' (no such file), '/Users/treitter/Library/Developer/Xcode/DerivedData/DoubleStrain-csfvqjqyopvjufbkvgenmyhjexpz/Build/Products/Debug-iphonesimulator/PackageFrameworks/SharedCode.framework/SharedCode' (no such file),
...
it continues on with many more directories it checked but none of them match the pattern above. None even include xcode-frameworks
in the path.
Any ideas for debugging?Pavel Repkin
01/20/2022, 7:53 AMNeal Sanche
01/20/2022, 4:33 PMNeal Sanche
01/20/2022, 5:04 PMMonetaryValue
which is the GraphQL class. MonetaryValue_
which seems to be the data class we want. But then there's also a MonetaryValue__
which is an @interface
that has a bunch of swift attributes like component1()
and component2()
and properties for the actual interesting data class things. Is the way all of this works documented somewhere? Or can someone explain this? Is there a way to change this behaviour? Thanks for any and all insights.georgi
01/21/2022, 4:39 PMA
) declares a dependency on another KMM module (B
), the generated Swift code will prefix the classes from B
with its fully qualified module name when they are exposed through A
. For example, a class MyClass
defined in B
but exposed through A
will be available as BMyClass
when the A.framework
is used in Swift through embedAndSignAppleFrameworkForXcode
.
This is an issue when I have an interface which is defined in one module but implemented in another in which case Swift is not able to match the class names and does not consider the implementation as a valid argument when it is being passed as a parameter for example.
Any ideas about this? Thanks in advance!bendb
01/21/2022, 5:48 PMkotlin {
...
ios {
binaries.framework()
}
}
I get a strange dependency-resolution failure: Could not find :kotlin-native-prebuilt-macos-x86_64:1.6.10
. I've already got the multiplatform plugin applied, the build has been working, etc. Is there perhaps some obvious dependency I'm missing? If not, any suggestions on how I could debug this?Eamon Keane
01/21/2022, 6:16 PMcocoapods
and xcode-build
in bitrise. Given we have no iOS experience, what would be the best workflow, I'm thinking AppCode for the non-UI swift stuff, and Xcode for just the UI?
Separately, it would be nice to use AppCode's project structure but it doesn't look like it's ready for primetime. For example, it still seems to be on Kotlin 1.5.10
, and only defines the xcode project in gradle dsl which xcode can't open. How easy would it be to potentially use this gradle dsl definition and create the xcode project scaffold separately so xcode can open it?Claude Brisson
01/21/2022, 8:48 PM// commonMain file Expectations.kt
package foo
expect class SQLException
// jvmMain file SQLException.kt
package foo
actual typealias SQLException = java.sql.Exception
The -jvm.jar contains SQLExceptionKt.class, but no SQLException.class. In a JVM consumer library, the type foo.SQLException is unknown.
Of course, there's the workaround to always use java.sql.SQLException in the JVM, but if the consumer library wants to implement an interface with @Throws(foo.SQLException::class), it's not possible.Fredrick Eisele
01/21/2022, 9:14 PMptsiogas
01/22/2022, 7:17 AMJavier
01/22/2022, 1:01 PMraulraja
01/22/2022, 1:18 PMpublishPlatformArtifactsInRootModule
in order to provide support for KMP artifacts from maven. Currently we are having issues in Arrow and wondering if this is needed or if there is a better way to solve it. Thanks!Kaushalya
01/23/2022, 4:28 PMynsok
01/23/2022, 4:52 PMZahara Vidumshikova
01/24/2022, 12:21 PMAkram Bensalem
01/24/2022, 9:18 PMMarko Novakovic
01/24/2022, 10:22 PMandroidTest
everywhere. I can't find commonTest
. when I change project view to Project
I can see commonTest
but when I want to run tests am given options: android:(testDebugUnitTest)
and android:(testReleaseUnitTest)
. how to run common tests as plain JVM Kotlin tests?Marko Novakovic
01/24/2022, 10:22 PMandroidTest
everywhere. I can't find commonTest
. when I change project view to Project
I can see commonTest
but when I want to run tests am given options: android:(testDebugUnitTest)
and android:(testReleaseUnitTest)
. how to run common tests as plain JVM Kotlin tests?ephemient
01/24/2022, 10:28 PMMarko Novakovic
01/24/2022, 10:39 PMandroid:
? that's what confuses meephemient
01/24/2022, 10:41 PMMarko Novakovic
01/24/2022, 10:54 PMloke
01/25/2022, 8:13 AMMarko Novakovic
01/25/2022, 9:05 AM