Skip to content

Commit

Permalink
Rename GenerativeAISample to VertexAISample (#12755)
Browse files Browse the repository at this point in the history
(cherry picked from commit 113a100)
  • Loading branch information
andrewheard committed Apr 11, 2024
1 parent 2d70719 commit c40329f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion FirebaseVertexAI/Sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use the sample app, you'll need to perform the following steps:
1. Download
[vertexai-preview-0.1.0.zip](https://github.com/firebase/firebase-ios-sdk/archive/refs/heads/vertexai-preview-0.1.0.zip)
for the latest release of the SDK
1. Extract the zip and open `GenerativeAISample.xcodeproj` in the
1. Extract the zip and open `VertexAISample.xcodeproj` in the
`FirebaseVertexAI/Sample` directory
1. [Register the sample app](https://firebase.google.com/docs/ios/setup#register-app)
in your Firebase project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
86C1F4842BC726150026816F /* FunctionCallingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F4802BC726150026816F /* FunctionCallingViewModel.swift */; };
88263BF02B239C09008AB09B /* ErrorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88263BEE2B239BFE008AB09B /* ErrorView.swift */; };
88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889873842B208563005B4896 /* ErrorDetailsView.swift */; };
8848C8332B0D04BC007B434F /* GenerativeAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */; };
8848C8332B0D04BC007B434F /* VertexAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */; };
8848C8352B0D04BC007B434F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8342B0D04BC007B434F /* ContentView.swift */; };
8848C8372B0D04BD007B434F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8848C8362B0D04BD007B434F /* Assets.xcassets */; };
8848C83A2B0D04BD007B434F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8848C8392B0D04BD007B434F /* Preview Assets.xcassets */; };
Expand All @@ -40,8 +40,8 @@
88209C1B2B0FBDC300F64795 /* SummarizeScreen.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SummarizeScreen.swift; sourceTree = "<group>"; };
88209C1D2B0FBDC300F64795 /* SummarizeViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SummarizeViewModel.swift; sourceTree = "<group>"; };
88263BEE2B239BFE008AB09B /* ErrorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ErrorView.swift; sourceTree = "<group>"; };
8848C82F2B0D04BC007B434F /* GenerativeAISample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GenerativeAISample.app; sourceTree = BUILT_PRODUCTS_DIR; };
8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GenerativeAISampleApp.swift; sourceTree = "<group>"; };
8848C82F2B0D04BC007B434F /* VertexAISample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VertexAISample.app; sourceTree = BUILT_PRODUCTS_DIR; };
8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VertexAISampleApp.swift; sourceTree = "<group>"; };
8848C8342B0D04BC007B434F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
8848C8362B0D04BD007B434F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8848C8392B0D04BD007B434F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -144,7 +144,7 @@
children = (
88B8A9352B0FCBA700424728 /* GenerativeAIUIComponents */,
869200B22B879C4F00482873 /* GoogleService-Info.plist */,
8848C8312B0D04BC007B434F /* GenerativeAISample */,
8848C8312B0D04BC007B434F /* VertexAISample */,
8848C8452B0D051E007B434F /* GenerativeAITextSample */,
8848C8572B0D056C007B434F /* GenerativeAIMultimodalSample */,
88E10F432B110D5300C08E95 /* ChatSample */,
Expand All @@ -157,20 +157,20 @@
8848C8302B0D04BC007B434F /* Products */ = {
isa = PBXGroup;
children = (
8848C82F2B0D04BC007B434F /* GenerativeAISample.app */,
8848C82F2B0D04BC007B434F /* VertexAISample.app */,
);
name = Products;
sourceTree = "<group>";
};
8848C8312B0D04BC007B434F /* GenerativeAISample */ = {
8848C8312B0D04BC007B434F /* VertexAISample */ = {
isa = PBXGroup;
children = (
8848C8322B0D04BC007B434F /* GenerativeAISampleApp.swift */,
8848C8322B0D04BC007B434F /* VertexAISampleApp.swift */,
8848C8342B0D04BC007B434F /* ContentView.swift */,
8848C8362B0D04BD007B434F /* Assets.xcassets */,
8848C8382B0D04BD007B434F /* Preview Content */,
);
path = GenerativeAISample;
path = VertexAISample;
sourceTree = "<group>";
};
8848C8382B0D04BD007B434F /* Preview Content */ = {
Expand Down Expand Up @@ -278,9 +278,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
8848C82E2B0D04BC007B434F /* GenerativeAISample */ = {
8848C82E2B0D04BC007B434F /* VertexAISample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "GenerativeAISample" */;
buildConfigurationList = 8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "VertexAISample" */;
buildPhases = (
8848C82B2B0D04BC007B434F /* Sources */,
8848C82C2B0D04BC007B434F /* Frameworks */,
Expand All @@ -290,15 +290,15 @@
);
dependencies = (
);
name = GenerativeAISample;
name = VertexAISample;
packageProductDependencies = (
886F95D72B17BA420036F07A /* MarkdownUI */,
886F95E22B17D6630036F07A /* GenerativeAIUIComponents */,
868A33652BB476FA00304BB1 /* FirebaseAppCheck */,
868A33672BB476FA00304BB1 /* FirebaseVertexAI-Preview */,
);
productName = GenerativeAISample;
productReference = 8848C82F2B0D04BC007B434F /* GenerativeAISample.app */;
productReference = 8848C82F2B0D04BC007B434F /* VertexAISample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -316,7 +316,7 @@
};
};
};
buildConfigurationList = 8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "GenerativeAISample" */;
buildConfigurationList = 8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "VertexAISample" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -334,7 +334,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
8848C82E2B0D04BC007B434F /* GenerativeAISample */,
8848C82E2B0D04BC007B434F /* VertexAISample */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -364,7 +364,7 @@
88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */,
8848C8352B0D04BC007B434F /* ContentView.swift in Sources */,
886F95D52B17BA010036F07A /* SummarizeScreen.swift in Sources */,
8848C8332B0D04BC007B434F /* GenerativeAISampleApp.swift in Sources */,
8848C8332B0D04BC007B434F /* VertexAISampleApp.swift in Sources */,
886F95E02B17D5010036F07A /* ConversationViewModel.swift in Sources */,
886F95DD2B17D5010036F07A /* MessageView.swift in Sources */,
886F95DC2B17BAEF0036F07A /* PhotoReasoningScreen.swift in Sources */,
Expand Down Expand Up @@ -504,7 +504,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"GenerativeAISample/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"VertexAISample/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand Down Expand Up @@ -534,7 +534,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"GenerativeAISample/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"VertexAISample/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -560,7 +560,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "GenerativeAISample" */ = {
8848C82A2B0D04BC007B434F /* Build configuration list for PBXProject "VertexAISample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
8848C83B2B0D04BD007B434F /* Debug */,
Expand All @@ -569,7 +569,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "GenerativeAISample" */ = {
8848C83D2B0D04BD007B434F /* Build configuration list for PBXNativeTarget "VertexAISample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
8848C83E2B0D04BD007B434F /* Debug */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import FirebaseCore
import SwiftUI

@main
struct GenerativeAISampleApp: App {
struct VertexAISampleApp: App {
init() {
FirebaseApp.configure()

Expand Down
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ case "$product-$platform-$method" in

VertexSample-*-*)
RunXcodebuild \
-project 'FirebaseVertexAI/Sample/GenerativeAISample.xcodeproj' \
-scheme "GenerativeAISample" \
-project 'FirebaseVertexAI/Sample/VertexAISample.xcodeproj' \
-scheme "VertexAISample" \
"${xcb_flags[@]}" \
build
;;
Expand Down

0 comments on commit c40329f

Please sign in to comment.