Where to set the version code in a Ionic/Capacitor app?

Hi,
I’m trying to upload the second version of an app on GooglePlay.

With Cordova the version was in the file config.xml.

With Capacitor in which file should I put the version code?
I thought it was package.json, but it isn’t because GooglePlay says that the app I’m trying to upload has the same version code of the previous.

Thank you very much

cld

I don’t know if it is right but I changed in the file:
\android\app\build.gradle

the lines:

versionCode 2
versionName "1.0.2"

Now I’ve done the upload.
Isn’t there a way to change the version of the app in the Ionic environment?

cld

Unless there’s newer guidance than this, I think you did it properly.