Andy Dent
10/09/2024, 3:57 AMchrisjenx
10/09/2024, 5:28 AMAndy Dent
10/09/2024, 5:44 AMYou can preview common compose if you place the previews int the androidDebug sourceYep but same problem as for Fleet that resources
Res.drawable…
don’t work, Android expecting R.drawable…
Andy Dent
10/09/2024, 5:49 AMTgo1014
10/09/2024, 8:07 AMAndy Dent
10/09/2024, 8:10 AMagrosner
10/09/2024, 1:14 PMironically, android being the worst platform to run pure compose ui tests on. (Forced to run them on androidConnectedTests)not true, you can use robolectric for your UI tests, we use them and work quite well 😄 if i understand you correctly
chrisjenx
10/09/2024, 2:27 PMchrisjenx
10/09/2024, 2:28 PMchrisjenx
10/09/2024, 2:30 PMchrisjenx
10/09/2024, 2:30 PMTgo1014
10/09/2024, 2:32 PMchrisjenx
10/09/2024, 2:33 PMchrisjenx
10/09/2024, 2:34 PMchrisjenx
10/09/2024, 2:36 PMagrosner
10/09/2024, 5:33 PMrunComposeUiTest
function - we dont use that. just pure compose test rule from junit.KamilH
10/11/2024, 8:33 AMRes.drawable
according to this change:
https://github.com/JetBrains/compose-multiplatform/pull/4965
however, in my case, it fails to render a preview without any error message on the latest CMP and Android Studio versionAndy Dent
10/11/2024, 9:22 AMlibs.versions.toml
changing compose-plugin = “1.7.0-alpha01”
• (slow) resync
• Android preview (from MainActivity.kt
looked unchanged, not showing image)
• Build - Clean Project (possibly unnecessary)
• Ran an Android simulator, which worked (as it had been all along), showing image
• Go back into MainActivity.kt
and yes the preview now shows the image with a path Res.drawable.compose_multiplatform
Andy Dent
10/11/2024, 9:26 AMAndy Dent
10/11/2024, 9:33 AM