You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of line 12 in com.idanatz.oneadapter.internal.utils in generic.kt you can't use ItemModule with interfaces as in
class MyModule() : ItemModule<SomeInterface>
SomeInterface being
interface SomeInterface { ... }
It causes crash.
It's because you are using if (className.startWith("class ")) { }
And class name for interface starts with "interface "
You can use abstract class tho since its class name starts with "class " but it simply will do nothing since you can have object with class name of abstract class, and thats how library indentifies types
Also im certain that what you are implementing here is just type.typeName
The text was updated successfully, but these errors were encountered:
Because of line 12 in com.idanatz.oneadapter.internal.utils in generic.kt you can't use ItemModule with interfaces as in
class MyModule() : ItemModule<SomeInterface>
SomeInterface being
interface SomeInterface { ... }
It causes crash.
It's because you are using
if (className.startWith("class ")) { }
And class name for interface starts with "interface "
You can use abstract class tho since its class name starts with "class " but it simply will do nothing since you can have object with class name of abstract class, and thats how library indentifies types
Also im certain that what you are implementing here is just
type.typeName
The text was updated successfully, but these errors were encountered: