From 5960014da9ad6e94aca326f0f252765feb9d70eb Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 26 Jun 2024 11:05:35 +0200 Subject: [PATCH] Fix warnings --- IceCubesApp.xcodeproj/project.pbxproj | 12 ++++++------ IceCubesAppIntents/AppShortcuts.swift | 9 +++++---- .../AccountWidget/AccountWidgetConfiguration.swift | 2 +- .../HashtagPostsWidgetConfiguration.swift | 2 +- .../LatestPostsWidgetConfiguration.swift | 2 +- .../MentionWidget/MentionWidgetConfiguration.swift | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/IceCubesApp.xcodeproj/project.pbxproj b/IceCubesApp.xcodeproj/project.pbxproj index 7d382ee6..eb4c32ac 100644 --- a/IceCubesApp.xcodeproj/project.pbxproj +++ b/IceCubesApp.xcodeproj/project.pbxproj @@ -1254,7 +1254,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 730; DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)"; GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; @@ -1267,7 +1267,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.10.43; PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_ID_PREFIX).IceCubesApp.IceCubesAppWidgetsExtension"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; @@ -1290,7 +1290,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 730; DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)"; GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; @@ -1303,7 +1303,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.10.43; PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_ID_PREFIX).IceCubesApp.IceCubesAppWidgetsExtension"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; @@ -1391,7 +1391,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; @@ -1457,7 +1457,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; diff --git a/IceCubesAppIntents/AppShortcuts.swift b/IceCubesAppIntents/AppShortcuts.swift index 7b5ded40..e36fd43c 100644 --- a/IceCubesAppIntents/AppShortcuts.swift +++ b/IceCubesAppIntents/AppShortcuts.swift @@ -5,7 +5,7 @@ struct AppShortcuts: AppShortcutsProvider { AppShortcut( intent: PostIntent(), phrases: [ - "Post \(\.$content) in \(.applicationName)", + "Post in \(.applicationName)", "Post a status on Mastodon with \(.applicationName)", ], shortTitle: "Compose a post", @@ -23,7 +23,6 @@ struct AppShortcuts: AppShortcutsProvider { AppShortcut( intent: TabIntent(), phrases: [ - "Open \(\.$tab) in \(.applicationName)", "Open \(.applicationName)", ], shortTitle: "Open Ice Cubes", @@ -32,8 +31,10 @@ struct AppShortcuts: AppShortcutsProvider { AppShortcut( intent: PostImageIntent(), phrases: [ - "Post images \(\.$images) in \(.applicationName)", - "Send photos \(\.$images) with \(.applicationName)", + "Post images in \(.applicationName)", + "Post an image in \(.applicationName)", + "Send photos with \(.applicationName)", + "Send a photo with \(.applicationName)", ], shortTitle: "Post a status with an image", systemImageName: "photo" diff --git a/IceCubesAppWidgetsExtension/AccountWidget/AccountWidgetConfiguration.swift b/IceCubesAppWidgetsExtension/AccountWidget/AccountWidgetConfiguration.swift index 7a26422f..2e789f64 100644 --- a/IceCubesAppWidgetsExtension/AccountWidget/AccountWidgetConfiguration.swift +++ b/IceCubesAppWidgetsExtension/AccountWidget/AccountWidgetConfiguration.swift @@ -2,7 +2,7 @@ import AppIntents import WidgetKit struct AccountWidgetConfiguration: WidgetConfigurationIntent { - static let title: LocalizedStringResource = "Configuration" + static let title: LocalizedStringResource = "Accoutn Widget Configuration" static let description = IntentDescription("Choose the account for this widget") @Parameter(title: "Account") diff --git a/IceCubesAppWidgetsExtension/HashtagPostsWidget/HashtagPostsWidgetConfiguration.swift b/IceCubesAppWidgetsExtension/HashtagPostsWidget/HashtagPostsWidgetConfiguration.swift index 8aa70af9..74d767a9 100644 --- a/IceCubesAppWidgetsExtension/HashtagPostsWidget/HashtagPostsWidgetConfiguration.swift +++ b/IceCubesAppWidgetsExtension/HashtagPostsWidget/HashtagPostsWidgetConfiguration.swift @@ -2,7 +2,7 @@ import AppIntents import WidgetKit struct HashtagPostsWidgetConfiguration: WidgetConfigurationIntent { - static let title: LocalizedStringResource = "Configuration" + static let title: LocalizedStringResource = "Hashtag Widget Configuration" static let description = IntentDescription("Choose the account and hashtag for this widget") @Parameter(title: "Account") diff --git a/IceCubesAppWidgetsExtension/LatestPostsWidget/LatestPostsWidgetConfiguration.swift b/IceCubesAppWidgetsExtension/LatestPostsWidget/LatestPostsWidgetConfiguration.swift index 11453c01..e4dbed5b 100644 --- a/IceCubesAppWidgetsExtension/LatestPostsWidget/LatestPostsWidgetConfiguration.swift +++ b/IceCubesAppWidgetsExtension/LatestPostsWidget/LatestPostsWidgetConfiguration.swift @@ -2,7 +2,7 @@ import AppIntents import WidgetKit struct LatestPostsWidgetConfiguration: WidgetConfigurationIntent { - static let title: LocalizedStringResource = "Configuration" + static let title: LocalizedStringResource = "Timeline Widget Configuration" static let description = IntentDescription("Choose the account and timeline for this widget") @Parameter(title: "Account") diff --git a/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift b/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift index 0f0fc81b..9dbe64a3 100644 --- a/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift +++ b/IceCubesAppWidgetsExtension/MentionWidget/MentionWidgetConfiguration.swift @@ -2,7 +2,7 @@ import AppIntents import WidgetKit struct MentionsWidgetConfiguration: WidgetConfigurationIntent { - static let title: LocalizedStringResource = "Configuration" + static let title: LocalizedStringResource = "Mentions Widget Configuration" static let description = IntentDescription("Choose the account for this widget") @Parameter(title: "Account")