From 49fc3f1e6ee8c49f6d1348e9c7dbc6ddd73e1e45 Mon Sep 17 00:00:00 2001 From: hryeong66 Date: Mon, 19 Aug 2024 19:37:47 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20firebse=20=EC=B6=94=EA=B0=80=20(#67)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/App/Project.swift | 4 + Projects/App/Sources/AppDelegate.swift | 5 +- Tuist/Package.resolved | 117 ++++++++++++++++++ Tuist/Package.swift | 4 +- .../TargetDependency+.swift | 2 + 5 files changed, 129 insertions(+), 3 deletions(-) diff --git a/Projects/App/Project.swift b/Projects/App/Project.swift index 601e0d2..5d4cd19 100644 --- a/Projects/App/Project.swift +++ b/Projects/App/Project.swift @@ -38,6 +38,8 @@ let project = Project.configure( .Core.PPACUtil, .ThirdParty.Lottie, .ThirdParty.Dependency, + .ThirdParty.FirebaseAnalytics, + .ThirdParty.FirebaseCrashlytics ], settings: .settings( base: [ @@ -69,6 +71,8 @@ let project = Project.configure( .Core.PPACNetwork, .Core.PPACUtil, .ThirdParty.Dependency, + .ThirdParty.FirebaseAnalytics, + .ThirdParty.FirebaseCrashlytics ], settings: .settings( base: [ diff --git a/Projects/App/Sources/AppDelegate.swift b/Projects/App/Sources/AppDelegate.swift index 3c80cf5..0c4d647 100644 --- a/Projects/App/Sources/AppDelegate.swift +++ b/Projects/App/Sources/AppDelegate.swift @@ -10,6 +10,7 @@ import UIKit import SwiftUI import Home import PPACUtil +import FirebaseCore @main final class AppDelegate: UIResponder, UIApplicationDelegate { @@ -18,15 +19,15 @@ final class AppDelegate: UIResponder, UIApplicationDelegate { var appRouter: Router? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { - self.window = UIWindow(frame: UIScreen.main.bounds) + FirebaseApp.configure() + self.window = UIWindow(frame: UIScreen.main.bounds) let router = SplashRouter(navigationController) self.navigationController.setNavigationBarHidden(true, animated: false) self.appRouter = router self.window?.rootViewController = navigationController self.window?.makeKeyAndVisible() router.start() // router의 시작 메소드 호출 - return true } } diff --git a/Tuist/Package.resolved b/Tuist/Package.resolved index 0dee065..37bd63f 100644 --- a/Tuist/Package.resolved +++ b/Tuist/Package.resolved @@ -1,5 +1,23 @@ { "pins" : [ + { + "identity" : "abseil-cpp-binary", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/abseil-cpp-binary.git", + "state" : { + "revision" : "194a6706acbd25e4ef639bcaddea16e8758a3e27", + "version" : "1.2024011602.0" + } + }, + { + "identity" : "app-check", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/app-check.git", + "state" : { + "revision" : "3b62f154d00019ae29a71e9738800bb6f18b236d", + "version" : "10.19.2" + } + }, { "identity" : "combine-schedulers", "kind" : "remoteSourceControl", @@ -9,6 +27,69 @@ "version" : "1.0.0" } }, + { + "identity" : "firebase-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/firebase-ios-sdk", + "state" : { + "revision" : "eca84fd638116dd6adb633b5a3f31cc7befcbb7d", + "version" : "10.29.0" + } + }, + { + "identity" : "googleappmeasurement", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleAppMeasurement.git", + "state" : { + "revision" : "fe727587518729046fc1465625b9afd80b5ab361", + "version" : "10.28.0" + } + }, + { + "identity" : "googledatatransport", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleDataTransport.git", + "state" : { + "revision" : "a637d318ae7ae246b02d7305121275bc75ed5565", + "version" : "9.4.0" + } + }, + { + "identity" : "googleutilities", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/GoogleUtilities.git", + "state" : { + "revision" : "57a1d307f42df690fdef2637f3e5b776da02aad6", + "version" : "7.13.3" + } + }, + { + "identity" : "grpc-binary", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/grpc-binary.git", + "state" : { + "revision" : "e9fad491d0673bdda7063a0341fb6b47a30c5359", + "version" : "1.62.2" + } + }, + { + "identity" : "gtm-session-fetcher", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/gtm-session-fetcher.git", + "state" : { + "revision" : "a2ab612cb980066ee56d90d60d8462992c07f24b", + "version" : "3.5.0" + } + }, + { + "identity" : "interop-ios-for-google-sdks", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/interop-ios-for-google-sdks.git", + "state" : { + "revision" : "2d12673670417654f08f5f90fdd62926dc3a2648", + "version" : "100.0.0" + } + }, { "identity" : "kingfisher", "kind" : "remoteSourceControl", @@ -18,6 +99,15 @@ "version" : "7.12.0" } }, + { + "identity" : "leveldb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/leveldb.git", + "state" : { + "revision" : "a0bc79961d7be727d258d33d5a6b2f1023270ba1", + "version" : "1.22.5" + } + }, { "identity" : "lottie-ios", "kind" : "remoteSourceControl", @@ -27,6 +117,15 @@ "version" : "4.4.3" } }, + { + "identity" : "nanopb", + "kind" : "remoteSourceControl", + "location" : "https://github.com/firebase/nanopb.git", + "state" : { + "revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1", + "version" : "2.30910.0" + } + }, { "identity" : "popupview", "kind" : "remoteSourceControl", @@ -36,6 +135,15 @@ "version" : "3.0.4" } }, + { + "identity" : "promises", + "kind" : "remoteSourceControl", + "location" : "https://github.com/google/promises.git", + "state" : { + "revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac", + "version" : "2.4.0" + } + }, { "identity" : "swift-clocks", "kind" : "remoteSourceControl", @@ -63,6 +171,15 @@ "version" : "1.3.0" } }, + { + "identity" : "swift-protobuf", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-protobuf.git", + "state" : { + "revision" : "e17d61f26df0f0e06f58f6977ba05a097a720106", + "version" : "1.27.1" + } + }, { "identity" : "swift-syntax", "kind" : "remoteSourceControl", diff --git a/Tuist/Package.swift b/Tuist/Package.swift index be7792d..024da45 100644 --- a/Tuist/Package.swift +++ b/Tuist/Package.swift @@ -10,6 +10,7 @@ import PackageDescription "Lottie": .framework, "Kingfisher": .framework, "PopupView": .framework + //"Firebase": .framework ] ) #endif @@ -20,6 +21,7 @@ let package = Package( .package(url: "https://github.com/pointfreeco/swift-dependencies", exact: "1.3.0"), .package(url: "https://github.com/airbnb/lottie-ios.git", from: "4.4.3"), .package(url: "https://github.com/onevcat/Kingfisher", from: "7.12.0"), - .package(url: "https://github.com/exyte/PopupView.git", from: "3.0.4") + .package(url: "https://github.com/exyte/PopupView.git", from: "3.0.4"), + .package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.27.0") ] ) diff --git a/Tuist/ProjectDescriptionHelpers/TargetDependency+.swift b/Tuist/ProjectDescriptionHelpers/TargetDependency+.swift index 082780c..e8cb887 100644 --- a/Tuist/ProjectDescriptionHelpers/TargetDependency+.swift +++ b/Tuist/ProjectDescriptionHelpers/TargetDependency+.swift @@ -33,6 +33,8 @@ extension TargetDependency { public static let Dependency = TargetDependency.external(name: "Dependencies") public static let Kingfisher = TargetDependency.external(name: "Kingfisher") public static let PopupView = TargetDependency.external(name: "PopupView") + public static let FirebaseAnalytics = TargetDependency.external(name: "FirebaseAnalytics") + public static let FirebaseCrashlytics = TargetDependency.external(name: "FirebaseCrashlytics") } public static let ResourceKit = TargetDependency.project(