-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/src/main/java/dev/arkbuilders/navigator/analytics/AnalyticsModule.kt
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,17 @@ | ||
package dev.arkbuilders.navigator.analytics | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dev.arkbuilders.navigator.analytics.folders.FoldersAnalytics | ||
import dev.arkbuilders.navigator.analytics.folders.FoldersAnalyticsImpl | ||
import org.matomo.sdk.Tracker | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
class AnalyticsModule { | ||
|
||
@Singleton | ||
@Provides | ||
fun provideFolderAnalytics(matomoTracker: Tracker): FoldersAnalytics = | ||
FoldersAnalyticsImpl(matomoTracker) | ||
} |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/dev/arkbuilders/navigator/analytics/folders/FoldersAnalytics.kt
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,6 @@ | ||
package dev.arkbuilders.navigator.analytics.folders | ||
|
||
interface FoldersAnalytics { | ||
fun trackScreen() | ||
fun trackAction() | ||
} |
17 changes: 17 additions & 0 deletions
17
app/src/main/java/dev/arkbuilders/navigator/analytics/folders/FoldersAnalyticsImpl.kt
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,17 @@ | ||
package dev.arkbuilders.navigator.analytics.folders | ||
|
||
import org.matomo.sdk.Tracker | ||
import javax.inject.Inject | ||
|
||
class FoldersAnalyticsImpl @Inject constructor( | ||
private val matomoTracker: Tracker | ||
): FoldersAnalytics { | ||
|
||
override fun trackScreen() { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun trackAction() { | ||
TODO("Not yet implemented") | ||
} | ||
} |
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