Colton Idle
06/02/2021, 4:37 PMimplementation("androidx.compose.runtime:runtime-livedata:1.0.0-beta07")
implementation("androidx.compose.ui:ui-viewbinding:1.0.0-beta07")
in my android app module but a few threads above it was recommended to not mix and match JB compose and Google compose. What dep should I use instead of the above? I will say that I'm using those above and everything seems to compile and run just fine.Javier
06/02/2021, 4:59 PMIgor Demin
06/02/2021, 5:20 PMnot mix and match JB compose and Google composeWhat I meant here is not to use
androidx
versions of core libraries that exists in JB repository.
livedata
and viewbinding
are not core libraries (they depend on compose)
ui-util
is a core libray (compose depends on it)
If JB repository doesn't have some libraries then the only way is to use androidx
version.
API is mostly stable (but not entirely), so in most cases everything should be fine if we use the close released versions (0.4.0 and 1.0.0-beta07) .
P.S.1 we don't plan to publish libraries like livedata
or viewbinding
P.S.2 we plan to align version of core artifacts with androidx
version after CfD 1.0, so there will be no API inconstancies.Colton Idle
06/02/2021, 5:22 PMJavier
06/02/2021, 5:24 PMIgor Demin
06/02/2021, 5:28 PMIgor Demin
06/02/2021, 5:32 PMIs there an easy way to know what are compose artifactsHere the list of core libraries. If third-party androidx library depends on
androidx.compose
, the dependency will be automatically replaced by org.jetbrains.compose
And just now I realized, that if you even use a core androidx library like ui-util:1.0.0-beta07
, the JB compose Gradle plugin will always pick ui-util:0.4.0
🙂Colton Idle
06/02/2021, 5:49 PMJB compose Gradle plugin will always peekwill always "pick", right? Or is "peek" some gradle terminology?ui-util:0.4.0
Igor Demin
06/02/2021, 5:51 PMColton Idle
06/02/2021, 5:52 PMJavier
06/02/2021, 5:55 PMIgor Demin
06/02/2021, 6:02 PMIgor Demin
06/02/2021, 6:13 PMYou are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed
That is also depends on Google guys, because you can catch this error even if you don't use JB compose
, and just use different versions of androidx compose
(for example, when you use the latest compose and depended library an older compose).
But when JB will align versions with androidx, this error will be happening as often as for androidx 🙂Javier
06/02/2021, 6:31 PM