I am writing an Android library in Kotlin. But when used in Android apps written in Java the support is very poor. For example default parameters in Kotlin are still required in Java. Another one is, non-null parameters does not accept null in Kotlin app (compile time error) but throws run time exception when null
is passed in Java. I know about null checks but they make the code look dirty.
What is the proper way to support Android Java apps? Direction, suggestions, examples are welcome. Thanks.