Anki-Android
Anki-Android copied to clipboard
Productionised Webview Check using Dialog Boxes
Purpose / Description
Added dialog boxes which inform the users in older android devices of their old WebView versions (<=77) and also helps them update the WebView to a newer version.
Fixes
- Fixes #15855
Approach
The earlier debug only test informed the devs whether the WebView version was outdated , I have worked on that further and have introduced a dialog box for the users with a link to Wiki (Exact page can be changed by modifying the const val WEBVIEW_UPDATION_LINK with information regarding updating to the latest version.
Also , I tried to differentiate between the packages com.android.webview
and com.google.android.webview
as this requires special steps : com.android.webview
has to be disabled and com.google.android.webview
has to be installed as of https://github.com/ankidroid/Anki-Android/issues/15847#issuecomment-1988304056.
How Has This Been Tested?
-
Unit Tests (./gradlew jacocoUnitTestReport)
-
Ran on a virtual device (Android 7.0 , API 24 ) containing an older webview version to ensure the dialog box works
( I was unable to test whether the dialog box works for devices having "com.android.webview" )
https://github.com/ankidroid/Anki-Android/assets/112811133/fbcb92c2-5784-4390-9d1e-62df31e3d1df
Checklist
Please, go through these checks before submitting the PR.
- [X] You have a descriptive commit message with a short title (first line, max 50 chars).
- [x] You have commented your code, particularly in hard-to-understand areas
- [X] You have performed a self-review of your own code
- [X] UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
- [ ] UI Changes: You have tested your change using the Google Accessibility Scanner
Message to maintainers, this PR contains strings changes.
- Before merging this PR, it is best to run the "Sync Translations" GitHub action, then make and merge a PR from the i18n_sync branch to get translations cleaned out.
- Then merge this PR, and immediately do another translation PR so the huge change made by this PR's key changes are all by themselves.
Read more about updating strings on the wiki,
Hey, I have made some changes. Could you please review them?
Is this good as per the discord messages?
Added the package name and version.
The branch seems to have conflict. Can you try fixing the conflict.
Just a feedback @aayush-tripathi, next time instead of using [Merge branch 'main' into main]
use git rebase.
Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically