-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Robolectric 'application: Application!' is deprecated. Deprecated in Java #4671
Comments
Could you assign me this one? |
@bernabesc Sure, thanks :) |
Hi, |
@Asgardian8740 Thanks for your interest, currently this issue is already assigned. You can look for other open issues in the meantime :) @bernabesc Can you confirm if you are still working on this issue? |
If he has time go ahead and assign it to him, got stuck on another fix. Sorry for the inconvenience |
No worries, thanks for the prompt reply @bernabesc @Asgardian8740 you can pick this up if you like :) |
@madhurgupta10 @Asgardian8740 is this issue solved now? |
@glitched-sudhanshu Feel free to pick up this issue :) |
@madhurgupta10 I will surely have a look at it. |
Hi @nicolas-raoul Can I take this up? |
@glitched-sudhanshu Any progress on this? :-) @bhavanagarlapati Please take one issue at a time. Do not hesitate to come back to this one after sending a pull request for your currently assigned one. :-) |
Hi @nicolas-raoul, is there any update on this issue? Can I take it up if it is still available? |
@RitikaPahwa4444 It is yours, please let us know about your progress every few days, thanks! :-) |
Thank you @nicolas-raoul. I'll surely update my progress regularly :) |
Update: I have changed the deprecated RuntimeEnvironment.application to ApplicationProvider.getApplicationContext() in all the Robolectric test cases and optimised the imports accordingly. All the unit tests are showing "Passed" in Android Studio on running. I have pushed my changes here: |
@RitikaPahwa4444 I have not checked but would you mind sending a pull request? It is easier to comment on :-) |
I just wanted to reiterate the steps I had taken to confirm the requirements and update you about my progress here. I have created a pull request now :) |
Summary:
'application: Application!' is deprecated. Deprecated in Java
so we should useApplicationProvider.getApplicationContext()
in All Robolectric Unit TestsLink for help: https://stackoverflow.com/questions/52883747/robolectric-runtimeenvironment-application-is-deprecated-where-is-applicationpr
Would you like to work on the issue?
No
The text was updated successfully, but these errors were encountered: