Setting native version numbers with capacitor?

With cordova, we could configure a few version numbers using attributes on the tag in config.xml:

<widget
  android-versionCode="1.0"
  ios-CFBundleVersion="1.0"
  version="1.0"
  >

How do we set those such that they make it over to the native project when capacitor is synced?

1 Like

Capacitor’s philosophy is to embrace the native project tooling and IDE’s instead of providing an abstracted config file like Cordova. As a general strategy, you’d search for “how to do X in Xcode?” or “… in Android Studio?”

For this question, setting Android version code, see here - most settings are configured in AndroidManifest.xml or the build.gradle.

For CGBundleVersion, it’s in Info.plist.