Skip to content

4664: Moved WelcomeActivity to ViewBinding #5063

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

Conversation

bosankus
Copy link
Contributor

@bosankus bosankus commented Oct 3, 2022

Fixes #4664

What changes did you make and why?

  • Issue: As per the information provided and work request on the ticket above, WelcomeActivity.java is currently using Butterknife to to inject views into Android components.
  • Solution: Hence migration was done by replacing butterknife with viewbinding, which is always null safe, type-safe and supports both Java and Kotlin.

@bosankus
Copy link
Contributor Author

bosankus commented Oct 9, 2022

Hi @psh ,
I need little help regarding error showing on WelcomeActivityUnitTest.kt file.
Run test step failed due to error on this file, and says below:

Screenshot 2022-10-09 at 7 11 07 AM

I made the changes as it says in these lines, but I kept getting error.

I tried to run other test classes , like AccountUtilUnitTest.kt and it have failes due to same problem -

Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)

Refer to the error image below please.
Screenshot 2022-10-09 at 7 08 21 AM

I can see one of your PR #4702 have been merged without any test class file changes.
Requesting help to fix/merge this PR

@bosankus
Copy link
Contributor Author

bosankus commented Oct 9, 2022

@dbrant Requesting to review this PR

@bosankus
Copy link
Contributor Author

Hi @psh Can you review this PR?

@nicolas-raoul nicolas-raoul merged commit 10b025c into commons-app:master Oct 29, 2022
@bosankus bosankus deleted the moved-welcome-activity-to-viewbinding branch October 29, 2022 08:53
nicolas-raoul pushed a commit that referenced this pull request Nov 2, 2022
* 4664: Moved WelcomeActivity to ViewBinding

* 4664: Removed non-null test on member variables
nicolas-raoul pushed a commit that referenced this pull request Nov 2, 2022
* 4664: Moved WelcomeActivity to ViewBinding

* 4664: Removed non-null test on member variables
nicolas-raoul pushed a commit that referenced this pull request Nov 2, 2022
* 4664: Moved WelcomeActivity to ViewBinding

* 4664: Removed non-null test on member variables
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.

Kotlin Android Extensions & Butterknife are deprecated
2 participants