forked from telling-me/tellingme-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
온보딩에서 일어나는 앱 크래시 버그를 핫픽스합니다. (telling-me#149)
- Loading branch information
Showing
7 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// AnalyzeManager.swift | ||
// tellingMe | ||
// | ||
// Created by KYUBO A. SHIM on 2023/10/06. | ||
// | ||
|
||
import UIKit | ||
|
||
import FirebaseAnalytics | ||
|
||
final class GAManager { | ||
static let shared = GAManager() | ||
|
||
private init() {} | ||
|
||
enum EventType { | ||
case screen(screenName: String) | ||
|
||
var eventName: String { | ||
switch self { | ||
case .screen: | ||
return "screen" | ||
} | ||
} | ||
|
||
var parameters: [String: Any]? { | ||
switch self { | ||
case .screen(let screenName): | ||
["screen": screenName] | ||
} | ||
} | ||
} | ||
|
||
func logEvent(eventType: EventType) { | ||
Analytics.logEvent(eventType.eventName, parameters: eventType.parameters) | ||
} | ||
|
||
} |