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

Replace the way to run Intents.init() and Intents.release() #402

Open
rocboronat opened this issue May 27, 2021 · 0 comments
Open

Replace the way to run Intents.init() and Intents.release() #402

rocboronat opened this issue May 27, 2021 · 0 comments

Comments

@rocboronat
Copy link
Member

Instead of encouraging Barista users to use something like this to mock the camera

try {
  Intents.init();
  BaristaIntents.mockAndroidCamera();
  clickOn(R.id.launch_camera);
} finally {
  Intents.release();
}

create an easy-to-use Rule that does it.

Related PR: https://github.com/AdevintaSpain/Barista/pull/375/files

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

No branches or pull requests

1 participant