bod
01/09/2021, 7:50 PMReed Ellsworth
01/09/2021, 10:28 PMdependencies {
api(project(":logging"))
}
The library B (logging) code is not available to be used inside code in Library A. I have seen someone say that I have to publish Library B to a local maven repository but that is a pain to do especially when both libraries are under heavy development.
I am using 1.4.21 kotlin multiplatform plugin. Has anybody gotten this to work?Philip Dukhov
01/10/2021, 4:49 AMIvy
01/10/2021, 4:03 PMchi
01/11/2021, 2:55 PMwilliam
01/11/2021, 4:57 PMObservableObject
but it seems like I may not be able to access SwiftUI since there are no obj-c bridging headers
edit: change compose to swiftui - too much android on my mindJack Darlington
01/11/2021, 5:25 PMHamza GATTAL
01/11/2021, 8:51 PMJack Darlington
01/12/2021, 12:47 PMexpect abstract class Thing {
}
actual class Thing {
}
actual abstract class Thing {
}
Obviously the example above doesn't make sense, but it does if you are trying to typealias to already existing code. It is not a huge issue, but just wondered if it existed alreadyIvy
01/12/2021, 1:06 PMBoris Dudelsack
01/12/2021, 6:53 PMrunBlocking
in linuxMain
and in macosMain
but i cannot use it wether in my own source set nativeMain
nor in commonMain
. Do i need add some sort of configuration to the source set?
plugins {
kotlin("multiplatform")
}
kotlin {
linuxX64("linux") {
binaries {
executable()
}
}
macosX64("macos") {
binaries {
executable()
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1-native-mt")
}
}
val nativeMain by creating {
dependsOn(commonMain)
}
val macosMain by getting {
dependsOn(nativeMain)
}
val linuxMain by getting {
dependsOn(nativeMain)
}
}
}
Kris Wong
01/12/2021, 9:03 PMPhilip Dukhov
01/13/2021, 1:17 AMInt
to ByteArray
. .toByte()
gives only first 8 bits, but I need a whole number. usePinned
looks like what I need, but it’s unreachable in the commonMainn8ebel
01/13/2021, 2:44 AMmoduleA
- one unique feature
moduleB
- another unique feature
we then have moduleC
setup to pull in the other modules and create a single iOS framework for us to version/publish
I’m wondering though what would be the best way to publish/consume the JVM artifacts?
At the moment, we get a JAR for each module, which we could give a unified version and publish separately.
But I’m wondering if we might be better off having a single JAR for all modules like with the iOS framework
1. Is that a reasonable idea? Anyone try that and run into problems?
2. Is that something that can be setup “out of the box” or would we need to create a custom task to unzip jars and rezip into a new, unified jar?Lefko
01/13/2021, 11:05 AMtylerwilson
01/13/2021, 2:10 PMnrobi
01/13/2021, 3:28 PMAmritansh
01/13/2021, 3:36 PMJack Darlington
01/13/2021, 4:52 PMMarcus
01/14/2021, 12:00 PM-fmodules
for the compilerOpts
. However, I can find no documentation on how to do this for a Cocoapod. Any suggestions?nrobi
01/15/2021, 7:56 AMKtor
and/or SqlDelight
’s native dependencies in an intermediate source set?Arkadii Ivanov
01/15/2021, 5:30 PMexpect object
with inner interface inside it, how can I use this interface in an actual
implementation?
expect object MyObject {
fun foo(): MyInterface
interface MyInterface {
fun bar()
}
}
actual object MyObject {
actual fun foo(): MyObject.MyInterface = // MyInterface is unresolved here
TODO()
}
darkmoon_uk
01/16/2021, 12:52 AMspierce7
01/17/2021, 5:14 AMTimber
is that you could swap out the actual logging implementation so that you could route all logs into something like Crashlytics.Michal Klimczak
01/17/2021, 8:12 PMMatteo Wohlrapp
01/18/2021, 8:47 AMMichal Klimczak
01/18/2021, 11:31 AMioswrapper
module which is multiplatform
plugins {
kotlin("multiplatform")
id("java-library")
}
2. And then I have a ioswrapper-processor
which depends on ioswrapper
but is pure jvm (because it's an annotation processor based on kotlinpoet).
plugins {
kotlin("jvm")
id("java-library")
}
dependencies {
//... kotlinpoet etc
implementation(project(":ioswrapper"))
}
In Android Studio ioswrapper-processor
classes show lots of Unresolved references...
even though everything builds just fine. This didn't occur when ioswrapper
was a simple jvm module.
Any fixes or workarounds?Nadjib
01/18/2021, 2:14 PMwarning: (x86_64) could not find object file symbol for symbol _kfun:kotlinx.atomicfu#atomicArrayOfNulls(<http://kotlin.Int|kotlin.Int>){0§<kotlin.Any?>}kotlinx.atomicfu.AtomicArray<0:0?>
Does anyone faced this issue before when using kotlin multiplatform on IOS?Sebastian Kaspari
01/19/2021, 12:16 PMAlex Anisimov
01/19/2021, 1:36 PMAlex Anisimov
01/19/2021, 1:36 PMzalewski.se
01/19/2021, 10:03 PM