https://kotlinlang.org logo
#android
Title
# android
d

diego-gomez-olvera

06/18/2019, 10:06 AM
Hello! is it possible to use
kotlin-android-extensions
for
@Parcelize
but not for views?
d

dany

06/18/2019, 10:10 AM
yes
d

diego-gomez-olvera

06/18/2019, 10:10 AM
cool
but the docs do not mention how
d

dany

06/18/2019, 10:11 AM
you will get both when applying the plugin, but that does not mean you have to use it
(or maybe I misunderstood the question)
d

diego-gomez-olvera

06/18/2019, 10:12 AM
I would like to impede using the one for views
at least for now
d

dany

06/18/2019, 10:13 AM
as long as you're not importing your layout/views in your code, I would say it will have no impact
d

diego-gomez-olvera

06/18/2019, 10:13 AM
the idea would be to have an unified solution, for instance, ViewBindings https://proandroiddev.com/new-in-android-viewbindings-the-difference-from-databinding-library-bef5945baf5e
s

Sergey Chelombitko

06/18/2019, 10:13 AM
Like this:
Copy code
androidExtensions {
    experimental = true
    features = ["parcelize"]
    defaultCacheImplementation = "NONE"
}
🎉 2
d

diego-gomez-olvera

06/18/2019, 10:14 AM
thanks!