diff --git a/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj b/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj index dcd5d91d6..aabc3b33a 100644 --- a/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj +++ b/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj @@ -276,7 +276,7 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 17.6; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -309,7 +309,7 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 17.6; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/firebaseai/FirebaseAIExample/Features/Chat/Views/BouncingDots.swift b/firebaseai/FirebaseAIExample/Features/Chat/Views/BouncingDots.swift index 14715b18b..6895e6723 100644 --- a/firebaseai/FirebaseAIExample/Features/Chat/Views/BouncingDots.swift +++ b/firebaseai/FirebaseAIExample/Features/Chat/Views/BouncingDots.swift @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/firebaseai/FirebaseAIExample/Features/Chat/Views/MessageView.swift b/firebaseai/FirebaseAIExample/Features/Chat/Views/MessageView.swift index 304bf2bab..9b06b4d90 100644 --- a/firebaseai/FirebaseAIExample/Features/Chat/Views/MessageView.swift +++ b/firebaseai/FirebaseAIExample/Features/Chat/Views/MessageView.swift @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +import ConversationKit import MarkdownUI import SwiftUI #if canImport(FirebaseAILogic) import FirebaseAILogic - import ConversationKit #else import FirebaseAI #endif diff --git a/firebaseai/FirebaseAIExample/Features/Grounding/Views/GroundedResponseView.swift b/firebaseai/FirebaseAIExample/Features/Grounding/Views/GroundedResponseView.swift index 49bc49149..ea0501926 100644 --- a/firebaseai/FirebaseAIExample/Features/Grounding/Views/GroundedResponseView.swift +++ b/firebaseai/FirebaseAIExample/Features/Grounding/Views/GroundedResponseView.swift @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/firebaseai/FirebaseAIExample/Features/Multimodal/Models/MultimodalAttachment.swift b/firebaseai/FirebaseAIExample/Features/Multimodal/Models/MultimodalAttachment.swift index cdcf7e63b..c4502a567 100644 --- a/firebaseai/FirebaseAIExample/Features/Multimodal/Models/MultimodalAttachment.swift +++ b/firebaseai/FirebaseAIExample/Features/Multimodal/Models/MultimodalAttachment.swift @@ -252,18 +252,35 @@ extension MultimodalAttachment { return "audio/mp3" case "mpa": return "audio/m4a" - case "mpeg": - return "audio/mpeg" + // TODO: Find a more accurate way to determine the MIME type. + // Commented out to silence the warning "Literal value is already handled by previous pattern; + // consider removing it". + // Context: .mpeg files are more likely to be video since MP3 files are more likely to use the + // .mp3 file extension. + // case "mpeg": + // return "audio/mpeg" case "mpga": return "audio/mpga" - case "mp4": - return "audio/mp4" + // TODO: Find a more accurate way to determine the MIME type. + // Commented out to silence the warning "Literal value is already handled by previous pattern; + // consider removing it". + // Context: .mp4 files are potentially more likely to be video since AAC and ALAC files + // frequently use the .m4a file extension within the Apple ecosystem, though it is + // still ambiguous whether it is audio or video from the file extension alone. + // case "mp4": + // return "audio/mp4" case "opus": return "audio/opus" case "wav": return "audio/wav" - case "webm": - return "audio/webm" + // TODO: Find a more accurate way to determine the MIME type. + // Commented out to silence the warning "Literal value is already handled by previous pattern; + // consider removing it". + // Context: .webm files are potentially more likely to be video since WebM files frequently use + // the .weba file extension when they only contain audio (Ogg Vorbis / Opus), though it + // is still ambiguous whether it is audio or video based on the file extension alone. + // case "webm": + // return "audio/webm" // Documents / text case "pdf": diff --git a/firebaseai/FirebaseAIExample/FirebaseAIExampleApp.swift b/firebaseai/FirebaseAIExample/FirebaseAIExampleApp.swift index 3e65b241d..1d59440ea 100644 --- a/firebaseai/FirebaseAIExample/FirebaseAIExampleApp.swift +++ b/firebaseai/FirebaseAIExample/FirebaseAIExampleApp.swift @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/firebaseai/FirebaseAIExample/Shared/Views/ErrorDetailsView.swift b/firebaseai/FirebaseAIExample/Shared/Views/ErrorDetailsView.swift index 9affcf7a1..cd1e3f60e 100644 --- a/firebaseai/FirebaseAIExample/Shared/Views/ErrorDetailsView.swift +++ b/firebaseai/FirebaseAIExample/Shared/Views/ErrorDetailsView.swift @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.