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 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"