mentorship-android
mentorship-android copied to clipboard
refactor: replace hardcoded strings
Description
Replaced hardcoded strings with the strings in string.xml. Those from test classes, constants are left unchanged.
Fixes #757
Type of Change:
- Code
- Quality Assurance
Code/Quality Assurance Only
- Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
- Code was analyzed using option "Run inspection by name" with both the options: Hardcoded texts & Hardcoded strings.
Checklist:
- [x] My PR follows the style guidelines of this project
- [x] I have performed a self-review of my own code or materials
- [x] Any dependent changes have been merged
Code/Quality Assurance Only
- [x] My changes generate no new warnings
- [x] New and existing unit tests pass locally with my changes
pushed fixed commit, except the spotless check on the activity. I did not made any changes there.
@isabelcosta please approve the workflow run.
pushed fixed commit, except the spotless check on the activity. I did not made any changes there.
Are you sure you've pushed it? I can only see the two commits from earlier.
Yes I have checked, the push got rejected. Working on it.
@epicadk Pushed a commit. Can you check and suggest?
@epicadk Can you check once?
@isabelcosta can this be merged?
@vj-codes @devkapilbansal
@epicadk Can you check once?
Waiting for isabel to approve workflow. However I still see some wildcard imports so the spotless check could fail.
@bosankus could you please address the merge conflicts? It should be a straightforward resolution. It's because of a recent merge that involved changing package names.
@epicadk @isabelcosta Can you check the latest commit kindly ?
Also the spotless check is failing please run spotless using ./gradlew spotlessApply
@epicadk @isabelcosta All checks are passed in the recent commit I pushed. Can it be merged?
@isabelcosta Can you kindly give review?
@isabelcosta quotes removed and changes done. Waiting for your approval.
It would be amazing if anyone could test this PR - by testing, I mean downloading the apk for this PR and making sure there are no weird behaviors coming out of this. Testing out areas where these strings that were refactored affect it.
@isabelcosta I can do the testing the way you said. Can you provide the testing credentials to enter the app? Or do I need to register?
Also can I move to other issues? @isabelcosta @isabelcosta
@bosankus you can move to other issues. Usually, we prefer someone other than the author of the issue to do the testing.
For whoever tests this, the credentials are shared on zulip here: https://anitab-org.zulipchat.com/#narrow/stream/223071-newcomers/topic/Questions/near/258734796
@bosankus you can move to other issues. Usually, we prefer someone other than the author of the issue to do the testing.
For whoever tests this, the credentials are shared on zulip here: https://anitab-org.zulipchat.com/#narrow/stream/223071-newcomers/topic/Questions/near/258734796
Thanks.. Copy that.
@devkapilbansal & @vj-codes Can you kindly approve?
@bosankus I'll test it soon and add my review 🚀