Skip to content

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
@vbuberen vbuberen deleted the fix/device_info_tests branch July 9, 2024 15:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

3 participants