diff --git a/apps/swift-ios/Features/Settings/SettingsView.swift b/apps/swift-ios/Features/Settings/SettingsView.swift index d4eedf96ca..d733108ccd 100644 --- a/apps/swift-ios/Features/Settings/SettingsView.swift +++ b/apps/swift-ios/Features/Settings/SettingsView.swift @@ -225,12 +225,17 @@ public struct SettingsView: View { private var aboutSection: some View { Section("About") { - LabeledContent("App", value: "T3 Code (SwiftUI)") + LabeledContent("App", value: appDisplayName) LabeledContent("Platform", value: "Native SwiftUI") Link("Open source", destination: URL(string: "https://github.com/pingdotgg/t3code")!) } } + private var appDisplayName: String { + Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String + ?? "T3 Code SwiftUI" + } + private var deviceManager: any FeatureDeviceManaging { (model.client as? any FeatureDeviceManaging) ?? EmptyFeatureDeviceManager.shared } diff --git a/apps/swift-ios/README.md b/apps/swift-ios/README.md index 09cde68bd0..6c3ffe958e 100644 --- a/apps/swift-ios/README.md +++ b/apps/swift-ios/README.md @@ -81,10 +81,10 @@ pairing. Supply settings on the `xcodebuild` command line or through a local Debug and Release use separate identities so a local build can remain installed beside TestFlight: -| Configuration | Display name | Bundle identifier | URL scheme | -| ------------- | --------------------- | -------------------------------- | -------------------- | -| Debug | T3 Code (SwiftUI Dev) | `com.t3tools.t3code.swiftui.dev` | `t3code-swiftui-dev` | -| Release | T3 Code (SwiftUI) | `com.t3tools.t3code.swiftui` | `t3code-swiftui` | +| Configuration | Display name | Bundle identifier | URL scheme | +| ------------- | --------------- | -------------------------------- | -------------------- | +| Debug | T3 Swift Dev | `com.t3tools.t3code.swiftui.dev` | `t3code-swiftui-dev` | +| Release | T3 Code SwiftUI | `com.t3tools.t3code.swiftui` | `t3code-swiftui` | Each identity also has matching widget and share-extension bundle identifiers and a separate App Group. Debug data and credentials therefore do not alter the diff --git a/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/AppIconDev-1024.png b/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/AppIconDev-1024.png new file mode 100644 index 0000000000..bd1b6801ec Binary files /dev/null and b/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/AppIconDev-1024.png differ diff --git a/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json b/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json new file mode 100644 index 0000000000..7a0f3a7415 --- /dev/null +++ b/apps/swift-ios/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images": [ + { + "filename": "AppIconDev-1024.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +} diff --git a/apps/swift-ios/T3Code.xcodeproj/project.pbxproj b/apps/swift-ios/T3Code.xcodeproj/project.pbxproj index 6f8da84a22..5a9c68d059 100644 --- a/apps/swift-ios/T3Code.xcodeproj/project.pbxproj +++ b/apps/swift-ios/T3Code.xcodeproj/project.pbxproj @@ -599,7 +599,7 @@ isa = XCBuildConfiguration; buildSettings = { APS_ENVIRONMENT = development; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDev; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Extensions/Shared/T3Code.entitlements; CODE_SIGN_STYLE = Automatic; @@ -607,7 +607,7 @@ ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Resources/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "T3 Code Dev"; + INFOPLIST_KEY_CFBundleDisplayName = "T3 Swift Dev"; INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_NSAppTransportSecurity_NSAllowsArbitraryLoads = YES; @@ -746,7 +746,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; T3CODE_APP_GROUP_IDENTIFIER = group.com.t3tools.t3code.swiftui.dev; - T3CODE_WIDGET_DISPLAY_NAME = "T3 Code Dev Widgets"; + T3CODE_WIDGET_DISPLAY_NAME = "T3 Swift Dev Widgets"; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -810,7 +810,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; T3CODE_APP_GROUP_IDENTIFIER = group.com.t3tools.t3code.swiftui.dev; - T3CODE_SHARE_DISPLAY_NAME = "T3 Code (SwiftUI Dev)"; + T3CODE_SHARE_DISPLAY_NAME = "T3 Swift Dev"; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug;