Ah, it depends on Dagger, so there's probably no chance of making it multiplatform :/
x
Xad Kile
05/21/2024, 5:53 AM
@CLOVIS Hi, I intend to support jvm first because I am unsure about the reflection capability of other platforms. This lib uses reflection a lot.
Dagger does not really play a major role in the library, so it can be removed and replaced rather easily. I will replace it with something else (or I will just wire things up manually, probably 10 lines of code max) if it is feasible to run reflection on multiplatform.
The library indeed uses
kotlin.Random
internally, and you can provide a Random instance to the
random
function like this :
random<YourClass>(random = YourRandom)
c
CLOVIS
05/21/2024, 9:18 AM
If it's reflection-heavy, it probably won't work well on other platforms