Just found onActivityResult was deprecated. Wonder...
# android
c
Just found onActivityResult was deprecated. Wondering how this will impact some libraries.
😶 6
g
How the fact of deprecation should impact libraries? Though, new Activity result API makes it a lot easier to integrate libraries
c
I meant for already existing libraries, that use this somewhere internally?
BTW @gildor, I had a really stupid question. If I were to update my Kotlin plugin version to the latest and my old code base is using Kotlin synthetics still, what will happen, will it support it or not? Or should I not bother updating? I want to know what will happens to app already deployed and launched that are using synthetics when we use newer versions of Kotlin because migration might not always be an option for large scale projects.
g
existing libraries, that use this somewhere internally
It’s deprecated, not removed, so nothing will change
what will happen, will it support it or not?
They are not supported
c
So am I stuck with the current version of Kotlin on my system if I have to maintain an old app already launched but is using synthetics?
g
I would update, it’s anyway your technical debt, but you decide of course
at some point you may get situatuion that you have to update Kotlin for some reason
c
We are already moving onto ViewBinding for newer projects, but as you said the debt for older projects is too much considering like if the app has at least 30+ screens. Migration is not easy in that regard.
g
Honestly I’m not sure, did synthetics are removed or not in 1.5, but they are deprecated and supported
c
Yeah deprecation notice has been out since 1.4 but one cannot just migrate that simply. So that is what I was wondering, if they will support the older code in newer versions or not.
g
It can be dropped in any major release, there is 1 version of deprecation required
It probably still work, because it’s a separate plugin, but not sure about support of higher versions of kotlin
android-kotlin-extensions
 will be removed in a future Kotlin release during or after September 2021
so probably Kotlin 1.6
c
I am currently on version 1.4.21 even though I know 1.5 is out, and I have not upgraded only in the fear that lot of my current projects which were built a long ago before this deprecation notice arrived and are using synthetics.
g
just update and check 😄
c
Is downgrading an option?
g
why not? it’s just a version of Kotlin plugin in gradle
c
Right, that was stupid of me. So if my version is defined as this and even though the plugin version is higher. This project should still work on 1.4.21 correct?
Copy code
ext.kotlin_version = '1.4.21'
g
I don’t know how you use this gradle extension, but probably yes, just check official doc how to apply kotlin plugin