From e026543c26fcd5d688684a49e4b0f69fe36af82c Mon Sep 17 00:00:00 2001 From: sookim-1 Date: Wed, 21 Feb 2024 17:10:35 +0900 Subject: [PATCH] [Fixed] : Changed Facebook Login SDK and fixed Firebase build --- ChatApp.xcodeproj/project.pbxproj | 8 ++++---- ChatApp/AppDelegate.swift | 2 +- ChatApp/Core/Chat/Models/ATChatMessage.swift | 2 +- ChatApp/Core/Chat/Store/ATCRemoteData.swift | 3 ++- .../ViewControllers/ATCChatThreadViewController.swift | 2 +- ChatApp/Core/Helpers/ATCGenericFirebaseDataSource.swift | 4 +++- Podfile | 8 +++----- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/ChatApp.xcodeproj/project.pbxproj b/ChatApp.xcodeproj/project.pbxproj index 39c3f57..e7dfa78 100644 --- a/ChatApp.xcodeproj/project.pbxproj +++ b/ChatApp.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 51; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -586,7 +586,7 @@ }; }; buildConfigurationList = 17111D3B2128F29C008C7FBE /* Build configuration list for PBXProject "ChatApp" */; - compatibilityVersion = "Xcode 9.3"; + compatibilityVersion = "Xcode 12.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -894,7 +894,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = ChatApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -914,7 +914,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = ChatApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/ChatApp/AppDelegate.swift b/ChatApp/AppDelegate.swift index abcc2c5..61165a5 100644 --- a/ChatApp/AppDelegate.swift +++ b/ChatApp/AppDelegate.swift @@ -6,7 +6,7 @@ // Copyright © 2023 Instamobile. All rights reserved. // -import Firebase +import FirebaseCore import UIKit @UIApplicationMain diff --git a/ChatApp/Core/Chat/Models/ATChatMessage.swift b/ChatApp/Core/Chat/Models/ATChatMessage.swift index 152bc79..4a7a456 100644 --- a/ChatApp/Core/Chat/Models/ATChatMessage.swift +++ b/ChatApp/Core/Chat/Models/ATChatMessage.swift @@ -6,7 +6,7 @@ // Copyright © 2018 Instamobile. All rights reserved. // -import Firebase +import FirebaseCore import FirebaseFirestore import MessageKit diff --git a/ChatApp/Core/Chat/Store/ATCRemoteData.swift b/ChatApp/Core/Chat/Store/ATCRemoteData.swift index 46735de..398b7ba 100644 --- a/ChatApp/Core/Chat/Store/ATCRemoteData.swift +++ b/ChatApp/Core/Chat/Store/ATCRemoteData.swift @@ -7,7 +7,8 @@ // import Foundation -import Firebase +import FirebaseCore +import FirebaseFirestore /// Sample class that gets all channels from the remote data store. class ATCRemoteData{ diff --git a/ChatApp/Core/Chat/ViewControllers/ATCChatThreadViewController.swift b/ChatApp/Core/Chat/ViewControllers/ATCChatThreadViewController.swift index 84a591d..bde0d18 100644 --- a/ChatApp/Core/Chat/ViewControllers/ATCChatThreadViewController.swift +++ b/ChatApp/Core/Chat/ViewControllers/ATCChatThreadViewController.swift @@ -8,7 +8,7 @@ import UIKit import Photos -import Firebase +import FirebaseCore import MessageKit import FirebaseFirestore import FirebaseStorage diff --git a/ChatApp/Core/Helpers/ATCGenericFirebaseDataSource.swift b/ChatApp/Core/Helpers/ATCGenericFirebaseDataSource.swift index bada168..78d7b1f 100644 --- a/ChatApp/Core/Helpers/ATCGenericFirebaseDataSource.swift +++ b/ChatApp/Core/Helpers/ATCGenericFirebaseDataSource.swift @@ -6,7 +6,9 @@ // Copyright © 2017 iOS App Templates. All rights reserved. // -import Firebase +import FirebaseCore +import FirebaseFirestore +import FirebaseDatabase let kItemsPerPage: UInt = 10 diff --git a/Podfile b/Podfile index 9a3686b..6af81cb 100644 --- a/Podfile +++ b/Podfile @@ -1,14 +1,12 @@ # Uncomment the next line to define a global platform for your project -platform :ios, '12.0' +platform :ios, '14.0' target 'ChatApp' do use_frameworks! # Pods for ChatApp pod 'MessageKit' - pod 'FacebookCore' - pod 'FacebookLogin' - pod 'FacebookShare' + pod 'FBSDKLoginKit' pod 'Firebase/Core' pod 'Firebase/Auth' @@ -19,4 +17,4 @@ target 'ChatApp' do pod 'Alamofire' pod 'Kingfisher' -end +end \ No newline at end of file