Skip to content

Commit

Permalink
chore(secure_storage): Plugin Endorsement (#5208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey authored and tyllark committed Aug 20, 2024
1 parent bac8f26 commit c62a916
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 7 deletions.

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

0 comments on commit c62a916

Please sign in to comment.