Updated on 2026-08-14
This commit is contained in:
parent
1ce3399a02
commit
bb4b8d4c6b
11 changed files with 219 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ import dagger.Module
|
|||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import javax.inject.Named
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Module
|
||||
|
|
@ -26,6 +27,11 @@ internal object ConfigModule {
|
|||
return GeneratedEnvironmentConfigConverter.convert()
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
@Named("authServiceKey")
|
||||
fun provideAuthServiceKey(environmentConfig: EnvironmentConfig): String? = environmentConfig.authServiceKey
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideTestnetTokensStorage(assetLoader: AssetLoader): TestnetTokensStorage {
|
||||
|
|
|
|||
|
|
@ -33,4 +33,5 @@ data class EnvironmentConfig(
|
|||
val customerIoCdpApiKey: String? = null,
|
||||
val surveySparrowToken: String? = null,
|
||||
val surveySparrowSwapRating: SurveySparrowSwapRatingConfig? = null,
|
||||
val authServiceKey: String? = null,
|
||||
)
|
||||
|
|
@ -56,6 +56,7 @@ internal object GeneratedEnvironmentConfigConverter {
|
|||
customerIoCdpApiKey = GeneratedEnvironmentConfig.CustomerIO.androidApiKey,
|
||||
surveySparrowToken = GeneratedEnvironmentConfig.SurveySparrow.apiKey,
|
||||
surveySparrowSwapRating = createSurveySparrowSwapRating(),
|
||||
authServiceKey = null, // TODO: provide service key [REDACTED_JIRA]
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue