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 dev10. #1118

Merged
merged 1 commit into from May 4, 2020
Merged

Conversation

zach-klippenstein
Copy link
Collaborator

@zach-klippenstein zach-klippenstein commented Apr 30, 2020

Description

Dev10 finally brings support for coroutines!

This is the first compose update in a while to actually bump the compiler version
as well as the plugin version, which is why it requires a few more changes
to work.
Fixes # (issue)

Type of change

Please select at least one

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • API change this is not Backward compatible (fix or feature that would cause existing functionality to not work as expected or change the API contract)
  • This change requires a documentation update
  • Dependency update

Testing Checklist

How was this change tested?

  • Unit Tests
  • UI Tests
  • Snapshot Tests (iOS only)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published

@zach-klippenstein zach-klippenstein added dependencies Pull requests that update a dependency file kotlin Affects the Kotlin library. labels Apr 30, 2020
@@ -28,7 +28,7 @@ import org.junit.runner.RunWith
class HelloBindingTest {

// Launches the activity.
@Rule @JvmField val scenario = ActivityScenarioRule(HelloBindingActivity::class.java)
@Rule @JvmField val composeRule = AndroidComposeTestRule<HelloBindingActivity>()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Compose top-level UI test functions now require a ComposeTestRule to be used, or they will throw.

@@ -84,7 +85,7 @@ internal class ComposeViewFactory<RenderingT : Any>(
)

// Entry point to the composition.
composeContainer.setContent {
composeContainer.setContent(Recomposer.current()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Old method is deprecated.

@rjrjr rjrjr added this to Reviewer approved in Workflow via automation May 4, 2020
Dev10 finally brings support for coroutines!

This is the first compose update in a while to actually bump the compiler version
as well as the plugin version, which is why it requires a few more changes
to work.
@zach-klippenstein
Copy link
Collaborator Author

Looks like this might be an actual test failure, but the Actions UI isn't even showing a log for this task so I github might just be having issues.

@zach-klippenstein
Copy link
Collaborator Author

UI test failure is now: Caused by: java.net.UnknownHostException: dl.google.com.

@zach-klippenstein zach-klippenstein merged commit fa8e89f into master May 4, 2020
Workflow automation moved this from Reviewer approved to Done May 4, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/compose-dev10 branch May 4, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file kotlin Affects the Kotlin library.
Projects
Workflow
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants