Skip to content

Commit

Permalink
feat: google analytics 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mooyoung2309 committed Oct 3, 2023
1 parent 5782189 commit 81d98ab
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@ Derived/
*.p12
master.key
*.package.resolved
GoogleService-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public extension [TargetDependency] {
]
case .Folio:
return [
.external(name: "GoogleMobileAds")
.external(name: "GoogleMobileAds"),
.external(name: "FirebaseAnalytics")
]
default: return []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct MinimalButton: View {
}
.padding(.vertical, 10)
})
.background(isActive ? Color.foreground : .gray)
.background(isActive ? Color.foreground : Color.foreground) //TODO: active 현재 미사용
.clipShape(
RoundedRectangle(
cornerRadius: 8,
Expand Down
5 changes: 4 additions & 1 deletion Projects/Toolinder/App/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//

import UIKit
import SwiftUI
import FirebaseCore

import GoogleMobileAds

Expand All @@ -22,7 +24,8 @@ class AppDelegate: NSObject, UIApplicationDelegate {
GADMobileAds.sharedInstance().start(completionHandler: nil)
}
}


FirebaseApp.configure()

return true
}
Expand Down
2 changes: 2 additions & 0 deletions Projects/Toolinder/App/Sources/RootApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import ToolinderDomain

@main
struct RootApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate

var body: some Scene {
WindowGroup {
RootView(
Expand Down
4 changes: 3 additions & 1 deletion Tuist/Dependencies.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ let dependencies = Dependencies(
swiftPackageManager: [
.remote(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads", requirement: .upToNextMajor(from: "10.9.0")),
.remote(url: "https://github.com/pointfreeco/swift-composable-architecture", requirement: .upToNextMajor(from: "1.2.0")),
.remote(url: "https://github.com/realm/realm-swift", requirement: .upToNextMajor(from: "10.42.2"))
.remote(url: "https://github.com/realm/realm-swift", requirement: .upToNextMajor(from: "10.42.2")),
.remote(url: "https://github.com/firebase/firebase-ios-sdk", requirement: .upToNextMajor(from: "10.15.0"))

],
platforms: [.iOS]
)

0 comments on commit 81d98ab

Please sign in to comment.