Extra iOS and Android configuration fields to add Capacitor to existing native apps #5330
Kniniurb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to all,
We have existing native iOS / Android apps with project structures not matching the structure of the iOS and Android App Capacitor creates when calling
npx cap add android/ios
or similar. With a few changes to 'config.ts' and even fewer to 'ios/update.ts' and adding 1 field to the Android configuration:and 2 fields to the iOS configuration:
we were able to give Capacitor the flexibility we needed. After these changes we can apply the
npx cap sync
(or like we do for our NX mono repo:nx run {@}:sync:android
, where {@} is the project at hand) command and thenpx cap run
command for our iOS / Android apps.We hope this flexibility will help more developers when adding Capacitor to already existing apps.
Question is: Do you think this is a welcome change? And: Can we contribute our changes?
Beta Was this translation helpful? Give feedback.
All reactions