我如何在离子框架中分离app id和version [英] How can i separate app id and version in ionic framework

查看:127
本文介绍了我如何在离子框架中分离app id和version的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Android上使用离子框架启动了一个应用程序。

I had launched an application on Android with the ionic framework.

我将在iOS上启动应用程序。

And I will launch the app on iOS.

所以我想分别考虑iOS和Android的id和版本。

So I want to take iOS and android's id and version separately.

我的config.xml的顶部现在显示如下。

The top part of my config.xml is now shown below.

<?xml version='1.0' encoding='utf-8'?>
<widget id="myappid" version="1.0.9" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>myappname</name>

我可以单独分支这段代码吗?

Can I branch off this code separately?

谢谢

推荐答案

在你的< widget> 标签内 config.xml file你可以:

Inside the <widget> tag in your config.xml file You can:


  • 使用 android -packageName 设置android id值的属性

  • 使用 id 属性作为默认应用ID,所以此id将用于iOS平台

  • 使用 ios-CFBundleIdentifier ios代码属性版本

  • 使用 android-versionCode Android代码版本的属性

  • use android-packageName property to set android id value
  • use id property as default app id so this id will be used for iOS Platform
  • use ios-CFBundleIdentifier property for ios code Version
  • use android-versionCode property for android code version

这篇关于我如何在离子框架中分离app id和version的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆