-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(core): Secure storage clean up (#61)
- Separate memory implementation into its own class - Clean up Linux implementation
- Loading branch information
Showing
7 changed files
with
68 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
packages/celest_core/lib/src/secure_storage/secure_storage.stub.dart
This file was deleted.
Oops, something went wrong.
14 changes: 4 additions & 10 deletions
14
packages/celest_core/lib/src/secure_storage/secure_storage_platform.web.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import 'package:celest_core/src/secure_storage/secure_storage.dart'; | ||
import 'package:celest_core/src/secure_storage/secure_storage.stub.dart'; | ||
import 'package:meta/meta.dart'; | ||
|
||
abstract base class SecureStoragePlatform implements SecureStorage { | ||
factory SecureStoragePlatform({ | ||
String? scope, | ||
}) => | ||
SecureStoragePlatformStub(scope: scope ?? _defaultScope); | ||
extension type SecureStoragePlatform._(SecureStorage _impl) | ||
implements SecureStorage { | ||
SecureStoragePlatform({String? scope}) | ||
: _impl = MemorySecureStorage(scope: scope ?? _defaultScope); | ||
|
||
static const _defaultScope = 'dev.celest.celest'; | ||
|
||
@protected | ||
const SecureStoragePlatform.base(); | ||
} |