Skip to content

Instantly share code, notes, and snippets.

@Younes-Charfaoui
Created October 21, 2020 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Younes-Charfaoui/1bc8e87f44354a6e53a2e239e023345b to your computer and use it in GitHub Desktop.
Save Younes-Charfaoui/1bc8e87f44354a6e53a2e239e023345b to your computer and use it in GitHub Desktop.
class AmplifyApplication : Application() {
override fun onCreate() {
super.onCreate()
try {
Amplify.configure(applicationContext)
Log.i("AmplifyApplication", "Initialized Amplify with success")
} catch (error: AmplifyException) {
Log.e("AmplifyApplication", "Error while initializing Amplify", error)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment