ktlint: Format all modules
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -6,10 +6,10 @@ import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import javax.inject.Singleton
|
||||
import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.modules.SerializersModule
|
||||
import kotlinx.serialization.modules.contextual
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
|
||||
@@ -25,10 +25,10 @@ import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import java.nio.charset.StandardCharsets
|
||||
import javax.inject.Singleton
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
|
||||
@@ -34,134 +34,108 @@ object HelperModule {
|
||||
fun providesAppDetailsHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): AppDetailsHelper {
|
||||
return AppDetailsHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): AppDetailsHelper = AppDetailsHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesStreamHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): StreamHelper {
|
||||
return StreamHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): StreamHelper = StreamHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesExpandedBrowseHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): ExpandedBrowseHelper {
|
||||
return ExpandedBrowseHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): ExpandedBrowseHelper = ExpandedBrowseHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesCategoryHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): CategoryHelper {
|
||||
return CategoryHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): CategoryHelper = CategoryHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesReviewsHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): ReviewsHelper {
|
||||
return ReviewsHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): ReviewsHelper = ReviewsHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesSearchHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): SearchHelper {
|
||||
return SearchHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): SearchHelper = SearchHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesPurchaseHelperInstance(
|
||||
authProvider: AuthProvider,
|
||||
httpClient: IHttpClient
|
||||
): PurchaseHelper {
|
||||
return PurchaseHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
}
|
||||
): PurchaseHelper = PurchaseHelper(authProvider.authData!!)
|
||||
.using(httpClient)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebStreamHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebStreamHelper {
|
||||
return WebStreamHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebStreamHelper = WebStreamHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebDataSafetyHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebDataSafetyHelper {
|
||||
return WebDataSafetyHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebDataSafetyHelper = WebDataSafetyHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebSearchHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebSearchHelper {
|
||||
return WebSearchHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebSearchHelper = WebSearchHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebCategoryStreamHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebCategoryStreamHelper {
|
||||
return WebCategoryStreamHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebCategoryStreamHelper = WebCategoryStreamHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebTopChartsHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebTopChartsHelper {
|
||||
return WebTopChartsHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebTopChartsHelper = WebTopChartsHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
fun providesWebAppDetailsHelperInstance(
|
||||
spoofProvider: SpoofProvider,
|
||||
httpClient: IHttpClient
|
||||
): WebAppDetailsHelper {
|
||||
return WebAppDetailsHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
): WebAppDetailsHelper = WebAppDetailsHelper()
|
||||
.using(httpClient)
|
||||
.with(spoofProvider.locale)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user