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): calculate padding of super.onCreate(savedInstanceState); line #6016

Merged
merged 2 commits into from Oct 21, 2022

Conversation

jcesarmobile
Copy link
Member

If super.onCreate(savedInstanceState); line has a different padding than the hardcoded one, the migrate command will fail to remove the line and will end up with it duplicated (see https://github.com/jcesarmobile/capacitor-migration-issue/pull/2/files)

This PR calculates the padding of the super.onCreate(savedInstanceState); line to use it on the string replacement so it works with any padding.

@jcesarmobile jcesarmobile merged commit 5729ac1 into main Oct 21, 2022
@jcesarmobile jcesarmobile deleted the calculate-padding branch October 21, 2022 17:18
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.

None yet

3 participants