【问题标题】:When building React Native for iOS or Android using Visual Studio App Center, how do you use the Build Number as part of the App Version number?使用 Visual Studio App Center 为 iOS 或 Android 构建 React Native 时,如何使用 Build Number 作为 App Version number 的一部分?
【发布时间】:2019-11-13 00:08:08
【问题描述】:

在使用 Visual Studio App Center 为 iOS 或 Android 构建 React Native 时,如何使用 Build Number 作为 App 版本号的一部分?例如:Major.Minor.Build 其中 Major 和 Minor 由开发团队配置,而 Build 由 App Center 提供。

【问题讨论】:

  • 这里的新方法...在 iOS Build 中有 CFBundleShortVersionString(例如:1.2.10)和 CFBundeVersion(例如:13)和 Android Build 中有 versionName(例如:1.2.10)和versionCode(例如:13)。 CFBundleVersionversionCode 是 AppCenter 在构建时增加的值。我将使用CFBundleShortVersionStringversionName 作为代码中管理的Release Family(例如:#.#),并让AppCenter 管理CFBundleVersionversionCode 作为正确的内部版本号。这将允许版本在不同商店之间保持相同,但构建不同..

标签: react-native visual-studio-app-center


【解决方案1】:

这里的新方法...在 iOS Build 中有 CFBundleShortVersionString(例如:1.2.10)和 CFBundeVersion(例如:13)和 Android Build 中有 versionName(例如:1.2.10 )和versionCode(例如:13)。

CFBundleVersionversionCode 是 AppCenter 在构建时增加的值。我将使用CFBundleShortVersionStringversionName 作为代码中管理的Release Family(例如:#.#),并让AppCenter 管理CFBundleVersionversionCode 作为正确的内部版本号。

这将允许各个商店的版本保持不变,但构建版本不同

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-23
    • 2020-11-14
    • 1970-01-01
    • 2015-06-05
    • 1970-01-01
    • 1970-01-01
    • 2021-10-18
    相关资源
    最近更新 更多