Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
4 changes: 2 additions & 2 deletions firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,37 @@ 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 "mp4":
// return "audio/mp4"
// case "webm":
// return "audio/webm"

// Documents / text
case "pdf":
Expand Down
2 changes: 1 addition & 1 deletion firebaseai/FirebaseAIExample/FirebaseAIExampleApp.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down