Skip to content

Submit to google play store not working after adding the lib #46

@wcastand

Description

@wcastand

I managed to build my app after the latest release that fixed the duplication of Stripe and RN-wallet component name but when i get to the submit phase, it seems to work fine on IOS but on android i get this error:

Preparing aab at path '/tmp/submissions/2c656bd5-9026-4f72-aed3-21ef53086d13/application_a4ef5087_be84_40f4_bbc6_1ea2fdbfea43.aab' for upload...
Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh. - Retrying...
Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh. - Retrying...
Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh. - Retrying...
Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh. - Retrying...
Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh. - Retrying...
[!] Google Api Error: Invalid request - The bundle targets unrecognized languages: by, cz, dk, fl, fp, gr, jp, kh.
Fastlane supply failed
We couldn't figure out what went wrong. See logs to learn more.

Failed to submit the app to the store

it's pretty much the only change that i see impacting this is this lib, any idea what is the solution?

Our app doesn't support all those languages so not sure from where they come from :/

expo: 53.0.22
rn-wallet: ^0.1.10

Obviously it's copilot saying it so can't 100% certain but seems to match what i expected and saw from the submission.

Yes, you've identified the exact problem! The @expensify/react-native-wallet library version 0.1.10 contains Android drawable resource folders with invalid language codes:

drawable-by (should be for Belarus but uses country code instead of language code be)
drawable-cz (should be drawable-cs for Czech language)
drawable-dk (should be drawable-da for Danish language)
drawable-fl (not a valid language/country code)
drawable-fp (not a valid language/country code)
drawable-gr (should be drawable-el for Greek language)
drawable-jp (should be drawable-ja for Japanese language)
drawable-kh (should be drawable-km for Khmer/Cambodian language)
These drawable directories are being interpreted by the Android build system as locale-specific resources, which Google Play Store then rejects because the language codes don't follow ISO 639-1 standards.

This is a bug in the @expensify/react-native-wallet library where they're using country codes instead of proper language codes, or using completely invalid codes like fl and fp.

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