<!--
Thanks for contributing!
Provide a description of your changes below and a general summary in the
title
Please look at the following checklist to ensure that your PR can be
accepted quickly:
-->
## Description
<!--- Describe your changes in detail -->
There are two issues with Bitwarden imports ATM:
1. TOTP secrets in Bitwarden are sometimes saved in a format of
`otpauth://[...]` and sometimes in a format of secret only. Ente auth
assumes that only the second one is used, which is not true and causes
an exception. To make both methods work as excepted, in the code, I'm
checking which format is used and create `Code` object accordingly.
2. Sometimes items in Bitwarden exports are not accounts, but rather
notes. In that case, the `item` variable in the
`_processBitwardenExportFile` method does not contain the `login`
attribute, which causes an exception. I've added a check to make sure
that the item we're parsing is indeed an account.
It is my first time making something in Dart, so please don't be too
harsh about my code :)
## Type of Change
<!--- Put an `x` in all the boxes that apply: -->
- [ ] 🖼️ New icon
- [ ] ✨ New feature (non-breaking change which adds functionality)
- [x] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🧹 Code refactor
- [ ] ✅ Build configuration change
- [ ] 📝 Documentation
- [ ] 🗑️ Chore
## Type of Change
- [x] ✨ New feature (non-breaking change which adds functionality)
## Description
Fall-back to theme's icon-color when the icon-color is too light or
dark. Fixes#403
Logic
1. If RGB values are almost equal (`#000000`, `#0F0F11`, `#212121`,
`#27272A`, `#464949`, `#FFFFFF`)
2. Compute its luminance/brightness (cache this value as it is an
expensive task)
3. If its too bright or dark, return theme's icon-color
I've manually set the threshold values for brightness in light-theme to
be `0.7` and in dark-theme to be `0.05`
https://github.com/ente-io/auth/assets/53324291/aa1e8413-631d-4039-8c08-f8c4d1856fdb
Co-authored-by: aadarsh-patel <aadarsh@zuzu.in>
## Description
Fixes https://github.com/ente-io/auth/issues/398
<!--- Describe your changes in detail -->
## Type of Change
- [x] 🛠️ Bug fix (non-breaking change which fixes an issue)
<!--
Thanks for contributing!
Provide a description of your changes below and a general summary in the
title
Please look at the following checklist to ensure that your PR can be
accepted quickly:
-->
## Description
Added: Hide the contents of the app, when is it in the background - Both
android and ios
In android, it shows a blank white/black background, when in background
In iOS, it shows the launch icon, when in background

Android Physical Device

Android stimulator
Also, compared the bitwarden apps in android, the flow is same
iOS Device: Need to verify
@ua741 @vishnukvmd Could you run on iOS devices and verify it?
Closes#47
## Type of Change
<!--- Put an `x` in all the boxes that apply: -->
- [ ] 🖼️ New icon
- [x] ✨ New feature (non-breaking change which adds functionality)
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🧹 Code refactor
- [ ] ✅ Build configuration change
- [ ] 📝 Documentation
- [ ] 🗑️ Chore
This reverts commit 233858ad09, reversing
changes made to f97bf015f1.
Reason: media_scanner depends on MLKit that underhood also makes
connection to firebase.