Skip to content

chore: Improve SentryJava logging#2556

Open
bitsandfoxes wants to merge 8 commits intomainfrom
chore/cleanup-jni-bridge
Open

chore: Improve SentryJava logging#2556
bitsandfoxes wants to merge 8 commits intomainfrom
chore/cleanup-jni-bridge

Conversation

@bitsandfoxes
Copy link
Contributor

Follows #2548 that surfaced some improvements regarding cleanup and better logging.

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@bitsandfoxes bitsandfoxes requested a review from a team February 20, 2026 13:28
Base automatically changed from feat/app-runner-android to main February 25, 2026 13:58
@bitsandfoxes bitsandfoxes force-pushed the chore/cleanup-jni-bridge branch from 3aea70b to c9537e9 Compare February 25, 2026 14:19
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

if ($_.Exception.Message -match "Activity class .* does not exist" -or $_.Exception.Message -match "Error type 3") {
Write-Host "Activity not found, trying fallback: $($script:FallbackAndroidComponent)"
$script:AndroidComponent = $script:FallbackAndroidComponent
$runResult = Invoke-DeviceApp -ExecutablePath $script:AndroidComponent -Arguments $extras
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fallback variable FallbackAndroidComponent is never defined

High Severity

The newly added fallback logic references $script:FallbackAndroidComponent, but this variable is never defined anywhere in the file or the codebase. The script sets $script:AndroidComponent in the BeforeAll block (choosing between UnityPlayerGameActivity and UnityPlayerActivity), but there's no corresponding assignment for the fallback. Since the script runs with Set-StrictMode -Version latest, accessing this undefined variable will throw a terminating error, causing the fallback path to always fail instead of recovering gracefully.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant