[英]Cordova: How to set Platform-specific config.xml file which is not overwritten after cordova build?
[英]PhoneGap: How to set Build and Version Property in Config.xml for iOS?
iOS應用程序的版本和內部版本號。 當我使用PhoneGap / Cordova項目的config.xml時,我可以設置
<widget id="bundlename" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
此屬性將版本和構建設置為1.1.0。
有沒有辦法在config.xml中單獨設置版本和內部版本號?
<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
</widget>
<!-- Android -->
<widget versionCode="0.1.3">
</widget>
<!-- iOS -->
<widget CFBundleVersion="0.1.3">
</widget>
<!-- Windows -->
<widget packageVersion="0.1.3">
</widget>
來自https://cordova.apache.org/docs/en/dev/config_ref/index.html#widget 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.