You, of course, can, the same way as write converter of Rx to ObservableField.
Also, Rx used as reactive/stream/observable solution not only for data layer in many applications but for UI and many other things and if you already heavily use Rx, then the usage of LiveData just for bindings or migrating to LiveData for UI…
To be fair, you cannot just replace ObservableField with LiveData, you should check that this ObservableField is not used for 2-way bindings because ObservableField is mutable by default, but LiveData is read-only.
Also, does MutableLiveData work with 2-way bindings?
Yes, sure, you should have the same params for both daemons, but by default AS or IDEA doesn’t use any custom params for the daemon. So disabling of custom JDK should work for default config.
Also don’t forget to kill old deamons
Also, you can do this even now with Kotlin Native (share code with iOS and Android and publish you iOS app), no need to wait for LLVM binaries instead of .ipa
Actually, Kotlin Multiplatform is different approach that do not try to build a new platform, but allows to have good code sharing between mobile (and not only mobile) platforms
Of course, there is no way for compiler prevent this. Maybe make sense to add some IDE check that warns you about wrong takeIf usage, but actually this code is so mangled, not sure that it’s easy to detect such cases of wrong takeIf usage.
Thumb of rule in such situation to use move obvious solution and follow guidelines…
The problem of your case not with operator
?., you got this problem because you use
takeIf in a wrong way.
takeIf only if you want to use someObject after takeIf, you shouldn’t use take if to replace general if condition, only when you want to use someObject.
I found this repo because I know the original project and was surprised that that there is no mention of original library in you library.
I don’t say that you did nothing, you added a few additional customisation attributes, but mostly it’s changes in Readme and samples.