Skip to content

Fix warnings about string resources 'without required default value' #2655

Closed
@domdomegg

Description

@domdomegg

Summary:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions