-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Moved hardcoded URLs to a constant file Fixed #2850 #2851
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
Codecov Report
@@ Coverage Diff @@
## master #2851 +/- ##
=========================================
+ Coverage 3.64% 3.69% +0.04%
=========================================
Files 244 247 +3
Lines 12190 12217 +27
Branches 1078 1083 +5
=========================================
+ Hits 444 451 +7
- Misses 11712 11732 +20
Partials 34 34
Continue to review full report at Codecov.
|
nicolas-raoul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not tested but looks good to me.
|
@maskaravivek changes made as per the discussion |
| static final String CREDITS_URL = "https://github.com/commons-app/apps-android-commons/blob/master/CREDITS"; | ||
| static final String FAQ_URL = "https://github.com/commons-app/apps-android-commons/wiki/Frequently-Asked-Questions"; | ||
| static final String PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=fr.free.nrw.commons"; | ||
| static final String TRANSLATE_WIKI_URL = "https://translatewiki.net/w/i.php?title=Special:Translate&group=commons-android-public static final Strings&filter=%21translated&action=translate&language="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string seems problematic, can you verify @madhurgupta10 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neslihanturan Fixed. Sorry for the Typo, I used "find and replace" from the android studio and did not notice, this also got changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find and replace is quite risky:)
Description
Moved the hardcoded URLs to a constant file so that the code is easier to maintain, also it removed the duplicate strings :)
Fixes #2850 Moving URLs from About Activity to build.gradle
Tests performed
Tested betaDebug on Xiaomi Mi A1 with API level 28 stock android.