Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ plugins {
}

android {
// Namespace (Kotlin/R-class package) stays distinct from :app's; applicationId below is what
// matters for Wear OS pairing and can safely differ from it.
namespace = "com.bugzapperlabs.mycasts.wear"
compileSdk = 36

defaultConfig {
applicationId = "com.bugzapperlabs.mycasts.wear"
// Must match :app's applicationId exactly (issue #276): the Wear OS Data Layer API only
// syncs data between a phone app and a watch app that share the same package name -- two
// differently-packaged apps are treated as unrelated by Play Services even when both
// devices see each other as connected nodes, so this isn't a style choice, it's required
// for WearSyncClient/DataClient to deliver anything at all. This is also why real Wear OS
// companion apps (the phone and watch halves of the same product) always share one
// package name rather than being namespaced like ":wear"'s own Kotlin code is.
applicationId = "com.bugzapperlabs.mycasts"
minSdk = 31
targetSdk = 36
versionCode = 1
Expand Down
Loading