Skip to content

Commit

Permalink
feat(status-message): should include app version and flavour
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed Nov 26, 2024
1 parent f06fb5c commit 9350303
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Hebrew Translation (thanks to Ahiel and Natan)
- Dutch Translation (thanks to all contributors)
- Setting a preference that doesn't actually change the value won't have any effects (such as MQTT reconnecting) (#1875)
- Status messages contain the app version and flavour

### Bug fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonTypeInfo
import org.owntracks.android.BuildConfig
import org.owntracks.android.preferences.Preferences

@JsonTypeInfo(
Expand Down Expand Up @@ -47,4 +48,8 @@ class AddMessageStatus {
@JsonProperty("hib") var appHibernation = 0

@JsonProperty("loc") var locationPermission = 0

@JsonProperty("version") var version = BuildConfig.VERSION_CODE

@JsonProperty("flavour") var flavour = BuildConfig.FLAVOR
}
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ constructor(
}

fun publishStatusMessage() {
// Getting appHibernation takes a while, so lets not block the main thrad
// Getting appHibernation takes a while, so lets not block the main thread
scope.launch(ioDispatcher) {
messageProcessor.queueMessageForSending(
MessageStatus().apply {
Expand Down

0 comments on commit 9350303

Please sign in to comment.