-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(native_storage): Various fixes
- Ensure only one `NativeStorage` instance exists for any namespace/scope pair - Buffer calls to `close` - Ensure consistent validation of namespaces
- Loading branch information
Showing
30 changed files
with
376 additions
and
196 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
10 changes: 3 additions & 7 deletions
10
packages/native/storage/example/integration_test/storage_test.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,11 @@ | ||
import 'package:integration_test/integration_test.dart'; | ||
import 'package:native_storage/native_storage.dart'; | ||
import 'package:native_storage/src/local/local_storage_platform.vm.dart' | ||
if (dart.library.js_interop) 'package:native_storage/src/local/local_storage_platform.web.dart'; | ||
import 'package:native_storage/src/secure/secure_storage_platform.vm.dart' | ||
if (dart.library.js_interop) 'package:native_storage/src/secure/secure_storage_platform.web.dart'; | ||
|
||
import 'storage_shared.dart'; | ||
|
||
void main() { | ||
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | ||
sharedTests('NativeMemoryStorage', NativeMemoryStorage.new); | ||
sharedTests('NativeSecureStorage', NativeSecureStoragePlatform.new); | ||
sharedTests('NativeLocalStorage', NativeLocalStoragePlatform.new); | ||
sharedTests(NativeStorageType.memory, NativeMemoryStorage.new); | ||
sharedTests(NativeStorageType.secure, NativeSecureStorage.new); | ||
sharedTests(NativeStorageType.local, NativeLocalStorage.new); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export 'src/isolated/isolated_storage.dart'; | ||
export 'src/local/local_storage.dart'; | ||
export 'src/memory_storage.dart'; | ||
export 'src/native_memory_storage.dart'; | ||
export 'src/native_storage.dart'; | ||
export 'src/native_storage_exception.dart'; | ||
export 'src/secure/secure_storage.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
Oops, something went wrong.