Skip to content

Commit

Permalink
Feat: firebse 추가 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
hryeong66 committed Aug 19, 2024
1 parent 255e844 commit 49fc3f1
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Projects/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ let project = Project.configure(
.Core.PPACUtil,
.ThirdParty.Lottie,
.ThirdParty.Dependency,
.ThirdParty.FirebaseAnalytics,
.ThirdParty.FirebaseCrashlytics
],
settings: .settings(
base: [
Expand Down Expand Up @@ -69,6 +71,8 @@ let project = Project.configure(
.Core.PPACNetwork,
.Core.PPACUtil,
.ThirdParty.Dependency,
.ThirdParty.FirebaseAnalytics,
.ThirdParty.FirebaseCrashlytics
],
settings: .settings(
base: [
Expand Down
5 changes: 3 additions & 2 deletions Projects/App/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import UIKit
import SwiftUI
import Home
import PPACUtil
import FirebaseCore

@main
final class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -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
}
}
117 changes: 117 additions & 0 deletions Tuist/Package.resolved
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion Tuist/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import PackageDescription
"Lottie": .framework,
"Kingfisher": .framework,
"PopupView": .framework
//"Firebase": .framework
]
)
#endif
Expand All @@ -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")
]
)
2 changes: 2 additions & 0 deletions Tuist/ProjectDescriptionHelpers/TargetDependency+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 49fc3f1

Please sign in to comment.