Skip to content

Commit

Permalink
remove free flavors from Automotive and Wear apps
Browse files Browse the repository at this point in the history
It is not possible to have a it's possible to have a free software app work
on Android Automotive or Android Wear.  They must include proprietary libs
in order to work.

#1206 (comment)
  • Loading branch information
eighthave committed Oct 6, 2023
1 parent cb8c235 commit d006195
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automotive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ android {
shrinkResources true
}
}
variantFilter { variant ->
if (variant.flavors*.name.contains("free")) {
// Android Automotive apps must include proprietary libs
setIgnore(true)
}
}
}

dependencies {
Expand Down
6 changes: 6 additions & 0 deletions wear/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ android {
freeCompilerArgs += "-opt-in=com.google.android.horologist.annotations.ExperimentalHorologistApi"
freeCompilerArgs += "-opt-in=com.google.android.horologist.media.ui.ExperimentalHorologistMediaUiApi"
}
variantFilter { variant ->
if (variant.flavors*.name.contains("free")) {
// Android Wear apps must include proprietary libs
setIgnore(true)
}
}
}

sentry {
Expand Down

0 comments on commit d006195

Please sign in to comment.