Search Unity

Android bundle code

Discussion in 'Unity Build Automation' started by Ejlersen, Apr 12, 2021.

  1. Ejlersen

    Ejlersen

    Joined:
    Apr 30, 2009
    Posts:
    11
    I'm having trouble setting PlayerSettings.Android.bundleVersionCode. I have two scenarios that I've tried:
    • Set to 1, then it will automatically increment in UCB
    • Set to 97, then it will use the value
    However, I want to set it from environment variables set on build configuration. So, if I have:
    • VERSION_BUNDLE_CODE: 98
    Then I read it, increment and set it again. However, then I either in the two scenarios get:
    • Ignored
    • "Will not override android bundleVersionCode" and ignored
    I do it by using the Pre-Export Method
    How would you do this?
     
    Last edited: Apr 12, 2021