Skip to content

chore: change outputs to amplifyConfig in flutter gen 2 docs #7764

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

Merged
merged 7 commits into from
Jun 28, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Future<void> _configureAmplify() async {
// Once Plugins are added, configure Amplify
// Note: Amplify can only be configured once.
try {
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);
} on AmplifyAlreadyConfiguredException {
safePrint(
'Tried to reconfigure Amplify; this can occur when your app restarts on Android.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Future<void> main() async {
try {
final api = AmplifyAPI(modelProvider: ModelProvider.instance);
await Amplify.addPlugins([api]);
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);

safePrint('Successfully configured Amplify');
} on Exception catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ Future<void> _configureAmplify() async {
await Amplify.addPlugins([auth, storage]);

// call Amplify.configure to use the initialized categories in your app
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);
} on Exception catch (e) {
safePrint('An error occurred configuring Amplify: $e');
}
Expand Down
Loading