Coder Social home page Coder Social logo

unable to increase app version about eas-cli HOT 1 CLOSED

debo1402 avatar debo1402 commented on September 27, 2024
unable to increase app version

from eas-cli.

Comments (1)

szdziedzic avatar szdziedzic commented on September 27, 2024

Hi,

If you are on a bare workflow (you have ios and android directories with native code) and you don't use the autoIncrement option, the source of truth is the version stored in the native code (CFBundleVersion + CFBundleShortVersionString for iOS and versionName + versionCode for Android). These values have higher priority than the version + ios.buildNumber + android.versionCode fields from app.json. They have the higher priority because they are the true version source for App Store and Play Store. We don't update them for you if you have the "autoIncrement": false option chosen, so we don't make unwanted changes to your native code.

However setting "autoIncrement": true in your build profile, makes EAS CLI responsible for your version management. If this option is enabled EAS Build will bump your ios.buildNumber and android.versionCode on each build and these values + the main version from app.json with your native code as well. I recommend using this setting in conjunction with remote version management ({ "cli": { "appVersionSource": "remote" } }).

If you don't wish to use autoIncrement you can either:

  1. Update the version manually (this means you would also need to update the CFBundleVersion + CFBundleShortVersionString for iOS and versionName + versionCode for Android when you are on bare workflow)
  2. Sync them by using the npx expo prebuild if you use CNG

from eas-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.