Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(package_info_plus): Fix integration test for Android #3082

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

vbuberen
Copy link
Collaborator

@vbuberen vbuberen commented Jul 9, 2024

Description

Fixing tests for installerStore value on Android as it seems like since Android 14 OS returns com.android.shell for apps installed via package manager, adb command (I suppose so) instead of null. Don't see any mentions of it in the documentation. Earlier we didn't see this test failing because we had no API 34 in our build matrix.
Checked with emulators and real phone with Android 14 - on Android 13 I see null, while on 14 for both virtual and real device see com.android.shell when installing example via Android Studio. I believe this fix for the integration test should be correct.

Screenshot 2024-07-09 at 14 32 20

Copy link
Member

@miquelbeltran miquelbeltran left a comment

Choose a reason for hiding this comment

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

Smart to use device_info_plus to determine the OS version in the unit tests ;)

@miquelbeltran
Copy link
Member

Title should be package_info_plus!

@miquelbeltran miquelbeltran changed the title test(device_info_plus): Fix integration test for Android test(package_info_plus): Fix integration test for Android Jul 9, 2024
@vbuberen
Copy link
Collaborator Author

vbuberen commented Jul 9, 2024

Smart to use device_info_plus to determine the OS version in the unit tests ;)

The first thing that came to my mind. Also, I don't know other ways to do this check.

Title should be package_info_plus!

Thanks for catching. Doing multiple things at once never ends well :(

@vbuberen vbuberen merged commit 5e9afd5 into main Jul 9, 2024
20 of 22 checks passed
@vbuberen vbuberen deleted the fix/device_info_tests branch July 9, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants