V3 environment switching support

Cap v3’s big selling point was the ability to switch between environments (dev/prod/staging etc).

I’ve modified my config.ts to switch the bundle ID (appId) between com.example.app and com.example.app.dev. However when I run npx cap sync it doesn’t modify any of the bundle IDs in the android .java/xml or iOS pbxproj.

Does that mean that if you want to toggle environments in Cap v3 you still need to do everything manually like in v2?

For anyone else on this journey, here are the file paths you’ll need to modify if you are automating the environment or white-labelling switch:

// app name only
ios/App/App/Info.plist

// bundle id only
android/app/build.gradle
android/app/src/main/java/farm/hectare/silo/MainActivity.java
android/app/src/main/AndroidManifest.xml
ios/App/App.xcodeproj/project.pbxproj

// both
android/app/src/main/res/values/strings.xml