Colton Idle
06/01/2021, 4:12 PMColton Idle
06/01/2021, 4:33 PM// Compose version = 1.0.0-beta07
api("androidx.compose.ui:ui:$composeVersion")
implementation("androidx.compose.ui:ui-tooling:$composeVersion")
implementation("androidx.compose.foundation:foundation:$composeVersion")
api("androidx.compose.material:material:$composeVersion")
implementation("androidx.compose.ui:ui-util:$composeVersion")
implementation("androidx.compose.material:material-icons-core:$composeVersion")
implementation("androidx.compose.material:material-icons-extended:$composeVersion")
Looks like they can basically be swapped with these. Is that right?
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.materialIconsExtended)
Igor Demin
06/01/2021, 4:53 PMapi(compose.ui)
implementation(compose.foundation)
api(compose.material)
implementation(compose("orj.jetbrains.compose.ui:ui-util")
implementation(compose.materialIconsExtended)
material-icons-core
is already the part of material
Not sure about ui-tooling
.
implementation(compose("org.jetbrains.compose.ui:ui-tooling")
But don't know if it will work, there some issues that we still haven't resolved / investigated.uli
06/02/2021, 8:02 AM> Could not find org.jetbrains.compose.ui:ui-tooling-data:0.4.0.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://repo.maven.apache.org/maven2/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
Required by:
project :androidApp > project :shared > org.jetbrains.compose.ui:ui-tooling:0.4.0 > org.jetbrains.compose.ui:ui-tooling-android-debug:0.4.0
Seems it is not yet ready 😞uli
06/02/2021, 8:14 AMIgor Demin
06/02/2021, 8:21 AMIgor Demin
06/02/2021, 8:22 AMIgor Demin
06/02/2021, 12:47 PM0.0.0-unmerged-build79
that is the copy of 0.4.0
but with ui-tooling-data
(it is hard to just add a single artifact without rebuilding the entire library, but it will be available in 0.4.1/0.5.0-buildXXX)Colton Idle
06/02/2021, 5:38 PMcompose("...")
function not working properly?Igor Demin
06/02/2021, 5:42 PMIgor Demin
06/02/2021, 5:42 PMimport org.jetbrains.compose.compose
Igor Demin
06/02/2021, 5:43 PMIgor Demin
06/02/2021, 5:44 PMColton Idle
06/02/2021, 5:46 PMIgor Demin
06/02/2021, 5:46 PMIgor Demin
06/02/2021, 5:46 PMimport org.jetbrains.compose.compose
Igor Demin
06/02/2021, 5:47 PMColton Idle
06/02/2021, 5:47 PMcompose()
call was broken and didn't need the import since I didn't need the import for anything JB compose related until today. Just triple checking. Thank you!Colton Idle
06/02/2021, 6:51 PMimport androidx.compose.ui.tooling.preview.Preview
1. Use implementation(compose("org.jetbrains.compose.ui:ui-tooling-data"))
2. Or use implementation(compose("org.jetbrains.compose.ui:ui-tooling-data"))
3. Or remove it because @Preview annotation is not MPP yet and so it's easiest to not have it at all until support for it is built
4. Or Change imports to androidx.compose.desktop.ui.tooling.preview
Its funny because I actually don't really rely on Preview all the much. But I have a SINGLE composable in my common module that has @Preview annotation.Igor Demin
06/02/2021, 7:36 PM0.0.0-unmerged-build79
and implementation(compose("org.jetbrains.compose.ui:ui-tooling"))
2. or compose 0.4.0
and implementation("androidx.compose.ui:ui-tooling:1.0.0-beta07")
3. or compose 0.4.0
and implementation(compose("org.jetbrains.compose.ui:ui-tooling"))
and implementation("org.jetbrains.compose.ui:ui-tooling-data:0.0.0-unmerged-build79")
But it is just a guess, I haven't tried it.Igor Demin
06/02/2021, 7:39 PMColton Idle
06/02/2021, 7:40 PMIgor Demin
06/02/2021, 7:42 PMdependency that can go into commonMaintry
implementation(compose("org.jetbrains.compose.ui:ui-tooling"))
in commonMain
and implementation("org.jetbrains.compose.ui:ui-tooling-data:0.0.0-unmerged-build79")
in androidMain
Colton Idle
06/02/2021, 7:42 PMWe published 0.0.0-unmerged-build79 that is the copy of 0.4.0 but with ui-tooling-data
and that confused me some more because you said ui-tooling-data, and but the androidx artifact is ui-toolsColton Idle
06/02/2021, 7:47 PMimplementation(compose("org.jetbrains.compose.ui:ui-tooling"))
to commonMain (nothing into androidMain just yet) just to try to see if it'll compile my shared composables. Got this error. Going to try that updated 0.0.0 version now.
Could not find org.jetbrains.compose.ui:ui-tooling-data:0.4.0.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://repo.maven.apache.org/maven2/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://s3.amazonaws.com/salesforcesos.com/android/maven/release/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://jitpack.io/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
- <https://dl.bintray.com/google/flexbox-layout/org/jetbrains/compose/ui/ui-tooling-data/0.4.0/ui-tooling-data-0.4.0.pom>
Required by:
Colton Idle
06/02/2021, 7:51 PMDuplicate class androidx.compose.ui.tooling.CompositionDataRecord found in modules ui-tooling-1.0.0-beta07-runtime (androidx.compose.ui:ui-tooling:1.0.0-beta07) and ui-tooling-debug-runtime (org.jetbrains.compose.ui:ui-tooling-android-debug:0.0.0-unmerged-build79)
...
...
Colton Idle
06/02/2021, 7:54 PM0.4.0
and implementation("androidx.compose.ui:ui-tooling:1.0.0-beta07")
as that allows my code to compile without changing anything. I don't care about Preview actually working. I just want my git commit to not change our DesignSystemComposables.kt file. And instead I just want my git diff to just show that I'm purely swapping out dependencies. Hopefully that makes sense as to why I want Preview to compile, but I don't care if it works.
Thanks again Igor Demin. That's enough compose for desktop for today!uli
06/02/2021, 7:55 PMuli
06/02/2021, 8:32 PMColton Idle
06/03/2021, 12:16 AMuli
06/04/2021, 11:41 AM@Preview
anotation changes so there is no single source code that includes @Preview
and compiles for all platforms.Colton Idle
06/04/2021, 6:49 PM@Preview
and compiles for all platforms." I will just remove Preview from my CommonComposables.kt for now.uli
06/05/2021, 11:47 AM