Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以在判断版本号的时候把 bundleId 加上? #388

Open
geng452654716 opened this issue Dec 16, 2021 · 3 comments
Open

是否可以在判断版本号的时候把 bundleId 加上? #388

geng452654716 opened this issue Dec 16, 2021 · 3 comments

Comments

@geng452654716
Copy link

geng452654716 commented Dec 16, 2021

目前版本信息如下:
{
versionName: '1.0.9',
buildTime: 'xxx',
appId: xxx,
appKey: 'xxx'
}

可否支持为
{
versionName: '1.0.9(2)', // 带bundleID 的版本号
buildTime: 'xxx',
appId: xxx,
appKey: 'xxx'
}

@sunnylqm
Copy link
Contributor

没看明白,你说的bundleId是指什么?是说ios的build版本号?这些信息与我们热更新的逻辑没有关联,所以我们不读取也不保存。你可以根据自己的业务需要使用react-native-device-info之类的库获取

@geng452654716
Copy link
Author

没看明白,你说的bundleId是指什么?是说ios的build版本号?这些信息与我们热更新的逻辑没有关联,所以我们无法读取也无法保存。你可以根据自己的业务需要使用react- native-device-info之类的库获取

image

ios 当前使用 CFBundleShortVersionString 字段来作为原生版本号packageVersion
可否可以使用 CFBundleShortVersionString + CFBundleVersion 来作为原生版本号?

@sunnylqm
Copy link
Contributor

sunnylqm commented Dec 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants