https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

dazza5000

10/29/2020, 6:21 PM
is there a way to quiet the compiler if you are creating multiplatform classes, but dont want to implement it on one platform (for instance you want android/ios, but not a js implentation)
c

Casey Brooks

10/29/2020, 6:41 PM
I usually create the default implementation with a bunch of
TODO()
or
throw NotImplementedError()
. Alternatively, break the module down into multiple “core” modules that better set up the intended usage (for example, a platform-agnostic “core” module, a “mobile” module for android/ios which depends on “core”, etc)
d

dazza5000

10/29/2020, 6:47 PM
yea - i have a kind of weird setup that is described here https://whereisdarran.com/2020/03/from-apache-cordova-to-kotlin-multiplatform/
i just put some no ops
going to do this now
throw NotImplementedError()
thank you for the suggestion
3 Views