Skip to content

Commit 113a100

Browse files
authored
Rename GenerativeAISample to VertexAISample (#12755)
1 parent fc0f8a4 commit 113a100

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

FirebaseVertexAI/Sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use the sample app, you'll need to perform the following steps:
66
1. Download
77
[vertexai-preview-0.1.0.zip](https://github.com/firebase/firebase-ios-sdk/archive/refs/heads/vertexai-preview-0.1.0.zip)
88
for the latest release of the SDK
9-
1. Extract the zip and open `GenerativeAISample.xcodeproj` in the
9+
1. Extract the zip and open `VertexAISample.xcodeproj` in the
1010
`FirebaseVertexAI/Sample` directory
1111
1. [Register the sample app](https://firebase.google.com/docs/ios/setup#register-app)
1212
in your Firebase project

FirebaseVertexAI/Sample/GenerativeAISample.xcodeproj/project.pbxproj renamed to FirebaseVertexAI/Sample/VertexAISample.xcodeproj/project.pbxproj

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
86C1F4842BC726150026816F /* FunctionCallingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F4802BC726150026816F /* FunctionCallingViewModel.swift */; };
1414
88263BF02B239C09008AB09B /* ErrorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88263BEE2B239BFE008AB09B /* ErrorView.swift */; };
1515
88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889873842B208563005B4896 /* ErrorDetailsView.swift */; };
16-
8848C8332B0D04BC007B434F /* GenerativeAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */; };
16+
8848C8332B0D04BC007B434F /* VertexAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */; };
1717
8848C8352B0D04BC007B434F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8342B0D04BC007B434F /* ContentView.swift */; };
1818
8848C8372B0D04BD007B434F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8848C8362B0D04BD007B434F /* Assets.xcassets */; };
1919
8848C83A2B0D04BD007B434F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8848C8392B0D04BD007B434F /* Preview Assets.xcassets */; };
@@ -39,8 +39,8 @@
3939
88209C1B2B0FBDC300F64795 /* SummarizeScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SummarizeScreen.swift; sourceTree = "<group>"; };
4040
88209C1D2B0FBDC300F64795 /* SummarizeViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SummarizeViewModel.swift; sourceTree = "<group>"; };
4141
88263BEE2B239BFE008AB09B /* ErrorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ErrorView.swift; sourceTree = "<group>"; };
42-
8848C82F2B0D04BC007B434F /* GenerativeAISample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GenerativeAISample.app; sourceTree = BUILT_PRODUCTS_DIR; };
43-
8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GenerativeAISampleApp.swift; sourceTree = "<group>"; };
42+
8848C82F2B0D04BC007B434F /* VertexAISample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VertexAISample.app; sourceTree = BUILT_PRODUCTS_DIR; };
43+
8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VertexAISampleApp.swift; sourceTree = "<group>"; };
4444
8848C8342B0D04BC007B434F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
4545
8848C8362B0D04BD007B434F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4646
8848C8392B0D04BD007B434F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
@@ -142,7 +142,7 @@
142142
children = (
143143
88B8A9352B0FCBA700424728 /* GenerativeAIUIComponents */,
144144
869200B22B879C4F00482873 /* GoogleService-Info.plist */,
145-
8848C8312B0D04BC007B434F /* GenerativeAISample */,
145+
8848C8312B0D04BC007B434F /* VertexAISample */,
146146
8848C8452B0D051E007B434F /* GenerativeAITextSample */,
147147
8848C8572B0D056C007B434F /* GenerativeAIMultimodalSample */,
148148
88E10F432B110D5300C08E95 /* ChatSample */,
@@ -155,20 +155,20 @@
155155
8848C8302B0D04BC007B434F /* Products */ = {
156156
isa = PBXGroup;
157157
children = (
158-
8848C82F2B0D04BC007B434F /* GenerativeAISample.app */,
158+
8848C82F2B0D04BC007B434F /* VertexAISample.app */,
159159
);
160160
name = Products;
161161
sourceTree = "<group>";
162162
};
163-
8848C8312B0D04BC007B434F /* GenerativeAISample */ = {
163+
8848C8312B0D04BC007B434F /* VertexAISample */ = {
164164
isa = PBXGroup;
165165
children = (
166-
8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */,
166+
8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */,
167167
8848C8342B0D04BC007B434F /* ContentView.swift */,
168168
8848C8362B0D04BD007B434F /* Assets.xcassets */,
169169
8848C8382B0D04BD007B434F /* Preview Content */,
170170
);
171-
path = GenerativeAISample;
171+
path = VertexAISample;
172172
sourceTree = "<group>";
173173
};
174174
8848C8382B0D04BD007B434F /* Preview Content */ = {
@@ -276,9 +276,9 @@
276276
/* End PBXGroup section */
277277

278278
/* Begin PBXNativeTarget section */
279-
8848C82E2B0D04BC007B434F /* GenerativeAISample */ = {
279+
8848C82E2B0D04BC007B434F /* VertexAISample */ = {
280280
isa = PBXNativeTarget;
281-
buildConfigurationList = 8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "GenerativeAISample" */;
281+
buildConfigurationList = 8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "VertexAISample" */;
282282
buildPhases = (
283283
8848C82B2B0D04BC007B434F /* Sources */,
284284
8848C82C2B0D04BC007B434F /* Frameworks */,
@@ -288,14 +288,14 @@
288288
);
289289
dependencies = (
290290
);
291-
name = GenerativeAISample;
291+
name = VertexAISample;
292292
packageProductDependencies = (
293293
886F95D72B17BA420036F07A /* MarkdownUI */,
294294
886F95E22B17D6630036F07A /* GenerativeAIUIComponents */,
295295
868A33672BB476FA00304BB1 /* FirebaseVertexAI-Preview */,
296296
);
297297
productName = GenerativeAISample;
298-
productReference = 8848C82F2B0D04BC007B434F /* GenerativeAISample.app */;
298+
productReference = 8848C82F2B0D04BC007B434F /* VertexAISample.app */;
299299
productType = "com.apple.product-type.application";
300300
};
301301
/* End PBXNativeTarget section */
@@ -313,7 +313,7 @@
313313
};
314314
};
315315
};
316-
buildConfigurationList = 8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "GenerativeAISample" */;
316+
buildConfigurationList = 8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "VertexAISample" */;
317317
compatibilityVersion = "Xcode 14.0";
318318
developmentRegion = en;
319319
hasScannedForEncodings = 0;
@@ -331,7 +331,7 @@
331331
projectDirPath = "";
332332
projectRoot = "";
333333
targets = (
334-
8848C82E2B0D04BC007B434F /* GenerativeAISample */,
334+
8848C82E2B0D04BC007B434F /* VertexAISample */,
335335
);
336336
};
337337
/* End PBXProject section */
@@ -361,7 +361,7 @@
361361
88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */,
362362
8848C8352B0D04BC007B434F /* ContentView.swift in Sources */,
363363
886F95D52B17BA010036F07A /* SummarizeScreen.swift in Sources */,
364-
8848C8332B0D04BC007B434F /* GenerativeAISampleApp.swift in Sources */,
364+
8848C8332B0D04BC007B434F /* VertexAISampleApp.swift in Sources */,
365365
886F95E02B17D5010036F07A /* ConversationViewModel.swift in Sources */,
366366
886F95DD2B17D5010036F07A /* MessageView.swift in Sources */,
367367
886F95DC2B17BAEF0036F07A /* PhotoReasoningScreen.swift in Sources */,
@@ -501,7 +501,7 @@
501501
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
502502
CODE_SIGN_STYLE = Automatic;
503503
CURRENT_PROJECT_VERSION = 1;
504-
DEVELOPMENT_ASSET_PATHS = "\"GenerativeAISample/Preview Content\"";
504+
DEVELOPMENT_ASSET_PATHS = "\"VertexAISample/Preview Content\"";
505505
DEVELOPMENT_TEAM = "";
506506
ENABLE_PREVIEWS = YES;
507507
ENABLE_USER_SCRIPT_SANDBOXING = NO;
@@ -531,7 +531,7 @@
531531
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
532532
CODE_SIGN_STYLE = Automatic;
533533
CURRENT_PROJECT_VERSION = 1;
534-
DEVELOPMENT_ASSET_PATHS = "\"GenerativeAISample/Preview Content\"";
534+
DEVELOPMENT_ASSET_PATHS = "\"VertexAISample/Preview Content\"";
535535
DEVELOPMENT_TEAM = "";
536536
ENABLE_PREVIEWS = YES;
537537
ENABLE_USER_SCRIPT_SANDBOXING = NO;
@@ -557,7 +557,7 @@
557557
/* End XCBuildConfiguration section */
558558

559559
/* Begin XCConfigurationList section */
560-
8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "GenerativeAISample" */ = {
560+
8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "VertexAISample" */ = {
561561
isa = XCConfigurationList;
562562
buildConfigurations = (
563563
8848C83B2B0D04BD007B434F /* Debug */,
@@ -566,7 +566,7 @@
566566
defaultConfigurationIsVisible = 0;
567567
defaultConfigurationName = Release;
568568
};
569-
8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "GenerativeAISample" */ = {
569+
8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "VertexAISample" */ = {
570570
isa = XCConfigurationList;
571571
buildConfigurations = (
572572
8848C83E2B0D04BD007B434F /* Debug */,

FirebaseVertexAI/Sample/GenerativeAISample/GenerativeAISampleApp.swift renamed to FirebaseVertexAI/Sample/VertexAISample/VertexAISampleApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import FirebaseCore
1616
import SwiftUI
1717

1818
@main
19-
struct GenerativeAISampleApp: App {
19+
struct VertexAISampleApp: App {
2020
init() {
2121
// Recommendation: Protect your Vertex AI API resources from abuse by preventing unauthorized
2222
// clients using App Check; see https://firebase.google.com/docs/app-check#get_started.

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ case "$product-$platform-$method" in
492492

493493
VertexSample-*-*)
494494
RunXcodebuild \
495-
-project 'FirebaseVertexAI/Sample/GenerativeAISample.xcodeproj' \
496-
-scheme "GenerativeAISample" \
495+
-project 'FirebaseVertexAI/Sample/VertexAISample.xcodeproj' \
496+
-scheme "VertexAISample" \
497497
"${xcb_flags[@]}" \
498498
build
499499
;;

0 commit comments

Comments
 (0)