Skip to content

Breaking change in cordova-android@15.0.0: renaming strings.xml to cdv_strings.xml #1922

Description

@AshleyScirra

Bug Report

In #1818 (feat!: add partial night & day theme support) the commit included a change to rename strings.xml in the generated Android Studio project to cdv_strings.xml. This appears to be an undocumented breaking change going from cordova-android@14.0.1 to cordova-android@15.0.0 and has broken one of our Cordova plugins. We have the following in our plugin.xml:

        <config-file target="res/values/strings.xml" parent="/resources">
            <string translatable="false" name="game_services_project_id">$APP_ID</string>
        </config-file>

This refers to a file named strings.xml specifically rather than cdv_strings.xml. To support cordova-android@15, we have to change the file name. To support both I guess we need to have the tag twice to specify both names. Presumably any other Cordova plugins that similarly target strings.xml, themes.xml or colors.xml will also be broken for the same reason.

Problem

What is expected to happen?

Preserve filenames of strings.xml et al. for backwards compatibility, or clearly document a breaking change.

What does actually happen?

Undocumented breaking change in cordova-android@15.0.0.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions