Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

ionic framework - How to have a non-integer version code display on Android

I am using ionic5 to to build an app, but I am struggling to figure out how I can set the version name to be a .dot release for both iOS and Android.

Although I am following the guidelines outlined in https://cordova.apache.org/docs/en/latest/config_ref/ I am still unable to get the dot release to show up in Android.

Below is the head of my config.xml

<widget android-versionName="001" id="abm.app.response" ios-CFBundleVersion="0.0.1" version="3.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

However, while it works on iOS, ... no matter what I try, I can't get the ".dot" version code to display on Android. See screenshots.

Any advice?

iOS vs Android version codes

question from:https://stackoverflow.com/questions/65913078/how-to-have-a-non-integer-version-code-display-on-android

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I figured this out myself. It seems that this cannot be done. I simply used a single integer value in the widget, and it worked.

<widget android-versionCode="1" id="abm.app.response" ios-CFBundleVersion="1" version="3.1" 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...