-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[FEATURE REQUEST] Move to AndroidX Preference and new structure for settings #2867
Comments
Due to a Google's intern bug, lint is not passing with Fragment version 1.3.1, showing the following error: To temporary fix it, we have added a new line to The issue will be fixed in the next release, so we MUST remember to remove that line before merging with master, checking whether the new Activity release took place Link to Google's issue: https://issuetracker.google.com/issues/182388985 |
Regarding some flaky tests related with settings and some activities that we use inside of them, I found the error when the process crashes and BitRise or the "Run" log in AndroidStudio don't give more information than "Process crashed". Looking in the Logcat tab, we can see that the root error that occurs when some of these flaky tests fail (they fail approximately 80% of times, so it's not worth it) is:
Looking for some more info, I found it may be caused by a try to access system services before the execution of onCreate (https://stackoverflow.com/a/64349408), but revising the code, I would say that every invocation to getSystemService is done after onCreate. What is clear is that here there's some kind of race condition and that's why tests fail sometimes but not always. Tested in Nexus 5 (API 29) UPDATE: this was already solved. The problem was that some of the tests that were executed previously to the ones where this exception was thrown drove to the login screen, and since in the device where they are being executed has not an attached account, the device crashed. |
The final state of the UI tests after the attempt to fix flakiness is the next:
Everything I wrote here is also properly documented in the code. |
Ready to 2.18 |
Current implementation of Settings is deprecated. So, it is recommended to move to AndroidX Preferences.
Move to Android X implementation, fix flaky tests and check viability #2651
This issue is an epic, that will have several individual issues attached to move every section of the Settings to the new implementation.
Every implemented section will be merged to a branch, that will be merged into
master
when all the work is finished, to avoid bad intermediate statuses.Additional context
Issues list
PR:
The text was updated successfully, but these errors were encountered: