Skip to content

Commit 613bfab

Browse files
committed
Merge branch 'main' into nc/quickstarts
2 parents 586c4f6 + 8e95b7f commit 613bfab

File tree

41 files changed

+697
-1133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+697
-1133
lines changed

Gemfile.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.1.5.2)
8+
activesupport (7.1.6)
99
base64
1010
benchmark (>= 0.3)
1111
bigdecimal
@@ -25,8 +25,8 @@ GEM
2525
json (>= 1.5.1)
2626
atomos (0.1.3)
2727
base64 (0.3.0)
28-
benchmark (0.4.1)
29-
bigdecimal (3.2.3)
28+
benchmark (0.5.0)
29+
bigdecimal (3.3.1)
3030
claide (1.1.0)
3131
cocoapods (1.16.2)
3232
addressable (~> 2.8)
@@ -70,8 +70,9 @@ GEM
7070
connection_pool (2.5.4)
7171
drb (2.2.3)
7272
escape (0.0.4)
73-
ethon (0.17.0)
73+
ethon (0.18.0)
7474
ffi (>= 1.15.0)
75+
logger
7576
ffi (1.17.2)
7677
fourflusher (2.3.1)
7778
fuzzy_match (2.0.4)
@@ -80,9 +81,9 @@ GEM
8081
mutex_m
8182
i18n (1.14.7)
8283
concurrent-ruby (~> 1.0)
83-
json (2.13.2)
84+
json (2.16.0)
8485
logger (1.7.0)
85-
minitest (5.25.5)
86+
minitest (5.26.1)
8687
molinillo (0.8.0)
8788
mutex_m (0.3.0)
8889
nanaimo (0.4.0)

firebaseai/ChatExample/Models/ChatMessage.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import Foundation
1721

1822
enum Participant {

firebaseai/ChatExample/Screens/ConversationScreen.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import GenerativeAIUIComponents
1721
import SwiftUI
1822

firebaseai/ChatExample/ViewModels/ConversationViewModel.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import Foundation
1721
import UIKit
1822

firebaseai/ChatExample/Views/ErrorDetailsView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import MarkdownUI
1721
import SwiftUI
1822

firebaseai/ChatExample/Views/ErrorView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import SwiftUI
1721

1822
struct ErrorView: View {

firebaseai/ChatExample/Views/Grounding/GroundedResponseView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAI
15+
#if canImport(FirebaseAILogic)
16+
import FirebaseAILogic
17+
#else
18+
import FirebaseAI
19+
#endif
1620
import SwiftUI
1721

1822
/// A view that displays a chat message that is grounded in Google Search.

firebaseai/ChatExample/Views/MessageView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
import MarkdownUI
1616
import SwiftUI
17-
import FirebaseAI
17+
#if canImport(FirebaseAILogic)
18+
import FirebaseAILogic
19+
#else
20+
import FirebaseAI
21+
#endif
1822

1923
struct RoundedCorner: Shape {
2024
var radius: CGFloat = .infinity

firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj

Lines changed: 237 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "2600"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "86BB55E32E8B2D6D0054B8B5"
19+
BuildableName = "FirebaseAIExampleZip.app"
20+
BlueprintName = "FirebaseAIExampleZip"
21+
ReferencedContainer = "container:FirebaseAIExample.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "86BB55E32E8B2D6D0054B8B5"
48+
BuildableName = "FirebaseAIExampleZip.app"
49+
BlueprintName = "FirebaseAIExampleZip"
50+
ReferencedContainer = "container:FirebaseAIExample.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "86BB55E32E8B2D6D0054B8B5"
65+
BuildableName = "FirebaseAIExampleZip.app"
66+
BlueprintName = "FirebaseAIExampleZip"
67+
ReferencedContainer = "container:FirebaseAIExample.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>

0 commit comments

Comments
 (0)