diff --git a/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj b/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj index a54b512f1..49dc0da03 100644 --- a/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj +++ b/firebaseai/FirebaseAIExample.xcodeproj/project.pbxproj @@ -10,9 +10,6 @@ 869200B32B879C4F00482873 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 869200B22B879C4F00482873 /* GoogleService-Info.plist */; }; 86C1F4832BC726150026816F /* FunctionCallingScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F47E2BC726150026816F /* FunctionCallingScreen.swift */; }; 86C1F4842BC726150026816F /* FunctionCallingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86C1F4802BC726150026816F /* FunctionCallingViewModel.swift */; }; - 86D9CA8B2BED3EE1007D939E /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */; }; - 86D9CA8F2BED3EE1007D939E /* FirebaseAuth in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CA8E2BED3EE1007D939E /* FirebaseAuth */; }; - 86D9CAB52BED3EE1007D939E /* FirebaseStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 86D9CAB42BED3EE1007D939E /* FirebaseStorage */; }; 88263BF02B239C09008AB09B /* ErrorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88263BEE2B239BFE008AB09B /* ErrorView.swift */; }; 88263BF12B239C11008AB09B /* ErrorDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889873842B208563005B4896 /* ErrorDetailsView.swift */; }; 8848C8332B0D04BC007B434F /* FirebaseAISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8848C8322B0D04BC007B434F /* FirebaseAISampleApp.swift */; }; @@ -73,9 +70,6 @@ files = ( DE26D95F2DBB3E9F007E6668 /* FirebaseAI in Frameworks */, 886F95D82B17BA420036F07A /* MarkdownUI in Frameworks */, - 86D9CAB52BED3EE1007D939E /* FirebaseStorage in Frameworks */, - 86D9CA8F2BED3EE1007D939E /* FirebaseAuth in Frameworks */, - 86D9CA8B2BED3EE1007D939E /* FirebaseAppCheck in Frameworks */, 886F95E32B17D6630036F07A /* GenerativeAIUIComponents in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -312,9 +306,6 @@ packageProductDependencies = ( 886F95D72B17BA420036F07A /* MarkdownUI */, 886F95E22B17D6630036F07A /* GenerativeAIUIComponents */, - 86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */, - 86D9CA8E2BED3EE1007D939E /* FirebaseAuth */, - 86D9CAB42BED3EE1007D939E /* FirebaseStorage */, DE26D95E2DBB3E9F007E6668 /* FirebaseAI */, ); productName = GenerativeAISample; @@ -630,18 +621,6 @@ /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ - 86D9CA8A2BED3EE1007D939E /* FirebaseAppCheck */ = { - isa = XCSwiftPackageProductDependency; - productName = FirebaseAppCheck; - }; - 86D9CA8E2BED3EE1007D939E /* FirebaseAuth */ = { - isa = XCSwiftPackageProductDependency; - productName = FirebaseAuth; - }; - 86D9CAB42BED3EE1007D939E /* FirebaseStorage */ = { - isa = XCSwiftPackageProductDependency; - productName = FirebaseStorage; - }; 886F95D72B17BA420036F07A /* MarkdownUI */ = { isa = XCSwiftPackageProductDependency; package = 88209C212B0FBDF700F64795 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */; diff --git a/firebaseai/FirebaseAISample/FirebaseAISampleApp.swift b/firebaseai/FirebaseAISample/FirebaseAISampleApp.swift index 861a9d9ad..61c6bfed7 100644 --- a/firebaseai/FirebaseAISample/FirebaseAISampleApp.swift +++ b/firebaseai/FirebaseAISample/FirebaseAISampleApp.swift @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import FirebaseAppCheck import FirebaseCore import SwiftUI @@ -22,7 +21,6 @@ class AppDelegate: NSObject, UIApplicationDelegate { .LaunchOptionsKey: Any]? = nil) -> Bool { // Recommendation: Protect your Vertex AI API resources from abuse by preventing unauthorized // clients using App Check; see https://firebase.google.com/docs/app-check#get_started. - AppCheck.setAppCheckProviderFactory(AppCheckNotConfiguredFactory()) FirebaseApp.configure() @@ -49,19 +47,3 @@ struct FirebaseAISampleApp: App { } } } - -/// Placeholder App Check provider factory that returns a simple ``AppCheckNotConfigured`` error. -private class AppCheckNotConfiguredFactory: NSObject, AppCheckProviderFactory { - private class AppCheckNotConfiguredProvider: NSObject, AppCheckProvider { - func getToken() async throws -> AppCheckToken { - throw AppCheckNotConfigured() - } - } - - func createProvider(with app: FirebaseApp) -> (any AppCheckProvider)? { - return AppCheckNotConfiguredProvider() - } -} - -/// Error indicating that App Check is not configured in the sample app. -struct AppCheckNotConfigured: Error {}