Skip to content

Commit 0e9fe76

Browse files
authored
[Firebase AI] Add placeholder Firebase folder for zip frameworks (#1772)
1 parent e5a50c1 commit 0e9fe76

File tree

17 files changed

+144
-16
lines changed

17 files changed

+144
-16
lines changed

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: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
860F09212E8C4179002D85D0 /* FirebaseAILogic.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09142E8C4171002D85D0 /* FirebaseAILogic.xcframework */; };
11+
860F09222E8C4179002D85D0 /* FirebaseAILogic.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09142E8C4171002D85D0 /* FirebaseAILogic.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
12+
860F09242E8C417A002D85D0 /* FirebaseAppCheckInterop.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09152E8C4171002D85D0 /* FirebaseAppCheckInterop.xcframework */; };
13+
860F09252E8C417A002D85D0 /* FirebaseAppCheckInterop.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09152E8C4171002D85D0 /* FirebaseAppCheckInterop.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14+
860F09262E8C417B002D85D0 /* FirebaseAuthInterop.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09162E8C4171002D85D0 /* FirebaseAuthInterop.xcframework */; };
15+
860F09272E8C417B002D85D0 /* FirebaseAuthInterop.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09162E8C4171002D85D0 /* FirebaseAuthInterop.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
16+
860F09282E8C417C002D85D0 /* FirebaseCore.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09172E8C4171002D85D0 /* FirebaseCore.xcframework */; };
17+
860F09292E8C417C002D85D0 /* FirebaseCore.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09172E8C4171002D85D0 /* FirebaseCore.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
18+
860F092A2E8C417E002D85D0 /* FirebaseCoreExtension.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09182E8C4171002D85D0 /* FirebaseCoreExtension.xcframework */; };
19+
860F092B2E8C417E002D85D0 /* FirebaseCoreExtension.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09182E8C4171002D85D0 /* FirebaseCoreExtension.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
20+
860F092C2E8C417F002D85D0 /* FirebaseCoreInternal.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09192E8C4171002D85D0 /* FirebaseCoreInternal.xcframework */; };
21+
860F092D2E8C417F002D85D0 /* FirebaseCoreInternal.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F09192E8C4171002D85D0 /* FirebaseCoreInternal.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
22+
860F09302E8C422B002D85D0 /* GoogleUtilities.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 860F092E2E8C4210002D85D0 /* GoogleUtilities.xcframework */; };
23+
860F09312E8C422B002D85D0 /* GoogleUtilities.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 860F092E2E8C4210002D85D0 /* GoogleUtilities.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1024
869200B32B879C4F00482873 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 869200B22B879C4F00482873 /* GoogleService-Info.plist */; };
1125
86BB55EA2E8B2D6D0054B8B5 /* FunctionCallingScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F47E2BC726150026816F /* FunctionCallingScreen.swift */; };
1226
86BB55EB2E8B2D6D0054B8B5 /* BouncingDots.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88E10F5C2B11135000C08E95 /* BouncingDots.swift */; };
@@ -58,7 +72,34 @@
5872
DEFECAAA2D7B4CCD00EF9621 /* ImagenScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEFECAA62D7B4CCD00EF9621 /* ImagenScreen.swift */; };
5973
/* End PBXBuildFile section */
6074

75+
/* Begin PBXCopyFilesBuildPhase section */
76+
860F09232E8C4179002D85D0 /* Embed Frameworks */ = {
77+
isa = PBXCopyFilesBuildPhase;
78+
buildActionMask = 2147483647;
79+
dstPath = "";
80+
dstSubfolderSpec = 10;
81+
files = (
82+
860F092B2E8C417E002D85D0 /* FirebaseCoreExtension.xcframework in Embed Frameworks */,
83+
860F09272E8C417B002D85D0 /* FirebaseAuthInterop.xcframework in Embed Frameworks */,
84+
860F09312E8C422B002D85D0 /* GoogleUtilities.xcframework in Embed Frameworks */,
85+
860F092D2E8C417F002D85D0 /* FirebaseCoreInternal.xcframework in Embed Frameworks */,
86+
860F09292E8C417C002D85D0 /* FirebaseCore.xcframework in Embed Frameworks */,
87+
860F09222E8C4179002D85D0 /* FirebaseAILogic.xcframework in Embed Frameworks */,
88+
860F09252E8C417A002D85D0 /* FirebaseAppCheckInterop.xcframework in Embed Frameworks */,
89+
);
90+
name = "Embed Frameworks";
91+
runOnlyForDeploymentPostprocessing = 0;
92+
};
93+
/* End PBXCopyFilesBuildPhase section */
94+
6195
/* Begin PBXFileReference section */
96+
860F09142E8C4171002D85D0 /* FirebaseAILogic.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseAILogic.xcframework; sourceTree = "<group>"; };
97+
860F09152E8C4171002D85D0 /* FirebaseAppCheckInterop.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseAppCheckInterop.xcframework; sourceTree = "<group>"; };
98+
860F09162E8C4171002D85D0 /* FirebaseAuthInterop.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseAuthInterop.xcframework; sourceTree = "<group>"; };
99+
860F09172E8C4171002D85D0 /* FirebaseCore.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseCore.xcframework; sourceTree = "<group>"; };
100+
860F09182E8C4171002D85D0 /* FirebaseCoreExtension.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseCoreExtension.xcframework; sourceTree = "<group>"; };
101+
860F09192E8C4171002D85D0 /* FirebaseCoreInternal.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = FirebaseCoreInternal.xcframework; sourceTree = "<group>"; };
102+
860F092E2E8C4210002D85D0 /* GoogleUtilities.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = GoogleUtilities.xcframework; sourceTree = "<group>"; };
62103
869200B22B879C4F00482873 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
63104
86BB56082E8B2D6D0054B8B5 /* FirebaseAIExampleZip.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FirebaseAIExampleZip.app; sourceTree = BUILT_PRODUCTS_DIR; };
64105
86C1F47E2BC726150026816F /* FunctionCallingScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FunctionCallingScreen.swift; sourceTree = "<group>"; };
@@ -98,6 +139,13 @@
98139
buildActionMask = 2147483647;
99140
files = (
100141
86BB55FF2E8B2D6D0054B8B5 /* MarkdownUI in Frameworks */,
142+
860F09282E8C417C002D85D0 /* FirebaseCore.xcframework in Frameworks */,
143+
860F09262E8C417B002D85D0 /* FirebaseAuthInterop.xcframework in Frameworks */,
144+
860F09212E8C4179002D85D0 /* FirebaseAILogic.xcframework in Frameworks */,
145+
860F092C2E8C417F002D85D0 /* FirebaseCoreInternal.xcframework in Frameworks */,
146+
860F09302E8C422B002D85D0 /* GoogleUtilities.xcframework in Frameworks */,
147+
860F09242E8C417A002D85D0 /* FirebaseAppCheckInterop.xcframework in Frameworks */,
148+
860F092A2E8C417E002D85D0 /* FirebaseCoreExtension.xcframework in Frameworks */,
101149
86BB56002E8B2D6D0054B8B5 /* GenerativeAIUIComponents in Frameworks */,
102150
);
103151
runOnlyForDeploymentPostprocessing = 0;
@@ -115,6 +163,20 @@
115163
/* End PBXFrameworksBuildPhase section */
116164

117165
/* Begin PBXGroup section */
166+
860F091A2E8C4171002D85D0 /* Firebase */ = {
167+
isa = PBXGroup;
168+
children = (
169+
860F09142E8C4171002D85D0 /* FirebaseAILogic.xcframework */,
170+
860F09152E8C4171002D85D0 /* FirebaseAppCheckInterop.xcframework */,
171+
860F09162E8C4171002D85D0 /* FirebaseAuthInterop.xcframework */,
172+
860F09172E8C4171002D85D0 /* FirebaseCore.xcframework */,
173+
860F09182E8C4171002D85D0 /* FirebaseCoreExtension.xcframework */,
174+
860F09192E8C4171002D85D0 /* FirebaseCoreInternal.xcframework */,
175+
860F092E2E8C4210002D85D0 /* GoogleUtilities.xcframework */,
176+
);
177+
path = Firebase;
178+
sourceTree = "<group>";
179+
};
118180
86C1F47F2BC726150026816F /* Screens */ = {
119181
isa = PBXGroup;
120182
children = (
@@ -192,6 +254,7 @@
192254
86C1F4822BC726150026816F /* FunctionCallingExample */,
193255
8848C8302B0D04BC007B434F /* Products */,
194256
88209C222B0FBE1700F64795 /* Frameworks */,
257+
860F091A2E8C4171002D85D0 /* Firebase */,
195258
);
196259
sourceTree = "<group>";
197260
};
@@ -346,6 +409,7 @@
346409
86BB55E92E8B2D6D0054B8B5 /* Sources */,
347410
86BB55FD2E8B2D6D0054B8B5 /* Frameworks */,
348411
86BB56012E8B2D6D0054B8B5 /* Resources */,
412+
860F09232E8C4179002D85D0 /* Embed Frameworks */,
349413
);
350414
buildRules = (
351415
);

firebaseai/FirebaseAIExample/ContentView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
// limitations under the License.
1414

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

1822
enum BackendOption: String, CaseIterable, Identifiable {
1923
case googleAI = "Gemini Developer API"

firebaseai/FunctionCallingExample/Screens/FunctionCallingScreen.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

0 commit comments

Comments
 (0)