Some useful Kotlin extension functions and MVP framework
Anywhere (activity, fragment, framework's presenter) just need
logX("message")
or
logX("message", "e")
Also just need setup
yourRecyclerView.setup(items, R.layout.item_main, { item ->
this.tv_item.text = item //item is string you can also use objects
this.setOnClickListener { logX("clicked $item") }
})
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
dependencies {
...
implementation 'com.github.zetazaw:kotilities:0.0.2.1'
}