Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Compose to beta08 and Kotlin to 1.5.10 #152

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

benkay
Copy link
Contributor

@benkay benkay commented Jun 3, 2021

Had to use the new Card variant with an onClick listener, and work around some new LazyColumn semantics which were causing tests to fail
Also replaced all newly deprecated toLower/UpperCase methods

* assertIsNotDisplayed() fails if the node does not exist.
* See https://issuetracker.google.com/issues/187188981
*/
private fun SemanticsNodeInteraction.assertEitherDoesNotExistOrIsNotDisplayed() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this related to a change introduced in beta08 or did I miss this from a previous release. Do you know the CL for this? Might be useful to add a link to that here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it's actually since beta07 - and I'm guessing the failures I was seeing were probably actually caused by the "LazyColumn/Row will now keep up to 2 previously visible items active (not disposed)" part - https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0-beta07

Tweaked the comment to point to that CL

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you kind sir!

Copy link
Collaborator

@vinaygaba vinaygaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for your contribution

Had to use the new Card variant with an onClick listener, and work around some new LazyColumn semantics which were causing tests to fail
Also replaced all newly deprecated toLower/UpperCase methods
@benkay benkay force-pushed the kotlin-1.5-compose-beta08 branch from c974feb to 08e9eb6 Compare June 3, 2021 18:33
@vinaygaba vinaygaba merged commit e8ac8dd into airbnb:master Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants