Closed WindSekirun closed 4 years ago
Hi @WindSekirun So after removing the kotlin-android-extension are we migrating this to DataBinding? which is good. But I don't understand what can be the memory issues for caching view as kotlin-android-extension remove all the cache view onDestroy() method. Is there any article/source from which I can go through to dig a little deeper on this topic that it can cause some serious issue.
Hi, @deepakkumardk
Starting from this commit message, Kotlin-Android-Extensions is not officially recommended (which is not the same as recommendation against) cause these reasons.
id
, Type inference does not work properly.Although this problem may not be significant, the risk exists and is intended to be removed.
I consider DataBinding as another alternative, but I try to avoid adding dependencies that may not be used by other applications. (The issue in #22 has the same problem.)
findViewByIds
with lateinit
commands also fine to me. (The code will grow a lot, but it doesn't cause any problems)
You can find source of topic in here and here.
Any other comments are welcome at any time. I don't have enough time to implement right away.
@WindSekirun Thanks for the info, I will work on that.
@WindSekirun now we can close this.
Remove all 'kotlin android extensions' code to avoid memory issues that can occur while caching views.