Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@berteodosio
Last active June 13, 2019 13:59
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 berteodosio/9827bac3e4a30226f0b7379781b99885 to your computer and use it in GitHub Desktop.
Save berteodosio/9827bac3e4a30226f0b7379781b99885 to your computer and use it in GitHub Desktop.
class AppApplication : Application() {
override fun onCreate() {
super.onCreate()
val remoteFileUrl = "https://<remote_file_url>.json"
SdkCore.Initializer()
.context(this)
.configuration(ConfigurationParameters(R.raw.configuration, remoteFileUrl))
.configureLog(LogLevel.VERBOSE, ignoreThrowable = false)
.addModule(AuthModule.newInstance())
.addModule(BillingModule.newInstance())
.addModule(ProfileModule.newInstance())
.addModule(PersistenceModule.newInstance())
.addModule(NewsContentViewerModule.newInstance())
.init()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment