Fix warnings about string resources 'without required default value'
See original GitHub issueSummary:
There are a bunch of warnings about string resources without the required default value (i.e. a fallback in strings.xml
). As these strings are not used throughout the app I think we should remove them.
The main benefit is that it’ll be easier to search for failures in the logs as the string resources have the text ‘failed’ in them which is annoying when going through Travis logs trying to find useful info.
Steps to reproduce:
Run a process manifest gradle task.
Logs:
> Task :app:processBetaReleaseManifest
warn: removing resource fr.free.nrw.commons.beta:string/contributions_subtitle without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/login_failed_password without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/login_failed_username without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/media_detail_media_title without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/multiple_uploads_title without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/preference_tracking without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/preference_tracking_summary without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/share_license_summary without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/starting_multiple_uploads without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/upload_image_problem_duplicate without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/uploads_pending_notification_indicator without required default value.
warn: removing resource fr.free.nrw.commons.beta:string/use_wikidata without required default value.
> Task :app:processProdDebugManifest
warn: removing resource fr.free.nrw.commons:string/contributions_subtitle without required default value.
warn: removing resource fr.free.nrw.commons:string/login_failed_password without required default value.
warn: removing resource fr.free.nrw.commons:string/login_failed_username without required default value.
warn: removing resource fr.free.nrw.commons:string/media_detail_media_title without required default value.
warn: removing resource fr.free.nrw.commons:string/multiple_uploads_title without required default value.
warn: removing resource fr.free.nrw.commons:string/preference_tracking without required default value.
warn: removing resource fr.free.nrw.commons:string/preference_tracking_summary without required default value.
warn: removing resource fr.free.nrw.commons:string/share_license_summary without required default value.
warn: removing resource fr.free.nrw.commons:string/starting_multiple_uploads without required default value.
warn: removing resource fr.free.nrw.commons:string/upload_image_problem_duplicate without required default value.
warn: removing resource fr.free.nrw.commons:string/uploads_pending_notification_indicator without required default value.
warn: removing resource fr.free.nrw.commons:string/use_wikidata without required default value.
Would you like to work on the issue?
No, but I would be happy to review.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Android gradle disable removing resources without default value
Android resource linking failed Output: warn: removing resource com.myproject:string/menu_item_copy without required default value.
Read more >tools:locale="en" does not remove warnings [142590628]
The thing is that there is no issue to fix. The string is not translated to 'en-rGB' and this is fine because there...
Read more >Android resource linking failed - April Brother
Android resource linking failed Output: warn: removing resource com.aprbrother.aprilbeacondemos:string/advinterval without required default ...
Read more >String resources | Android Developers
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources ...
Read more >res/values/strings.xml - platform/packages/apps/Settings
<string name="sdcard_unmount" product="default">Unmount SD card</string>. <!-- Used for diagnostic info screens, precise translation isn't needed.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think these are in master. e.g.
login_failed_username
is present in values-af/strings.xml@domdomegg I have raised a PR for this here. Kindly review 😃