Skip to content

Commit d35f0fb

Browse files
committed
[firebaseai] Remove dependencies not necessary for getting started
1 parent 5f9784f commit d35f0fb

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
869200B32B879C4F00482873 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 869200B22B879C4F00482873 /* GoogleService-Info.plist */; };
1111
86C1F4832BC726150026816F /* FunctionCallingScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F47E2BC726150026816F /* FunctionCallingScreen.swift */; };
1212
86C1F4842BC726150026816F /* FunctionCallingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F4802BC726150026816F /* FunctionCallingViewModel.swift */; };
13-
86D9CA8B2BED3EE1007D939E /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */; };
14-
86D9CA8F2BED3EE1007D939E /* FirebaseAuth in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CA8E2BED3EE1007D939E /* FirebaseAuth */; };
15-
86D9CAB52BED3EE1007D939E /* FirebaseStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CAB42BED3EE1007D939E /* FirebaseStorage */; };
1613
88263BF02B239C09008AB09B /* ErrorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88263BEE2B239BFE008AB09B /* ErrorView.swift */; };
1714
88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889873842B208563005B4896 /* ErrorDetailsView.swift */; };
1815
8848C8332B0D04BC007B434F /* FirebaseAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* FirebaseAISampleApp.swift */; };
@@ -73,9 +70,6 @@
7370
files = (
7471
DE26D95F2DBB3E9F007E6668 /* FirebaseAI in Frameworks */,
7572
886F95D82B17BA420036F07A /* MarkdownUI in Frameworks */,
76-
86D9CAB52BED3EE1007D939E /* FirebaseStorage in Frameworks */,
77-
86D9CA8F2BED3EE1007D939E /* FirebaseAuth in Frameworks */,
78-
86D9CA8B2BED3EE1007D939E /* FirebaseAppCheck in Frameworks */,
7973
886F95E32B17D6630036F07A /* GenerativeAIUIComponents in Frameworks */,
8074
);
8175
runOnlyForDeploymentPostprocessing = 0;
@@ -312,9 +306,6 @@
312306
packageProductDependencies = (
313307
886F95D72B17BA420036F07A /* MarkdownUI */,
314308
886F95E22B17D6630036F07A /* GenerativeAIUIComponents */,
315-
86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */,
316-
86D9CA8E2BED3EE1007D939E /* FirebaseAuth */,
317-
86D9CAB42BED3EE1007D939E /* FirebaseStorage */,
318309
DE26D95E2DBB3E9F007E6668 /* FirebaseAI */,
319310
);
320311
productName = GenerativeAISample;
@@ -630,18 +621,6 @@
630621
/* End XCRemoteSwiftPackageReference section */
631622

632623
/* Begin XCSwiftPackageProductDependency section */
633-
86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */ = {
634-
isa = XCSwiftPackageProductDependency;
635-
productName = FirebaseAppCheck;
636-
};
637-
86D9CA8E2BED3EE1007D939E /* FirebaseAuth */ = {
638-
isa = XCSwiftPackageProductDependency;
639-
productName = FirebaseAuth;
640-
};
641-
86D9CAB42BED3EE1007D939E /* FirebaseStorage */ = {
642-
isa = XCSwiftPackageProductDependency;
643-
productName = FirebaseStorage;
644-
};
645624
886F95D72B17BA420036F07A /* MarkdownUI */ = {
646625
isa = XCSwiftPackageProductDependency;
647626
package = 88209C212B0FBDF700F64795 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */;

firebaseai/FirebaseAISample/FirebaseAISampleApp.swift

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

15-
import FirebaseAppCheck
1615
import FirebaseCore
1716
import SwiftUI
1817

@@ -22,7 +21,6 @@ class AppDelegate: NSObject, UIApplicationDelegate {
2221
.LaunchOptionsKey: Any]? = nil) -> Bool {
2322
// Recommendation: Protect your Vertex AI API resources from abuse by preventing unauthorized
2423
// clients using App Check; see https://firebase.google.com/docs/app-check#get_started.
25-
AppCheck.setAppCheckProviderFactory(AppCheckNotConfiguredFactory())
2624

2725
FirebaseApp.configure()
2826

@@ -49,19 +47,3 @@ struct FirebaseAISampleApp: App {
4947
}
5048
}
5149
}
52-
53-
/// Placeholder App Check provider factory that returns a simple ``AppCheckNotConfigured`` error.
54-
private class AppCheckNotConfiguredFactory: NSObject, AppCheckProviderFactory {
55-
private class AppCheckNotConfiguredProvider: NSObject, AppCheckProvider {
56-
func getToken() async throws -> AppCheckToken {
57-
throw AppCheckNotConfigured()
58-
}
59-
}
60-
61-
func createProvider(with app: FirebaseApp) -> (any AppCheckProvider)? {
62-
return AppCheckNotConfiguredProvider()
63-
}
64-
}
65-
66-
/// Error indicating that App Check is not configured in the sample app.
67-
struct AppCheckNotConfigured: Error {}

0 commit comments

Comments
 (0)