Skip to content

Allow free choice of different display name as per the custom variant #237

@dileepZion

Description

@dileepZion

Background

  • If it is an enhancement of an existing feature, describe which feature and how it works at the moment.
  • Currently the V_APP_NAME as per the tool, works to change the Bundle name(Target name) and also the Bundle Display name.
    Hence it is not possible to use only V_APP_NAME or app_name as a parameter to switch to different names of the app.
    Currently when I have gone through the code, here is the below way to update the info.plist
    In XCConfigFactory, updateInfoPlist method has below code:
Bash("plutil", arguments: "-replace", "CFBundleName", "-string", "$(V_APP_NAME)", configFilePath),
Bash("plutil", arguments: "-replace", "CFBundleDisplayName", "-string", "$(V_APP_NAME)", configFilePath),
Bash("plutil", arguments: "-replace", "CFBundleExecutable", "-string", "$(V_APP_NAME)", configFilePath),

Solution

It is good if we only give the V_APP_NAME to CFBundleName and CFBundleExecutable and allow the user to change CFBundleDisplayName according to their own requirement. Like,
Dev -> APP_NAME_DEV
QA -> APP_NAME_QA
UAT -> APP_NAME_UAT

Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions