-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-custom-salt
- Loading branch information
Showing
9 changed files
with
252 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
lib/src/main/java/com/telemetrydeck/sdk/NavigationStatus.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,13 @@ | ||
package com.telemetrydeck.sdk | ||
|
||
interface NavigationStatus { | ||
/** | ||
* Apply the provided path as a visited destination. | ||
*/ | ||
fun applyDestination(path: String) | ||
|
||
/** | ||
* Returns the last destination path or an empty string if none has been provided. | ||
*/ | ||
fun getLastDestination(): String | ||
} |
19 changes: 19 additions & 0 deletions
19
lib/src/main/java/com/telemetrydeck/sdk/NavigationStatusCache.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,19 @@ | ||
package com.telemetrydeck.sdk | ||
|
||
class MemoryNavigationStatus(private var previousNavigationPath: String? = null) : | ||
NavigationStatus { | ||
|
||
/** | ||
* Apply the provided path as a visited destination. | ||
*/ | ||
override fun applyDestination(path: String) { | ||
previousNavigationPath = path | ||
} | ||
|
||
/** | ||
* Returns the last destination path or an empty string if none has been provided. | ||
*/ | ||
override fun getLastDestination(): String { | ||
return previousNavigationPath ?: "" | ||
} | ||
} |
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,8 @@ | ||
package com.telemetrydeck.sdk | ||
|
||
enum class PayloadParameters(val type: String) { | ||
TelemetryDeckNavigationSchemaVersion("TelemetryDeck.Navigation.schemaVersion"), | ||
TelemetryDeckNavigationIdentifier("TelemetryDeck.Navigation.identifier"), | ||
TelemetryDeckNavigationSourcePath("TelemetryDeck.Navigation.sourcePath"), | ||
TelemetryDeckNavigationDestinationPath("TelemetryDeck.Navigation.destinationPath"), | ||
} |
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,14 +1,13 @@ | ||
package com.telemetrydeck.sdk | ||
|
||
enum class SignalType(val type: String) { | ||
ActivityCreated("ActivityCreated"), | ||
ActivityStarted("ActivityStarted"), | ||
ActivityResumed("ActivityResumed"), | ||
ActivityPaused("ActivityPaused"), | ||
ActivityStopped("ActivityStopped"), | ||
ActivitySaveInstanceState("ActivitySaveInstanceState"), | ||
ActivityDestroyed("ActivityDestroyed"), | ||
AppBackground("AppBackground"), | ||
AppForeground("AppForeground"), | ||
NewSessionBegan("NewSessionBegan"), | ||
ActivityCreated("ActivityCreated"), ActivityStarted("ActivityStarted"), ActivityResumed("ActivityResumed"), ActivityPaused( | ||
"ActivityPaused" | ||
), | ||
ActivityStopped("ActivityStopped"), ActivitySaveInstanceState("ActivitySaveInstanceState"), ActivityDestroyed( | ||
"ActivityDestroyed" | ||
), | ||
AppBackground("AppBackground"), AppForeground("AppForeground"), NewSessionBegan("NewSessionBegan"), TelemetryDeckNavigationPathChanged( | ||
"TelemetryDeck.Navigation.pathChanged" | ||
) | ||
} |
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
Oops, something went wrong.