blob: cdb0f9f13d5a2e2bbf63f162d7a5f07a21a13d97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package dev.msfjarvis.aps.injection.context
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
class ContextModule {
@Provides
@FilesDirPath
fun providesFilesDirPath(@ApplicationContext context: Context): String {
return context.filesDir.path
}
}
|