From e27fa3ae17ec7b7276544f7bd64d0f33241cdfb8 Mon Sep 17 00:00:00 2001 From: Abu Taher Date: Thu, 16 Nov 2023 19:00:39 +0700 Subject: [PATCH] [#519] Updae configuration --- {PROJECT_NAME}/Configurations/Plists/Info.plist | 2 +- .../Configurations/XCConfigs/DebugProduction.xcconfig | 1 + {PROJECT_NAME}/Configurations/XCConfigs/DebugStaging.xcconfig | 3 ++- .../Configurations/XCConfigs/ReleaseProduction.xcconfig | 1 + .../Configurations/XCConfigs/ReleaseStaging.xcconfig | 3 ++- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/{PROJECT_NAME}/Configurations/Plists/Info.plist b/{PROJECT_NAME}/Configurations/Plists/Info.plist index b18749da..8913a934 100644 --- a/{PROJECT_NAME}/Configurations/Plists/Info.plist +++ b/{PROJECT_NAME}/Configurations/Plists/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - $(PRODUCT_NAME) + $(APP_DISPLAY_NAME) CFBundlePackageType APPL CFBundleShortVersionString diff --git a/{PROJECT_NAME}/Configurations/XCConfigs/DebugProduction.xcconfig b/{PROJECT_NAME}/Configurations/XCConfigs/DebugProduction.xcconfig index 80622ed9..3bf77958 100644 --- a/{PROJECT_NAME}/Configurations/XCConfigs/DebugProduction.xcconfig +++ b/{PROJECT_NAME}/Configurations/XCConfigs/DebugProduction.xcconfig @@ -7,6 +7,7 @@ ONLY_ACTIVE_ARCH = YES SWIFT_OPTIMIZATION_LEVEL = -Onone GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 PRODUCTION=1 +APP_DISPLAY_NAME = $(TARGET_NAME) PRODUCT_NAME = $(TARGET_NAME) PRODUCT_BUNDLE_IDENTIFIER = {BUNDLE_ID_PRODUCTION} SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG PRODUCTION diff --git a/{PROJECT_NAME}/Configurations/XCConfigs/DebugStaging.xcconfig b/{PROJECT_NAME}/Configurations/XCConfigs/DebugStaging.xcconfig index ee4be644..6a788e8c 100644 --- a/{PROJECT_NAME}/Configurations/XCConfigs/DebugStaging.xcconfig +++ b/{PROJECT_NAME}/Configurations/XCConfigs/DebugStaging.xcconfig @@ -7,7 +7,8 @@ ONLY_ACTIVE_ARCH = YES SWIFT_OPTIMIZATION_LEVEL = -Onone GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 STAGING=1 -PRODUCT_NAME = $(TARGET_NAME) Staging +APP_DISPLAY_NAME = $(TARGET_NAME) Staging +PRODUCT_NAME = $(TARGET_NAME) PRODUCT_BUNDLE_IDENTIFIER = {BUNDLE_ID_STAGING} SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG STAGING OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -warn-long-expression-type-checking=300 -Xfrontend -warn-long-function-bodies=300 diff --git a/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseProduction.xcconfig b/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseProduction.xcconfig index 227a6cc4..1dd4dd23 100644 --- a/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseProduction.xcconfig +++ b/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseProduction.xcconfig @@ -6,6 +6,7 @@ SWIFT_OPTIMIZATION_LEVEL = -O ENABLE_BITCODE = NO GCC_PREPROCESSOR_DEFINITIONS = $(inherited) PRODUCTION=1 +APP_DISPLAY_NAME = $(TARGET_NAME) PRODUCT_NAME = $(TARGET_NAME) PRODUCT_BUNDLE_IDENTIFIER = {BUNDLE_ID_PRODUCTION} SWIFT_ACTIVE_COMPILATION_CONDITIONS = PRODUCTION RELEASE diff --git a/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseStaging.xcconfig b/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseStaging.xcconfig index 27daeaea..b0473f12 100644 --- a/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseStaging.xcconfig +++ b/{PROJECT_NAME}/Configurations/XCConfigs/ReleaseStaging.xcconfig @@ -7,6 +7,7 @@ ENABLE_BITCODE = NO ENABLE_BITCODE = NO GCC_PREPROCESSOR_DEFINITIONS = $(inherited) STAGING=1 -PRODUCT_NAME = $(TARGET_NAME) Staging +APP_DISPLAY_NAME = $(TARGET_NAME) Staging +PRODUCT_NAME = $(TARGET_NAME) PRODUCT_BUNDLE_IDENTIFIER = {BUNDLE_ID_STAGING} SWIFT_ACTIVE_COMPILATION_CONDITIONS = STAGING RELEASE