Skip to content

Instantly share code, notes, and snippets.

@RaheemJnr
Created October 1, 2022 09:51
Show Gist options
  • Save RaheemJnr/2f6df67bbefb1a1edcdbb7a55b193670 to your computer and use it in GitHub Desktop.
Save RaheemJnr/2f6df67bbefb1a1edcdbb7a55b193670 to your computer and use it in GitHub Desktop.
fun configureAmplify(context: Context) {
try {
Amplify.addPlugin(AWSCognitoAuthPlugin())
Amplify.addPlugin(AWSS3StoragePlugin())
Amplify.configure(context)
Log.i("Amplify Log", "Initialized Amplify")
} catch (error: AmplifyException) {
Log.e("Amplify Log", "Could not initialize Amplify", error)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment