Skip to content

Commit

Permalink
Switch to targetSdk = 34 (#2229)
Browse files Browse the repository at this point in the history
* Build with targetSdk = 34

* Declare required permissions to run FGS on Wear5 (#2231)
An app must declare a specific permission based on the foreground service type on Wear 5

---------

Co-authored-by: Chansuk Yang <[email protected]>
  • Loading branch information
yschimke and huewu authored May 20, 2024
1 parent fe299f5 commit 1db80cc
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ai/sample/wear-gemini/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ android {
applicationId = "com.google.android.horologist.ai.sample.wear.gemini"
// Min because of Tiles
minSdk = 30
targetSdk = 33
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion ai/sample/wear-prompt-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
applicationId = "com.google.android.horologist.ai.sample.prompt"
// Min because of Tiles
minSdk = 30
targetSdk = 33
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion auth/sample/phone/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android {
applicationId = "com.google.android.horologist.auth.sample"

minSdk = 23
targetSdk = 33
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion auth/sample/wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
applicationId = "com.google.android.horologist.auth.sample"
// Min because of Tiles
minSdk = 26
targetSdk = 30
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion datalayer/sample/phone/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
applicationId = "com.google.android.horologist.datalayer.sample"

minSdk = 23
targetSdk = 33
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion datalayer/sample/wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
applicationId = "com.google.android.horologist.datalayer.sample"
// Min because of Tiles
minSdk = 26
targetSdk = 30
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion media/sample-benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

defaultConfig {
minSdk = 30
targetSdk = 33
targetSdk = 34

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["androidx.benchmark.fullTracing.enable"] = "true"
Expand Down
2 changes: 1 addition & 1 deletion media/sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {
applicationId = "com.google.android.horologist.mediasample"
// Min because of Tiles
minSdk = 26
targetSdk = 33
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions media/sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.horologist.mediasample">

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />

<uses-feature android:name="android.hardware.type.watch" />

<uses-feature
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android {
applicationId = "com.google.android.horologist.sample"
// Min because of Tiles
minSdk = 26
targetSdk = 30
targetSdk = 34

versionCode = 1
versionName = "1.0"
Expand Down

0 comments on commit 1db80cc

Please sign in to comment.