Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you update the iOS & Android app version in Ionic w/ Capacitor?

Tags:

I am developing an app using Ionic and Capacitor. Builds are generated using Ionic's new AppFlow service, so I don't build them locally.

How do I go about updating the iOS and Android version numbers? I've tried updating the plist and config.xml, but all updates result in a version number of "1.0", regardless of what I do.

like image 848
Bryant James Avatar asked Oct 05 '19 22:10

Bryant James


People also ask

How to update to iOS 16 on iPhone 11?

Install iOS 16Go to Settings > General > Software Update. Tap Install Now.


2 Answers

So, Capacitor is neat! The android and ios configs are actually committed to source control. To update version number, simply update the following files:

  • Android - android/app/build.gradle (you're looking for the versionName variable)
  • iOS - ios/App/App/Info.plist *(you're looking for the CFBundleShortVersionString key)
like image 197
Bryant James Avatar answered Sep 19 '22 13:09

Bryant James


In Android Studio 4.2.1 We can set version values in File > Project Structure > Modules > Default Config

enter image description here

like image 40
rashidnk Avatar answered Sep 21 '22 13:09

rashidnk