-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Disable mixpanel in tests (#2140)
- Loading branch information
1 parent
3e76b0c
commit b112436
Showing
7 changed files
with
15 additions
and
15 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
5 changes: 3 additions & 2 deletions
5
flank_wrapper/src/main/kotlin/com/github/flank/wrapper/internal/FlankWrapperAnalytics.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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package com.github.flank.wrapper.internal | ||
|
||
import flank.common.config.isTest | ||
import flank.tool.analytics.mixpanel.Mixpanel | ||
|
||
private const val FLANK_WRAPPER = "flank_wrapper" | ||
private const val EVENT_RUN = "flank run" | ||
private const val EVENT_NEW_FLANK_VERSION_DOWNLOADED = "new_version_downloaded" | ||
|
||
internal fun sendAnalyticsNewFlankVersionDownloaded() { | ||
Mixpanel.configure(FLANK_WRAPPER) | ||
Mixpanel.configure(FLANK_WRAPPER, blockUsageStatistics = isTest()) | ||
Mixpanel.add(FLANK_WRAPPER, EVENT_NEW_FLANK_VERSION_DOWNLOADED) | ||
Mixpanel.send(FLANK_WRAPPER) | ||
} | ||
|
||
internal fun sendAnalyticsFlankRun() { | ||
Mixpanel.configure(FLANK_WRAPPER) | ||
Mixpanel.configure(FLANK_WRAPPER, blockUsageStatistics = isTest()) | ||
Mixpanel.add(FLANK_WRAPPER, EVENT_RUN) | ||
Mixpanel.send(FLANK_WRAPPER) | ||
} |
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 +1 @@ | ||
1.2.2 | ||
1.2.3 |
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