itnoles
04/21/2021, 3:40 AMaravind
04/21/2021, 1:35 PMSlackbot
04/21/2021, 2:29 PMBenoît
04/22/2021, 8:33 AM// COMMON MAIN
expect annotation class Parcelize()
expect interface Parcelable
// JVM MAIN
actual interface Parcelable
actual annotation class Parcelize actual constructor()
// ANDROID MAIN
actual typealias Parcelize = kotlinx.parcelize.Parcelize
actual interface Parcelable : android.os.Parcelable
I can pass objects between Activities/Fragment without a problem, but when my Fragment gets stopped, or if I try to call writeToParcel
myself, my app crashes:
java.lang.AbstractMethodError: abstract method "void android.os.Parcelable.writeToParcel(android.os.Parcel, int)"
Any idea?Paul Woitaschek
04/22/2021, 9:12 AMDirk Hoffmann
04/22/2021, 11:23 AMsourceSets.commonMain.dependencies { ... }
?
a) dependencies on MPP libs that have all(!) the used(!) platform-specific variants of libraries with suffixes such as -jvm
, -macosX64
, -linuxX64
and -mingwX64
supported.
b) pure kotlin libs, that do not have any (transitive) dependencies on any platform specific things (?)
As I learned a) is true (is it?), but what kind of b) dependencies am I "allowed? to use out-of-the-box in commonMain
that for sure will give me "no issues" if I wanna have native executables for let's say macosX64
, linuxX64
and mingwX64
?Julián Falcionelli
04/22/2021, 12:27 PMthanksforallthefish
04/22/2021, 1:17 PMcommonMain
I have
package ...
class HateoasObjectImpl(val any: Map<String, *>) : HateoasObject {
override fun getLink(name: String): Link {
TODO("Not yet implemented")
}
override fun getHint(name: String): Hint {
TODO("Not yet implemented")
}
override fun getLinkAndHint(name: String): Pair<Link, Hint> {
TODO("Not yet implemented")
}
}
in jsTest
can I somehow reference this code in a js
file? or that is not possible, since js code is generated when running gradle?ppav
04/22/2021, 7:53 PMshared/build.gradle.kts
in the tread:sushma nayak
04/23/2021, 5:09 PMchrmelchior
04/23/2021, 10:05 PMthrowable.stackTraceToString()
on macOS. I caught this as we had some unit tests verifying that things are getting released correctly. Anyone seen anything similar or know a workaround?xxfast
04/25/2021, 5:15 AMrnett
04/25/2021, 7:24 AMproject
dependency, which is what I need. Is there any way to do this?Vitor Prado
04/26/2021, 1:09 PMBerkan
04/26/2021, 2:25 PMException in thread "main" java.lang.Error: /var/folders/bj/tngfcb114wx5jxhv1y6b0lz40000gn/T/8243693674587240663.m:1:9: fatal error: module 'DependencyX' not found
is part of the stacktraceandrewreitz
04/26/2021, 3:51 PMjvm()
as one of the targets. When I run gradlew tasks
I don’t see any way to execute the jvm project. I see the other run tasks for native and js, is there something I need to do to setup the jvm one to be executable?xxfast
04/26/2021, 11:22 PMxxfast
04/27/2021, 9:10 AMandroidAndroidTest
.. haMichal Klimczak
04/27/2021, 5:32 PMAVAudioPlayerDelegateProtocol
and not go insane? https://kotlinlang.slack.com/archives/C3SGXARS6/p1619544378255600Berkan
04/27/2021, 8:25 PMRyan Simon
04/27/2021, 11:58 PM:core
and one module called :auth
. :auth
depends on :core
.
I also want a Koin setup where :auth
and :core
Koin dependencies can be initialized on each client app. this would allow me to share a network implementation from each client across both modules
the problem is that when trying to setup the Koin dependencies on iOS, each module has its own version of the Network
interface. :auth
refers to it as AuthCoreNetwork
and :core
refers to it as CoreNetwork
. with this in mind, we can't properly setup the Network
dependency as the interfaces are incompatible
this setup works fine on Android side, but not on iOS.
any idea what I could do to solve for this, if anything? code sample of what I'm trying to do on the iOS side below
func startKoin() {
NSLog("Hi")
let doOnStartup = { NSLog("Hello from iOS/Swift!") }
let network = NetworkManagerImpl()
Core.KoinIosKt.doInitKoinIos(doOnStartup: doOnStartup, network: network)
Auth.KoinIosKt.doInitKoinIos(doOnStartup: doOnStartup, network: network) // doesn't work because the network instance doesn't match up
}
iamthevoid
04/28/2021, 8:40 AMSebastian
04/28/2021, 1:06 PM_category_0
instead of category
) and lots of unneeded metadata (e.g. the enums’ hash code values) attached. Do I understand it correctly that I need write custom Serializers to turn these objects into more readable/simple JSON objects? Or what’s a good way to approach this? Perhaps there are some other annotations I need to check?
Example below: I’m trying to return a list of question objects with some fields (e.g. an enum-based type
and a list of options
).Iaroslav Postovalov
04/28/2021, 3:24 PMWukongRework.exe
04/28/2021, 3:44 PMaravind
04/29/2021, 6:32 AMJozef Matus
04/29/2021, 9:00 AMDaniele B
04/29/2021, 1:03 PMBerkan
04/29/2021, 1:53 PMMichael Stromer
04/29/2021, 7:40 PMMichael Stromer
04/29/2021, 7:40 PMRobert Jaros
04/29/2021, 8:02 PMMichael Stromer
04/29/2021, 8:04 PMRobert Jaros
04/29/2021, 8:07 PM