From a01b8552ffd2d3b50e2bef12b44d29d463298698 Mon Sep 17 00:00:00 2001 From: ElectricS01 <103579308+ElectricS01@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:25:16 +1100 Subject: [PATCH] Fix naming on iOS --- TPU_Mac.xcodeproj/project.pbxproj | 8 ++++---- TPU_Mac/ContentView.swift | 4 ++-- TPU_Mac/HomeView.swift | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TPU_Mac.xcodeproj/project.pbxproj b/TPU_Mac.xcodeproj/project.pbxproj index e8bc2a3..e292f1e 100644 --- a/TPU_Mac.xcodeproj/project.pbxproj +++ b/TPU_Mac.xcodeproj/project.pbxproj @@ -497,14 +497,14 @@ CODE_SIGN_ENTITLEMENTS = TPU_Mac/TPU_Mac.entitlements; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 3; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"TPU_Mac/Preview Content\""; DEVELOPMENT_TEAM = PK36GR28A7; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_CFBundleDisplayName = "TPU Mac"; + INFOPLIST_KEY_CFBundleDisplayName = "TPU Dev"; "INFOPLIST_KEY_CFBundleDisplayName[sdk=iphoneos*]" = "TPU iOS"; "INFOPLIST_KEY_CFBundleDisplayName[sdk=macosx*]" = "TPU Mac"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; @@ -540,14 +540,14 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = TPU_Mac/TPU_Mac.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 3; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"TPU_Mac/Preview Content\""; DEVELOPMENT_TEAM = PK36GR28A7; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_CFBundleDisplayName = "TPU Mac"; + INFOPLIST_KEY_CFBundleDisplayName = "TPU Swift"; "INFOPLIST_KEY_CFBundleDisplayName[sdk=iphoneos*]" = "TPU iOS"; "INFOPLIST_KEY_CFBundleDisplayName[sdk=macosx*]" = "TPU Mac"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; diff --git a/TPU_Mac/ContentView.swift b/TPU_Mac/ContentView.swift index 70aebdf..17ad8d3 100644 --- a/TPU_Mac/ContentView.swift +++ b/TPU_Mac/ContentView.swift @@ -252,7 +252,7 @@ struct SettingsView: View { Text("Coming soon") #else Text("TPU iOS").font(.system(size: 32, weight: .semibold)) - Text("Version " + (Bundle.main.infoDictionary?[kCFBundleVersionKey as String] as? String ?? "") + " (17/10/2024)") + Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (18/10/2024)") Text("Made by ElectricS01") Text("[Give it a Star on GitHub](https://github.com/ElectricS01/TPU-Mac)") #endif @@ -272,7 +272,7 @@ struct AboutView: View { Text("About") .navigationTitle("About") Text("TPU Mac").font(.system(size: 32, weight: .semibold)) - Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (17/10/2024)") + Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (18/10/2024)") Text("Made by ElectricS01") Text("[Give it a Star on GitHub](https://github.com/ElectricS01/TPU-Mac)") } diff --git a/TPU_Mac/HomeView.swift b/TPU_Mac/HomeView.swift index 5511922..0be4dc8 100644 --- a/TPU_Mac/HomeView.swift +++ b/TPU_Mac/HomeView.swift @@ -31,7 +31,7 @@ struct HomeView: View { VStack { VStack { Text("Welcome to").navigationTitle("Home") - Text(Bundle.main.infoDictionary?[kCFBundleNameKey as String] as? String ?? "").font(.system(size: 32, weight: .semibold)) + Text(Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? "").font(.system(size: 32, weight: .semibold)) }.frame(maxHeight: .infinity) VStack { Text("Announcments").font(.system(size: 24, weight: .semibold))