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

Removed deprecated IntentsTestRule and applied ActivityScenarioRule instead. #380

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcodallaba
Copy link
Contributor

In DialerActivityTest class, it is used IntentsTestRule that is a deprecated class. I corrected it using ActivityScenarioRule and Intents.init() and Intents.release() instead.

@google-cla google-cla bot added the cla: yes label May 3, 2021
@@ -41,13 +41,17 @@
import android.content.Intent;
import android.net.Uri;
import android.os.Build;

import androidx.test.espresso.core.internal.deps.guava.collect.Iterables;
Copy link
Collaborator

Choose a reason for hiding this comment

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

internal classes should not be used. The former com.google.common.collect.Iterables import is correct

@marcodallaba
Copy link
Contributor Author

@brettchabot got it. Anyway I think there's a missing dependency, since if I open the project I cannot resolve com.google.common.collect.Iterables

Maybe implementation("com.google.guava:guava:30.1.1-android") is missing in build.gradle?
Let me know if I have to add it.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants