Skip to content

Commit

Permalink
Merge branch 'main' into clip_face_integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Aug 6, 2024
2 parents 3cc05d5 + b8cb480 commit 67c2d94
Show file tree
Hide file tree
Showing 265 changed files with 10,055 additions and 4,161 deletions.
22 changes: 14 additions & 8 deletions auth/assets/custom-icons/_data/custom-icons.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"icons": [
{ "title": "1xBet",
"altNames": ["1x", "1x bet", "1x-bet"
]
{ "title": "1xBet"
},
{
"title": "3Commas"
Expand Down Expand Up @@ -32,7 +30,12 @@
"title": "bitget"
},
{
"title": "Bitmart"
"titile":"bitget wallet",
"slug":"bitget_wallet"
},
{
"title": "Bitmart",
"hex":"000000"
},
{
"title": "BitMEX"
Expand Down Expand Up @@ -107,8 +110,7 @@
"title": "Crowdpear"
},
{
"title": "crypto.com",
"altNames": ["crypto"]
"title": "crypto"
},
{
"title": "DCS",
Expand Down Expand Up @@ -139,6 +141,10 @@
"title": "dus.net",
"slug": "dusnet"
},
{
"title":"ecitizen kenya",
"slug":"ecitizen_kenya"
},
{
"title": "ente",
"hex": "1DB954"
Expand All @@ -164,7 +170,7 @@
},
{
"title": "GitHub",
"hex": "858585"
"hex": "000000"
},
{
"title": "GitLab"
Expand Down Expand Up @@ -353,7 +359,7 @@
"title": "Odido"
},
{ "title": "okx",
"hex": "858585" },
"hex": "000000" },
{
"title": "Parsec"
},
Expand Down
2 changes: 1 addition & 1 deletion auth/assets/custom-icons/icons/1xBet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions auth/assets/custom-icons/icons/bitget_wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion auth/assets/custom-icons/icons/crypto.com.svg

This file was deleted.

1 change: 1 addition & 0 deletions auth/assets/custom-icons/icons/crypto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion auth/assets/custom-icons/icons/deriv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions auth/assets/custom-icons/icons/ecitizen_kenya.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions auth/lib/core/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import 'package:ente_auth/models/key_attributes.dart';
import 'package:ente_auth/models/key_gen_result.dart';
import 'package:ente_auth/models/private_key_attributes.dart';
import 'package:ente_auth/store/authenticator_db.dart';
import 'package:ente_auth/utils/lock_screen_settings.dart';
import 'package:ente_crypto_dart/ente_crypto_dart.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:logging/logging.dart';
Expand Down Expand Up @@ -140,6 +141,7 @@ class Configuration {
iOptions: _secureStorageOptionsIOS,
);
}
await LockScreenSettings.instance.removePinAndPassword();
await AuthenticatorDB.instance.clearTable();
_key = null;
_cachedToken = null;
Expand Down Expand Up @@ -469,15 +471,21 @@ class Configuration {
await _preferences.setBool(hasOptedForOfflineModeKey, true);
}

bool shouldShowLockScreen() {
Future<bool> shouldShowLockScreen() async {
final bool isPin = await LockScreenSettings.instance.isPinSet();
final bool isPass = await LockScreenSettings.instance.isPasswordSet();
return isPin || isPass || shouldShowSystemLockScreen();
}

bool shouldShowSystemLockScreen() {
if (_preferences.containsKey(keyShouldShowLockScreen)) {
return _preferences.getBool(keyShouldShowLockScreen)!;
} else {
return false;
}
}

Future<void> setShouldShowLockScreen(bool value) {
Future<void> setSystemLockScreen(bool value) {
return _preferences.setBool(keyShouldShowLockScreen, value);
}

Expand Down
Loading

0 comments on commit 67c2d94

Please sign in to comment.