chore: update Android API levels in workflow matrix#1193
Conversation
drop 19, according to Android studio there is 0% of android 19 users
WalkthroughThe Android emulator API level matrix in the GitHub Actions workflow is updated to support newer Android versions. API level 19 is removed and API level 35 is added, shifting the test matrix from [19, 21, 24, 29] to [21, 24, 29, 35]. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/emulate.yml (1)
42-42: 🛠️ Refactor suggestion | 🟠 MajorRemove the now-dead API-19 conditional from the
scriptstep.With API 19 removed from the matrix,
matrix.android-api-level == 19is alwaysfalse. The expression${{ matrix.android-api-level == 19 && '-PhttpURLConnection' || '' }}permanently evaluates to'', leaving a no-op placeholder in everygradlewinvocation.♻️ Proposed fix
- script: ./gradlew :android:connectedAndroidTest ${{ matrix.android-api-level == 19 && '-PhttpURLConnection' || '' }} || (adb logcat -d System.out:I && exit 1) + script: ./gradlew :android:connectedAndroidTest || (adb logcat -d System.out:I && exit 1)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/emulate.yml at line 42, The script line currently embeds a dead conditional `${{ matrix.android-api-level == 19 && '-PhttpURLConnection' || '' }}` that always evaluates to an empty string; edit the `script` step so the `./gradlew :android:connectedAndroidTest` invocation no longer includes that conditional placeholder (remove the `${{ ... }}` segment) and keep the existing `|| (adb logcat -d System.out:I && exit 1)` fallback intact so the command simply runs `./gradlew :android:connectedAndroidTest` with the same error-handling behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In @.github/workflows/emulate.yml:
- Line 42: The script line currently embeds a dead conditional `${{
matrix.android-api-level == 19 && '-PhttpURLConnection' || '' }}` that always
evaluates to an empty string; edit the `script` step so the `./gradlew
:android:connectedAndroidTest` invocation no longer includes that conditional
placeholder (remove the `${{ ... }}` segment) and keep the existing `|| (adb
logcat -d System.out:I && exit 1)` fallback intact so the command simply runs
`./gradlew :android:connectedAndroidTest` with the same error-handling behavior.
drop 19, according to Android studio there is 0% of android 19 users
we'll drop android 19 officially in the next minor release and bump minSdk version
Summary by CodeRabbit