Skip to content

Commit a87d738

Browse files
committed
ios-app: change app display name
1 parent ef7749c commit a87d738

File tree

7 files changed

+37
-25
lines changed

7 files changed

+37
-25
lines changed

app-ios/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ xcpretty:
2525
# Build the project
2626
build:
2727
@echo "Building project..."
28-
xcodebuild -scheme app-ios -sdk iphonesimulator -configuration Debug build
28+
xcodebuild -scheme "Overlord Dashboard" -sdk iphonesimulator -configuration Debug build
2929

3030
# Clean the project
3131
clean:
3232
@echo "Cleaning project..."
33-
xcodebuild -scheme app-ios clean
33+
xcodebuild -scheme "Overlord Dashboard" clean
3434
rm -rf build/
3535
rm -rf DerivedData/
3636

@@ -51,23 +51,23 @@ test: test-ios
5151
test-ios: xcpretty
5252
@echo "Running tests on iOS simulator..."
5353
@if command -v xcpretty >/dev/null; then \
54-
xcodebuild test -scheme app-ios -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests | xcpretty || \
54+
xcodebuild test -scheme "Overlord Dashboard" -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests | xcpretty || \
5555
echo "Error: Could not run tests on iPhone 16 Pro Max simulator. Please ensure it is available."; \
5656
else \
5757
echo "xcpretty not available, running with standard output..."; \
58-
xcodebuild test -scheme app-ios -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests || \
58+
xcodebuild test -scheme "Overlord Dashboard" -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests || \
5959
echo "Error: Could not run tests on iPhone 16 Pro Max simulator. Please ensure it is available."; \
6060
fi
6161

6262
# Run UI tests (requires iOS simulator)
6363
test-ui: xcpretty
6464
@echo "Running UI tests on iOS simulator..."
6565
@if command -v xcpretty >/dev/null; then \
66-
xcodebuild test -scheme app-ios -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosUITests | xcpretty || \
66+
xcodebuild test -scheme "Overlord Dashboard" -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosUITests | xcpretty || \
6767
echo "Error: Could not run UI tests on iPhone 16 Pro Max simulator. Please ensure it is available."; \
6868
else \
6969
echo "xcpretty not available, running with standard output..."; \
70-
xcodebuild test -scheme app-ios -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosUITests || \
70+
xcodebuild test -scheme "Overlord Dashboard" -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosUITests || \
7171
echo "Error: Could not run UI tests on iPhone 16 Pro Max simulator. Please ensure it is available."; \
7272
fi
7373

@@ -78,4 +78,4 @@ test-all: test-ios test-ui
7878
# Run tests with verbose output
7979
test-verbose:
8080
@echo "Running tests with verbose output..."
81-
xcodebuild test -scheme app-ios -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests
81+
xcodebuild test -scheme "Overlord Dashboard" -destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' -only-testing:app-iosTests

app-ios/app-ios.xcodeproj/project.pbxproj

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/* End PBXContainerItemProxy section */
2929

3030
/* Begin PBXFileReference section */
31-
3A4870402D7AC17500AC952B /* app-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "app-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
31+
3A4870402D7AC17500AC952B /* app-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "app-ios.app"; path = "Overlord Dashboard.app"; sourceTree = BUILT_PRODUCTS_DIR; };
3232
3A4870512D7AC17600AC952B /* app-iosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "app-iosTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
3333
3A48705B2D7AC17600AC952B /* app-iosUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "app-iosUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
3434
/* End PBXFileReference section */
@@ -100,9 +100,9 @@
100100
/* End PBXGroup section */
101101

102102
/* Begin PBXNativeTarget section */
103-
3A48703F2D7AC17500AC952B /* app-ios */ = {
103+
3A48703F2D7AC17500AC952B /* Overlord Dashboard */ = {
104104
isa = PBXNativeTarget;
105-
buildConfigurationList = 3A4870652D7AC17600AC952B /* Build configuration list for PBXNativeTarget "app-ios" */;
105+
buildConfigurationList = 3A4870652D7AC17600AC952B /* Build configuration list for PBXNativeTarget "Overlord Dashboard" */;
106106
buildPhases = (
107107
3A48703C2D7AC17500AC952B /* Sources */,
108108
3A48703D2D7AC17500AC952B /* Frameworks */,
@@ -115,11 +115,11 @@
115115
fileSystemSynchronizedGroups = (
116116
3A4870422D7AC17500AC952B /* app-ios */,
117117
);
118-
name = "app-ios";
118+
name = "Overlord Dashboard";
119119
packageProductDependencies = (
120120
3A4870712D7AC17600AC952B /* SwiftTerm */,
121121
);
122-
productName = "app-ios";
122+
productName = "Overlord Dashboard";
123123
productReference = 3A4870402D7AC17500AC952B /* app-ios.app */;
124124
productType = "com.apple.product-type.application";
125125
};
@@ -209,7 +209,7 @@
209209
projectDirPath = "";
210210
projectRoot = "";
211211
targets = (
212-
3A48703F2D7AC17500AC952B /* app-ios */,
212+
3A48703F2D7AC17500AC952B /* Overlord Dashboard */,
213213
3A4870502D7AC17600AC952B /* app-iosTests */,
214214
3A48705A2D7AC17600AC952B /* app-iosUITests */,
215215
);
@@ -267,12 +267,12 @@
267267
/* Begin PBXTargetDependency section */
268268
3A4870532D7AC17600AC952B /* PBXTargetDependency */ = {
269269
isa = PBXTargetDependency;
270-
target = 3A48703F2D7AC17500AC952B /* app-ios */;
270+
target = 3A48703F2D7AC17500AC952B /* Overlord Dashboard */;
271271
targetProxy = 3A4870522D7AC17600AC952B /* PBXContainerItemProxy */;
272272
};
273273
3A48705D2D7AC17600AC952B /* PBXTargetDependency */ = {
274274
isa = PBXTargetDependency;
275-
target = 3A48703F2D7AC17500AC952B /* app-ios */;
275+
target = 3A48703F2D7AC17500AC952B /* Overlord Dashboard */;
276276
targetProxy = 3A48705C2D7AC17600AC952B /* PBXContainerItemProxy */;
277277
};
278278
/* End PBXTargetDependency section */
@@ -405,6 +405,7 @@
405405
ENABLE_HARDENED_RUNTIME = YES;
406406
ENABLE_PREVIEWS = YES;
407407
GENERATE_INFOPLIST_FILE = YES;
408+
INFOPLIST_KEY_CFBundleDisplayName = "Overlord Dashboard";
408409
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
409410
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
410411
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
@@ -444,6 +445,7 @@
444445
ENABLE_HARDENED_RUNTIME = YES;
445446
ENABLE_PREVIEWS = YES;
446447
GENERATE_INFOPLIST_FILE = YES;
448+
INFOPLIST_KEY_CFBundleDisplayName = "Overlord Dashboard";
447449
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
448450
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
449451
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
@@ -572,7 +574,7 @@
572574
defaultConfigurationIsVisible = 0;
573575
defaultConfigurationName = Release;
574576
};
575-
3A4870652D7AC17600AC952B /* Build configuration list for PBXNativeTarget "app-ios" */ = {
577+
3A4870652D7AC17600AC952B /* Build configuration list for PBXNativeTarget "Overlord Dashboard" */ = {
576578
isa = XCConfigurationList;
577579
buildConfigurations = (
578580
3A4870662D7AC17600AC952B /* Debug */,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

app-ios/app-ios.xcodeproj/xcuserdata/wnhuang.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7+
<key>Overlord Dashboard.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
712
<key>app-ios.xcscheme_^#shared#^_</key>
813
<dict>
914
<key>orderHint</key>

app-ios/app-ios/overlord_app_iosApp.swift renamed to app-ios/app-ios/OverlordDashboardApp.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import SwiftTerm
33
import SwiftUI
44

55
@main
6-
struct OverlordAppIOS: App {
6+
struct OverlordDashboardApp: App {
77
@StateObject private var authViewModel = AuthViewModel()
88
@Environment(\.scenePhase) private var scenePhase
99

@@ -25,15 +25,15 @@ struct OverlordAppIOS: App {
2525
switch scenePhase {
2626
case .active:
2727
// App has become active (either first launch or returning from background)
28-
if OverlordAppIOS.wasInBackground {
28+
if OverlordDashboardApp.wasInBackground {
2929
print("App returned to foreground")
3030
// Reset the flag
31-
OverlordAppIOS.wasInBackground = false
31+
OverlordDashboardApp.wasInBackground = false
3232
}
3333
case .background:
34-
// App has gone to the background
34+
// App went to the background
3535
print("App went to background")
36-
OverlordAppIOS.wasInBackground = true
36+
OverlordDashboardApp.wasInBackground = true
3737
case .inactive:
3838
// App is inactive (transitioning between states)
3939
break
@@ -42,4 +42,4 @@ struct OverlordAppIOS: App {
4242
}
4343
}
4444
}
45-
}
45+
}

app-ios/app-ios/Views/DashboardView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct DashboardView: View {
143143
setupServices()
144144

145145
// Check if the app was in background and restart all TCP servers if needed
146-
if OverlordAppIOS.wasInBackground {
146+
if OverlordDashboardApp.wasInBackground {
147147
print("DashboardView: App was in background, restarting all TCP servers")
148148
// Restart all TCP servers
149149
portForwardViewModel.restartAllTCPServers()

app-ios/app-ios/Views/PortForwardsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct PortForwardsView: View {
6464
}
6565
.onAppear {
6666
// Check if the app was in background and restart all TCP servers if needed
67-
if OverlordAppIOS.wasInBackground {
67+
if OverlordDashboardApp.wasInBackground {
6868
print("PortForwardsView: App was in background, restarting all TCP servers")
6969
// Restart all TCP servers
7070
portForwardViewModel.restartAllTCPServers()
@@ -475,7 +475,7 @@ struct WebViewContainer: View {
475475
urlString = url.absoluteString
476476

477477
// Check if the app was in background and restart the TCP server if needed
478-
if OverlordAppIOS.wasInBackground {
478+
if OverlordDashboardApp.wasInBackground {
479479
print(
480480
"WebViewContainer: App was in background, " +
481481
"restarting TCP server for port forward \(portForward.id)"

0 commit comments

Comments
 (0)