-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share Wear session with main app to fix mismatch (#3439)
- Exchange server information between the Wear app and phone app, and create a temporary server on the phone that holds the Wear server information, to ensure that the same server is used on both devices
- Loading branch information
Showing
5 changed files
with
175 additions
and
65 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
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
18 changes: 18 additions & 0 deletions
18
common/src/main/java/io/homeassistant/companion/android/common/util/WearDataMessages.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,18 @@ | ||
package io.homeassistant.companion.android.common.util | ||
|
||
object WearDataMessages { | ||
const val KEY_UPDATE_TIME = "UpdateTime" | ||
|
||
const val CONFIG_IS_AUTHENTICATED = "isAuthenticated" | ||
const val CONFIG_SERVER_ID = "serverId" | ||
const val CONFIG_SERVER_EXTERNAL_URL = "serverExternalUrl" | ||
const val CONFIG_SERVER_WEBHOOK_ID = "serverWebhookId" | ||
const val CONFIG_SERVER_CLOUD_URL = "serverCloudUrl" | ||
const val CONFIG_SERVER_CLOUDHOOK_URL = "serverCloudhookUrl" | ||
const val CONFIG_SERVER_USE_CLOUD = "serverUseCloud" | ||
const val CONFIG_SERVER_REFRESH_TOKEN = "serverRefreshToken" | ||
const val CONFIG_SUPPORTED_DOMAINS = "supportedDomains" | ||
const val CONFIG_FAVORITES = "favorites" | ||
const val CONFIG_TEMPLATE_TILE = "templateTile" | ||
const val CONFIG_TEMPLATE_TILE_REFRESH_INTERVAL = "templateTileRefreshInterval" | ||
} |
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