// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import 'package:amplify_native_legacy_wrapper/amplify_native_legacy_plugin.g.dart'; /// A wrapper around the Native v1 Amplify plugins and the legacy SDKs. /// /// On Android, this wraps the Java SDK directly. On iOS, this wraps the v1 /// Amplify plugins instead of the SDK since using the Objective-c SDK directly /// requires significant boilerplate. class AmplifyNativeLegacyWrapper implements LegacyNativePlugin { final _plugin = LegacyNativePlugin(); @override Future configure(String config) { return _plugin.configure(config); } @override Future signIn(String username, String password) { return _plugin.signIn(username, password); } @override Future signOut() { return _plugin.signOut(); } }