Skip to content

[BUG-android] Plugin does not escape special characters #9

@CatchABus

Description

@CatchABus

It seems that the plugin fails to escape special characters before generating android resources.
This is what we get for a percentage character used as a JSON key:

mobile/platforms/android/app/src/main/res/values/strings.xml: Resource and asset merger: '%' is not a valid resource name character

Execution failed for task ':app:mergeDebugResources'.
mobile/platforms/android/app/src/main/res/values/strings.xml: Error: '%' is not a valid resource name character

Unable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.

The @nativescript/localize plugin applies escaping without problems.

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