Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use AndroidManifest.xml for older RN versions #431

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

satya164
Copy link
Member

@satya164 satya164 commented Aug 1, 2023

Summary

The React Native CLI relies on the filename AndroidManifest.xml to be able parse the package name. But we were using AndroidManifestLegacy.xml instead which broke the lib for older RN versions (AGP 7). This change makes it so that we use AndroidManifest.xml for older RN versions and AndroidManifestNew.xml for newer RN versions.

Fixes #429

Test plan

  • Create an app with RN 0.68 and install the library without these changes - see that yarn android fails
  • Create an app with RN 0.68 and install the library with these changes - see that yarn android succeeds
  • Create an app with latest RN and install the library with these changes - see that yarn android succeeds

The React Native CLI relies on the filename `AndroidManifest.xml` to be able parse the package name.
But we were using `AndroidManifestLegacy.xml` instead which broke the lib for older RN versions (AGP 7).
This change makes it so that we use `AndroidManifest.xml` for older RN versions and `AndroidManifestNew.xml` for newer RN
versions.

Fixes #429
@satya164 satya164 merged commit ace6101 into main Aug 1, 2023
31 of 32 checks passed
@satya164 satya164 deleted the @satya164/agp-8 branch August 1, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants