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

Migrate AddActivity to compose #66

Merged
merged 14 commits into from
Sep 19, 2022
Merged

Conversation

strooooke
Copy link
Contributor

No description provided.

Copy link
Member

@maxhille maxhille left a comment

Choose a reason for hiding this comment

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

Good Job. Impressed that it even saved LOC.

app/src/main/res/values/dimens.xml Outdated Show resolved Hide resolved
Current gotcha: ResultView switches its visibility itself. This does
not get picked up by the parent Composable with regards to measurement.

Not worth dealing with this right now; will revisit when migrating
ResultView to compose.
(indeed makes the measurement problem from the previous commit
disappear)
Turns out that the setup in LauncherActivityTest does not need
to be that complicated, using an EmptyComposeTestRule to interact
with the compose nodes and an ActivityScenario to control the
activity works just fine. No need to register the activity somehow
with the ComposeTestRule. It just needs to exist as a Rule to
set up the Compose component registry stuff.

But since the plan is to get cucumber running again, I'm leaving
the LauncherActivityTest as is.
@strooooke strooooke merged commit d8d2e9a into master Sep 19, 2022
@strooooke strooooke deleted the feature/compose_add_activity branch September 19, 2022 12:03
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.

2 participants