From f24d9f2db67741c0451d23d846e02d3a88db1158 Mon Sep 17 00:00:00 2001 From: Pran Kishore Date: Tue, 9 Apr 2024 11:13:34 +0530 Subject: [PATCH] Update Project info Update Display name Update Application category type Update UI to display both the project version number and the build number Update the version number and build number --- animeal.xcodeproj/project.pbxproj | 16 ++++++++-------- animeal/src/App/AppInfo.swift | 4 ++++ .../More/Submodules/About/AboutModel.swift | 2 +- .../More/Submodules/About/AboutViewModel.swift | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/animeal.xcodeproj/project.pbxproj b/animeal.xcodeproj/project.pbxproj index 5bb9c7a5..273d6baa 100644 --- a/animeal.xcodeproj/project.pbxproj +++ b/animeal.xcodeproj/project.pbxproj @@ -3080,14 +3080,14 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "Apple Development: Pran Kishore (CM95PV92ZY)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 20240409; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 2JSLPH439W; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 2JSLPH439W; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = animeal/res/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = ""; - INFOPLIST_KEY_LSApplicationCategoryType = ""; + INFOPLIST_KEY_CFBundleDisplayName = Animeal; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.lifestyle"; INFOPLIST_KEY_NSCameraUsageDescription = "This app will use camera."; INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Your precise location is used to calculate turn-by-turn directions, show your location on the map, and help improve the map."; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Your precise location is used to calculate turn-by-turn directions, show your location on the map, and help improve the map."; @@ -3103,7 +3103,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.0.33; + MARKETING_VERSION = 1.0.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = com.epmedu.animealMobile; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -3123,13 +3123,13 @@ CODE_SIGN_IDENTITY = "Apple Distribution: Animals Project, NCLE (2JSLPH439W)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Distribution: Animals Project, NCLE (2JSLPH439W)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 20240409; DEVELOPMENT_TEAM = 2JSLPH439W; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 2JSLPH439W; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = animeal/res/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = ""; - INFOPLIST_KEY_LSApplicationCategoryType = ""; + INFOPLIST_KEY_CFBundleDisplayName = Animeal; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.lifestyle"; INFOPLIST_KEY_NSCameraUsageDescription = "This app will use camera."; INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Your precise location is used to calculate turn-by-turn directions, show your location on the map, and help improve the map."; INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Your precise location is used to calculate turn-by-turn directions, show your location on the map, and help improve the map."; @@ -3145,7 +3145,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.0.33; + MARKETING_VERSION = 1.0.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = com.epmedu.animealMobile; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/animeal/src/App/AppInfo.swift b/animeal/src/App/AppInfo.swift index 198cfeb4..7453c8a2 100644 --- a/animeal/src/App/AppInfo.swift +++ b/animeal/src/App/AppInfo.swift @@ -17,6 +17,10 @@ enum AppInfo { return Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? .empty } + static var appBuildNumber: String { + return Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? .empty + } + static var appStoreShareUrl: String { return "https://itunes.apple.com/us/app/iapps/id\(appId)?mt=8" } diff --git a/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutModel.swift b/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutModel.swift index d03ef47d..af52dc04 100644 --- a/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutModel.swift +++ b/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutModel.swift @@ -22,7 +22,7 @@ extension AboutModel { return AboutModel( contentText: "\(L10n.More.aboutContent)", links: AboutLink.allCases, - appVersion: "\(L10n.About.appVersion) \(AppInfo.appVersion)" + appVersion: "\(L10n.About.appVersion) \(AppInfo.appVersion) (\(AppInfo.appBuildNumber))" ) } } diff --git a/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutViewModel.swift b/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutViewModel.swift index 374acd18..ef49f2ff 100644 --- a/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutViewModel.swift +++ b/animeal/src/Flows/Main/Modules/More/Submodules/About/AboutViewModel.swift @@ -28,7 +28,7 @@ final class AboutViewModel: AboutViewModelLifeCycle, AboutViewInteraction, About func load() { model.links = AboutLink.allCases model.contentText = AboutModel.previewModel.contentText - model.appVersion = "\(L10n.About.appVersion) \(AppInfo.appVersion)" + model.appVersion = "\(L10n.About.appVersion) \(AppInfo.appVersion) (\(AppInfo.appBuildNumber))" } var observableModel: AboutModelProtocol {