Created
October 1, 2022 09:51
-
-
Save RaheemJnr/2f6df67bbefb1a1edcdbb7a55b193670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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