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(cli): enable cleartext for live reload #7563

Merged
merged 5 commits into from
Jul 17, 2024
Merged

fix(cli): enable cleartext for live reload #7563

merged 5 commits into from
Jul 17, 2024

Conversation

jcesarmobile
Copy link
Member

This PR enables cleartext when using live reload by directly writing into the capacitor-cordova-android-plugins's AndroidManifest.xml, and removes it once the command is stopped.

It no longer overrides the original extConfig object but instead modifies the platform's capacitor.config.json after sync.

Added a TODO to remove editExtConfigForLiveReload since it's no longer being used.
Added a TODO to remove the last param of editCapConfigForLiveReload as it's not being used.
Didn't remove any of them at the moment as people could be using the CapLiveReloadHelper directly, so removing them is breaking.

I've put the process.on('SIGINT' inside a promise to prevent multiple calls, it was being called three times.

There is an alternate PR, but it requires users to declare the cleartext themselves and doesn't work if using the --no-sync option.

closes #7323
closes #7528

@markemer markemer merged commit e06648f into main Jul 17, 2024
6 checks passed
@markemer markemer deleted the RDMR-186 branch July 17, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Android Live Reload broken in Capacitor 5.7.2
3 participants