Skip to content

Commit

Permalink
Disable wear
Browse files Browse the repository at this point in the history
Google Play requires update from the ancient play wear version,
which requires migration to the ancient (non-bundled) wear interface.
The wear app was not built as it was.
  • Loading branch information
gerhardol committed Jun 8, 2024
1 parent 5cd88d0 commit 1db1955
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ android {
java.srcDirs = ['src/main']
if (rootProject.ext.allowNonFree) {
java.srcDirs += ['src/play']
if (rootProject.ext.enableWear) {
java.srcDirs += ['src/wear']
}
else {
java.srcDirs += ['src/nonwear']
}
} else {
java.srcDirs += ['src/free']
java.srcDirs += ['src/nonwear']
}
resources.srcDirs = java.srcDirs
aidl.srcDirs = java.srcDirs
Expand Down
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ project.ext {
appcompat_version = "1.7.0"
annotation_version = "1.6.0"
preference_version = "1.2.1"
//Note: Later Play Services will require a rewrite of NodeApi.NodeListener
googlePlayServicesVersion = '11.0.4'
//Note: Play Services later than 11.0.4 disables wear, requires a rewrite of NodeApi.NodeListener
googlePlayServicesVersion = '21.3.0'
googleWearVersion = '2.9.0'

junitVersion = '4.13.2'
Expand All @@ -37,7 +37,8 @@ project.ext {

// F-Droid builds only allow free software (wear dir deleted at builds)
allowNonFree = !project.hasProperty('org.runnerup.free') && rootProject.file("wear").exists()
enableWear = allowNonFree
// wear disabled, requires Play services migration
enableWear = false

// Note: AntPlus may have to be downloaded explicitly due to licensing
// Therefore, the .aar file may not be redistributed in the RU repo
Expand Down

0 comments on commit 1db1955

Please sign in to comment.