-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes * cleanup
- Loading branch information
Showing
46 changed files
with
1,230 additions
and
596 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CLIENT_ID</key> | ||
<string>1074796601956-ibaf9r1sunn4tfm8c9og40ejuhkcvukf.apps.googleusercontent.com</string> | ||
<key>REVERSED_CLIENT_ID</key> | ||
<string>com.googleusercontent.apps.1074796601956-ibaf9r1sunn4tfm8c9og40ejuhkcvukf</string> | ||
<key>API_KEY</key> | ||
<string>AIzaSyA-Fg5YNScjNlj_XPwBNeafUoqfZuuCyEk</string> | ||
<key>GCM_SENDER_ID</key> | ||
<string>1074796601956</string> | ||
<key>PLIST_VERSION</key> | ||
<string>1</string> | ||
<key>BUNDLE_ID</key> | ||
<string>io.newm.ios</string> | ||
<key>PROJECT_ID</key> | ||
<string>projectnewm-38b24</string> | ||
<key>STORAGE_BUCKET</key> | ||
<string>projectnewm-38b24.appspot.com</string> | ||
<key>IS_ADS_ENABLED</key> | ||
<false></false> | ||
<key>IS_ANALYTICS_ENABLED</key> | ||
<false></false> | ||
<key>IS_APPINVITE_ENABLED</key> | ||
<true></true> | ||
<key>IS_GCM_ENABLED</key> | ||
<true></true> | ||
<key>IS_SIGNIN_ENABLED</key> | ||
<true></true> | ||
<key>GOOGLE_APP_ID</key> | ||
<string>1:1074796601956:ios:68c857bcac45cfbd7db571</string> | ||
</dict> | ||
</plist> |
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
2 changes: 1 addition & 1 deletion
2
iosApp/Modules/AudioPlayer/VLCAudioPlayer/Extensions/Seconds.swift
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Foundation | ||
|
||
public protocol ErrorReporting { | ||
public protocol ErrorReporting: Sendable { | ||
func logError(_ error: String) | ||
func logError(_ error: Error) | ||
} |
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,24 @@ | ||
import ModuleLinker | ||
import Foundation | ||
import Resolver | ||
import FirebaseCore | ||
|
||
final public class AnalyticsModule: Module { | ||
public static var shared = AnalyticsModule() | ||
private let newmAnalytics = NEWMAnalytics() | ||
|
||
init() { | ||
FirebaseApp.configure() | ||
NEWMAnalytics().setup() | ||
} | ||
|
||
public func registerAllServices() { | ||
|
||
} | ||
|
||
#if DEBUG | ||
public func registerAllMockedServices(mockResolver: Resolver) { | ||
|
||
} | ||
#endif | ||
} |
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,46 @@ | ||
@preconcurrency import shared | ||
import FirebaseAnalytics | ||
import Combine | ||
import Resolver | ||
import Foundation | ||
import SharedExtensions | ||
|
||
public class NEWMAnalytics { | ||
private var cancels: Set<AnyCancellable> = [] | ||
|
||
func setup() { | ||
NotificationCenter.default.publisher(for: shared.Notification().loginStateChanged) | ||
.receive(on: DispatchQueue.main) | ||
.sink { _ in | ||
Task { @MainActor in | ||
let user = Resolver.resolve(UserDetailsUseCase.self) | ||
NEWMAnalytics.setUserId(userId: (try? await user.fetchLoggedInUserDetails().id) ?? "") | ||
} | ||
} | ||
.store(in: &cancels) | ||
|
||
Task { @MainActor in | ||
let user = Resolver.resolve(UserDetailsUseCase.self) | ||
NEWMAnalytics.setUserId(userId: (try? await user.fetchLoggedInUserDetails().id) ?? "") | ||
} | ||
} | ||
|
||
static public func trackClickEvent(buttonName: String, screenName: String, properties: [String : Any]?) { | ||
var properties = properties | ||
properties?["button_name"] = buttonName | ||
properties?["screen_name"] = screenName | ||
Analytics.logEvent("button_click", parameters: properties) | ||
} | ||
|
||
static public func trackEvent(eventName: String, properties: [String : Any]?) { | ||
Analytics.logEvent(eventName, parameters: properties) | ||
} | ||
|
||
static public func setUserId(userId: String) { | ||
Analytics.setUserID(userId) | ||
} | ||
|
||
static public func setUserProperty(propertyName: String, value: String) { | ||
Analytics.setUserProperty(value, forName: propertyName) | ||
} | ||
} |
Oops, something went wrong.