Skip to content

Commit

Permalink
Remove ToolOpenedAnalytics since dropping AppsFlyer
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Nov 8, 2024
1 parent 9e4a45b commit eda4157
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 58 deletions.
4 changes: 0 additions & 4 deletions godtools.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@
45AD202B25938A9800A096A0 /* CardJumpUserDefaultsCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD1EE725938A9800A096A0 /* CardJumpUserDefaultsCache.swift */; };
45AD202C25938A9800A096A0 /* SharedUserDefaultsCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD1EE925938A9800A096A0 /* SharedUserDefaultsCache.swift */; };
45AD204E25938AC300A096A0 /* TrackActionAnalytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD203925938AC300A096A0 /* TrackActionAnalytics.swift */; };
45AD205125938AC300A096A0 /* ToolOpenedAnalytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD203C25938AC300A096A0 /* ToolOpenedAnalytics.swift */; };
45AD205625938AC300A096A0 /* AnalyticsConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD204225938AC300A096A0 /* AnalyticsConstants.swift */; };
45AD205825938AC300A096A0 /* FirebaseAnalytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD204525938AC300A096A0 /* FirebaseAnalytics.swift */; };
45AD205D25938AC300A096A0 /* AnalyticsContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45AD204C25938AC300A096A0 /* AnalyticsContainer.swift */; };
Expand Down Expand Up @@ -2608,7 +2607,6 @@
45AD1EE725938A9800A096A0 /* CardJumpUserDefaultsCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CardJumpUserDefaultsCache.swift; sourceTree = "<group>"; };
45AD1EE925938A9800A096A0 /* SharedUserDefaultsCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SharedUserDefaultsCache.swift; sourceTree = "<group>"; };
45AD203925938AC300A096A0 /* TrackActionAnalytics.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TrackActionAnalytics.swift; sourceTree = "<group>"; };
45AD203C25938AC300A096A0 /* ToolOpenedAnalytics.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ToolOpenedAnalytics.swift; sourceTree = "<group>"; };
45AD204225938AC300A096A0 /* AnalyticsConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnalyticsConstants.swift; sourceTree = "<group>"; };
45AD204525938AC300A096A0 /* FirebaseAnalytics.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirebaseAnalytics.swift; sourceTree = "<group>"; };
45AD204C25938AC300A096A0 /* AnalyticsContainer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnalyticsContainer.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -8484,7 +8482,6 @@
D1CE0957273EAC0D00C8832C /* TutorialVideoAnalytics */,
D1DD79FB26690C5F000F1351 /* Models */,
45AD203925938AC300A096A0 /* TrackActionAnalytics.swift */,
45AD203C25938AC300A096A0 /* ToolOpenedAnalytics.swift */,
);
path = AnalyticsTracking;
sourceTree = "<group>";
Expand Down Expand Up @@ -12855,7 +12852,6 @@
D43FC1BE2B62EFD800F8310E /* View+AppLifecycle.swift in Sources */,
4592156A2B82955300387AC5 /* GetSpotlightToolsRepository.swift in Sources */,
45ACBE062B1F64230017D17E /* LessonViewModel.swift in Sources */,
45AD205125938AC300A096A0 /* ToolOpenedAnalytics.swift in Sources */,
45300B7F2C34282900E6F97D /* LocaleLanguageRegionNameInterface.swift in Sources */,
45C2AF4A2A81764D004958AB /* GTPageControlAttributes.swift in Sources */,
45AE974B27C97A9500C2CB33 /* Animation+MobileContentRenderableModel.swift in Sources */,
Expand Down
4 changes: 0 additions & 4 deletions godtools/App/DependencyContainer/AppDiContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ class AppDiContainer {
)
}

func getToolOpenedAnalytics() -> ToolOpenedAnalytics {
return ToolOpenedAnalytics()
}

func getToolTrainingTipsOnboardingViews() -> ToolTrainingTipsOnboardingViewsService {
return ToolTrainingTipsOnboardingViewsService(
cache: ToolTrainingTipsOnboardingViewsUserDefaultsCache(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class TractViewModel: MobileContentPagesViewModel {
private let resourceViewsService: ResourceViewsService
private let trackActionAnalyticsUseCase: TrackActionAnalyticsUseCase
private let persistUserToolLanguageSettingsUseCase: PersistUserToolLanguageSettingsUseCase
private let toolOpenedAnalytics: ToolOpenedAnalytics
private let liveShareStream: String?

private var cancellables: Set<AnyCancellable> = Set()
Expand All @@ -32,14 +31,13 @@ class TractViewModel: MobileContentPagesViewModel {

@Published var hidesRemoteShareIsActive: Bool = true

init(flowDelegate: FlowDelegate, renderer: MobileContentRenderer, tractRemoteSharePublisher: TractRemoteSharePublisher, tractRemoteShareSubscriber: TractRemoteShareSubscriber, resourceViewsService: ResourceViewsService, trackActionAnalyticsUseCase: TrackActionAnalyticsUseCase, resourcesRepository: ResourcesRepository, translationsRepository: TranslationsRepository, mobileContentEventAnalytics: MobileContentRendererEventAnalyticsTracking, getCurrentAppLanguageUseCase: GetCurrentAppLanguageUseCase, getTranslatedLanguageName: GetTranslatedLanguageName, toolOpenedAnalytics: ToolOpenedAnalytics, liveShareStream: String?, initialPage: MobileContentPagesPage?, trainingTipsEnabled: Bool, incrementUserCounterUseCase: IncrementUserCounterUseCase, selectedLanguageIndex: Int?, persistUserToolLanguageSettingsUseCase: PersistUserToolLanguageSettingsUseCase, shouldPersistToolSettings: Bool) {
init(flowDelegate: FlowDelegate, renderer: MobileContentRenderer, tractRemoteSharePublisher: TractRemoteSharePublisher, tractRemoteShareSubscriber: TractRemoteShareSubscriber, resourceViewsService: ResourceViewsService, trackActionAnalyticsUseCase: TrackActionAnalyticsUseCase, resourcesRepository: ResourcesRepository, translationsRepository: TranslationsRepository, mobileContentEventAnalytics: MobileContentRendererEventAnalyticsTracking, getCurrentAppLanguageUseCase: GetCurrentAppLanguageUseCase, getTranslatedLanguageName: GetTranslatedLanguageName, liveShareStream: String?, initialPage: MobileContentPagesPage?, trainingTipsEnabled: Bool, incrementUserCounterUseCase: IncrementUserCounterUseCase, selectedLanguageIndex: Int?, persistUserToolLanguageSettingsUseCase: PersistUserToolLanguageSettingsUseCase, shouldPersistToolSettings: Bool) {

self.flowDelegate = flowDelegate
self.tractRemoteSharePublisher = tractRemoteSharePublisher
self.tractRemoteShareSubscriber = tractRemoteShareSubscriber
self.resourceViewsService = resourceViewsService
self.trackActionAnalyticsUseCase = trackActionAnalyticsUseCase
self.toolOpenedAnalytics = toolOpenedAnalytics
self.liveShareStream = liveShareStream
self.persistUserToolLanguageSettingsUseCase = persistUserToolLanguageSettingsUseCase
self.shouldPersistToolSettings = shouldPersistToolSettings
Expand Down Expand Up @@ -141,9 +139,6 @@ class TractViewModel: MobileContentPagesViewModel {
subscribeToLiveShareStreamIfNeeded()

_ = resourceViewsService.postNewResourceView(resourceId: resource.id)

toolOpenedAnalytics.trackFirstToolOpenedIfNeeded(resource: resource)
toolOpenedAnalytics.trackToolOpened(resource: resource)
}

private func trackLanguageTapped(tappedLanguage: LanguageModel) {
Expand Down
1 change: 0 additions & 1 deletion godtools/App/Flows/Tract/TractFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ extension TractFlow {
mobileContentEventAnalytics: appDiContainer.getMobileContentRendererEventAnalyticsTracking(),
getCurrentAppLanguageUseCase: appDiContainer.feature.appLanguage.domainLayer.getCurrentAppLanguageUseCase(),
getTranslatedLanguageName: appDiContainer.dataLayer.getTranslatedLanguageName(),
toolOpenedAnalytics: appDiContainer.getToolOpenedAnalytics(),
liveShareStream: liveShareStream,
initialPage: initialPage,
trainingTipsEnabled: trainingTipsEnabled,
Expand Down

This file was deleted.

0 comments on commit eda4157

Please sign in to comment.