From 5d523e4d34c740aebb1c8819783f1593931bdcf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Drobni=C4=8D?= Date: Wed, 23 Sep 2026 10:22:44 +0200 Subject: [PATCH 1/2] docs(sample): fix sample build --- sample/android-java/app/build.gradle.kts | 2 +- sample/android/app/build.gradle.kts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sample/android-java/app/build.gradle.kts b/sample/android-java/app/build.gradle.kts index 524ba82..f18f46f 100644 --- a/sample/android-java/app/build.gradle.kts +++ b/sample/android-java/app/build.gradle.kts @@ -4,7 +4,7 @@ plugins { android { namespace = "io.rebble.pebblekit2.sample" - compileSdk = 36 + compileSdk = 37 defaultConfig { applicationId = "io.rebble.pebblekit2.sample" diff --git a/sample/android/app/build.gradle.kts b/sample/android/app/build.gradle.kts index 249daf4..ef26b95 100644 --- a/sample/android/app/build.gradle.kts +++ b/sample/android/app/build.gradle.kts @@ -1,12 +1,11 @@ plugins { alias(libs.plugins.android.application) - alias(libs.plugins.kotlin.android) alias(libs.plugins.kotlin.compose) } android { namespace = "io.rebble.pebblekit2.sample" - compileSdk = 36 + compileSdk = 37 defaultConfig { applicationId = "io.rebble.pebblekit2.sample" From a7001ba291cc54bac3cd6a5874457ad26dc4a575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Drobni=C4=8D?= Date: Wed, 23 Sep 2026 10:23:00 +0200 Subject: [PATCH 2/2] ci: compile samples in CI pipeline --- .github/workflows/publish.yml | 13 +++++++++++++ .github/workflows/verifyPr.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad6b095..6afcbf0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,10 +52,23 @@ jobs: packages: platform-tools - name: Validate Gradle Wrapper uses: gradle/actions/wrapper-validation@ac638b010cf58a27ee6c972d7336334ccaf61c96 + - name: Install uv + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 + - name: Install pebble SDK + run: "uv tool install pebble-tool && pebble sdk install latest" - name: Compile library run: "./gradlew --parallel assemble" - name: Lint run: "./gradlew --continue --parallel lintDebug detektMain detektTest detektDebugUnitTest buildHealth reportMerge --continue" + - name: Compile android kotlin sample + run: "./gradlew --parallel assembleDebug" + working-directory: sample/android + - name: Compile android java sample + run: "./gradlew --parallel assembleDebug" + working-directory: sample/android-java + - name: Compile pebble sample + run: "pebble build" + working-directory: sample/watch - name: Generate Changelog id: changelog uses: inovait/actions-common/git-changelog-generator@e39161d71d6b0200b425ed4145cc4cc080c4cf56 diff --git a/.github/workflows/verifyPr.yml b/.github/workflows/verifyPr.yml index 9fb78e9..56f560b 100644 --- a/.github/workflows/verifyPr.yml +++ b/.github/workflows/verifyPr.yml @@ -27,7 +27,20 @@ jobs: packages: platform-tools - name: Validate Gradle Wrapper uses: gradle/actions/wrapper-validation@ac638b010cf58a27ee6c972d7336334ccaf61c96 + - name: Install uv + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 + - name: Install pebble SDK + run: "uv tool install pebble-tool && pebble sdk install latest" - name: Compile library run: "./gradlew --parallel assemble" - name: Lint run: "./gradlew --continue --parallel lintDebug detektMain detektTest detektDebugUnitTest buildHealth reportMerge --continue" + - name: Compile android kotlin sample + run: "./gradlew --parallel assembleDebug" + working-directory: sample/android + - name: Compile android java sample + run: "./gradlew --parallel assembleDebug" + working-directory: sample/android-java + - name: Compile pebble sample + run: "pebble build" + working-directory: sample/watch