Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions StikDebug.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
43953ACC2F9246C6006CB77E /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 43953ACB2F9246C6006CB77E /* Localizable.xcstrings */; };
68D569BE2E1B415700A5BA36 /* CodeEditorView in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BD2E1B415700A5BA36 /* CodeEditorView */; };
68D569C02E1B415700A5BA36 /* LanguageSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BF2E1B415700A5BA36 /* LanguageSupport */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -42,6 +43,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
43953ACB2F9246C6006CB77E /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = Localizable.xcstrings; path = StikDebug/Assets.xcassets/Localizable.xcstrings; sourceTree = "<group>"; };
DC139F6D2DE97EA400F63846 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
DC139F6F2DE97EA400F63846 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
DC6F1D372D94EADD0071B2B6 /* StikDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StikDebug.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -243,6 +245,7 @@
Base,
es,
it,
"zh-Hans",
);
mainGroup = DC6F1D2E2D94EADD0071B2B6;
minimizedProjectReferenceProxies = 1;
Expand All @@ -266,6 +269,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
43953ACC2F9246C6006CB77E /* Localizable.xcstrings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -328,6 +332,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
Expand Down Expand Up @@ -379,7 +384,9 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
Expand All @@ -389,6 +396,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
Expand Down Expand Up @@ -433,7 +441,9 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES;
};
name = Release;
};
Expand Down
42 changes: 21 additions & 21 deletions StikDebug/App/AppFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,57 +24,57 @@ enum AppFeature: String, CaseIterable, Identifiable {
var title: String {
switch self {
case .home:
return "Apps"
return String(format: "Apps".localized)
case .scripts:
return "Scripts"
return String(format: "Scripts".localized)
case .tools:
return "Tools"
return String(format: "Tools".localized)
case .news:
return "News"
return String(format: "News".localized)
case .console:
return "Console"
return String(format: "Console".localized)
case .deviceInfo:
return "Device Info"
return String(format: "Device Info".localized)
case .profiles:
return "App Expiry"
return String(format: "App Expiry".localized)
case .processes:
return "Processes"
return String(format: "Processes".localized)
case .location:
return "Location"
return String(format: "Location".localized)
case .settings:
return "Settings"
return String(format: "Settings".localized)
}
}

var detail: String {
switch self {
case .home:
return "Manage installed apps"
return String(format: "Manage installed apps".localized)
case .scripts:
return "Manage and run JS scripts"
return String(format: "Manage and run JS scripts".localized)
case .tools:
return "Access additional tools"
return String(format: "Access additional tools".localized)
case .news:
return "Latest StikDebug updates"
return String(format: "Latest StikDebug updates".localized)
case .console:
return "Live device logs"
return String(format: "Live device logs".localized)
case .deviceInfo:
return "View detailed device metadata"
return String(format: "View detailed device metadata".localized)
case .profiles:
return "Check app expiration dates"
return String(format: "Check app expiration dates".localized)
case .processes:
return "Inspect running apps"
return String(format: "Inspect running apps".localized)
case .location:
return "Simulate GPS location"
return String(format: "Simulate GPS location".localized)
case .settings:
return "Configure StikDebug"
return String(format: "Configure StikDebug".localized)
}
}

var toolTitle: String {
switch self {
case .location:
return "Location Simulation"
return String(format: "Location Simulation".localized)
default:
return title
}
Expand Down
4 changes: 2 additions & 2 deletions StikDebug/App/StikDebugApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ struct StikDebugApp: App {
} catch {
await MainActor.run {
showAlert(
title: "An Error has Occurred",
message: "[Download DDI Error]: \(error.localizedDescription)",
title: "An Error has Occurred".localized,
message: String(Format: "[Download DDI Error]: %@".localized, error.localizedDescription),
showOk: true
)
}
Expand Down
Loading