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 dependencies #20

Merged
merged 5 commits into from
Sep 17, 2019
Merged

Update dependencies #20

merged 5 commits into from
Sep 17, 2019

Conversation

Serchinastico
Copy link
Contributor

🎩 What is the goal?

Update all dependencies in the project to their latest version to start working on flow.

📝 How is it being implemented?

  • Update all library versions.
  • Remove stately as it is not compatible with the latest ABI version (stately targeted v9 and the project is v14). In order to safely remove it I had to declare the dependency graph as @ThreadLocal, it basically declares Kotlin objects as mutable on the condition of having a different reference per thread. More information here. Luckily we are configuring the test graph and getting all dependencies from the same thread, the main one.
  • Refactor the API stub class to accept a sealed class that can represent success, error and loading values. This way we can include a delay call to never finish fetching API information and use it from tests. We were relying on the device slow connection prior to this change, making the test undeterministic.

💥 How can it be tested?

🤖 Run all iOS and Android tests.

Copy link
Contributor

@tonilopezmr tonilopezmr left a comment

Choose a reason for hiding this comment

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

👍

@Serchinastico Serchinastico merged commit b977683 into master Sep 17, 2019
@Serchinastico Serchinastico deleted the update-dependencies branch September 17, 2019 16:26
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