Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(secure_storage): Plugin Endorsement #5208

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ class AmplifySecureStorageAndroid extends AmplifySecureStorageInterface {
Future<void> removeAll() {
return _pigeon.removeAll(config.defaultNamespace);
}

// no-op
static void registerWith() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@ class AmplifySecureStorage extends AmplifySecureStorageInterface {
}
}
}

// no-op
static void registerWith() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import 'dart:async';

import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:meta/meta.dart';

/// {@macro amplify_secure_storage.amplify_secure_storage}
Expand Down Expand Up @@ -56,4 +57,7 @@ class AmplifySecureStorage extends AmplifySecureStorageInterface {
FutureOr<void> write({required String key, required String value}) {
return _instance.write(key: key, value: value);
}

// no-op
static void registerWith(Registrar registrar) {}
}
9 changes: 9 additions & 0 deletions packages/secure_storage/amplify_secure_storage/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies:
file: ">=6.0.0 <8.0.0"
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
meta: ^1.7.0
path: ">=1.8.0 <2.0.0"
path_provider: ^2.0.0
Expand All @@ -34,3 +36,10 @@ flutter:
pluginClass: AmplifySecureStoragePlugin
ios:
pluginClass: AmplifySecureStoragePlugin
windows:
dartPluginClass: AmplifySecureStorageDart
linux:
dartPluginClass: AmplifySecureStorageDart
web:
pluginClass: AmplifySecureStorage
fileName: src/amplify_secure_storage.web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class AmplifySecureStorageDart extends AmplifySecureStorageInterface
);
};
}

static void registerWith() {}
}

/// {@template amplify_secure_storage_dart.amplify_secure_storage_worker}
Expand Down
Loading