Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created April 3, 2018 15:31
Show Gist options
  • Save adrianhall/0fbf78dd7433cd45a7bac8e30f3cf7df to your computer and use it in GitHub Desktop.
Save adrianhall/0fbf78dd7433cd45a7bac8e30f3cf7df to your computer and use it in GitHub Desktop.
package com.shellmonger.apps.familyphotos.lifecycle
import android.app.Application
import com.shellmonger.apps.familyphotos.services.AWSAnalyticsService
import com.shellmonger.apps.familyphotos.services.AnalyticsService
class ApplicationWrapper : Application() {
companion object {
var analyticsService: AnalyticsService? = null
}
override fun onCreate() {
super.onCreate()
analyticsService = AWSAnalyticsService(applicationContext)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment