Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(app): create App class, main application
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed May 2, 2023
1 parent d20a211 commit bae5ed3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/src/main/kotlin/com/intelligentbackpack/app/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.intelligentbackpack.app

import android.app.Application
import com.intelligentbackpack.accessdomain.usecase.AccessUseCase
import com.intelligentbackpack.app.di.ServiceLocator

class App : Application() {

override fun onCreate() {
super.onCreate()
ServiceLocator.initializeRepository(this)
accessUseCase = AccessUseCase(ServiceLocator.accessRepository)
}

lateinit var accessUseCase : AccessUseCase
private set
}

0 comments on commit bae5ed3

Please sign in to comment.