-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/admob_reward_video]: 리워드 비디오 광고 작업 (#311)
* [feature/reward_admob]: Add Two Button Dialog * [feature/reward_admob]: Add Admob App Id * [feature/reward_admob]: Add Ad Constant API * [feature/reward_admob]: Add Ad Dialog * [feature/reward_admob]: Fix Code Review * [feature/reward_admob]: Fix Code Review
- Loading branch information
Showing
34 changed files
with
633 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/src/main/java/com/teampophory/pophory/config/di/AdModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.teampophory.pophory.config.di | ||
|
||
import com.teampophory.pophory.ad.repository.AdRepository | ||
import com.teampophory.pophory.ad.repository.DefaultAdRepository | ||
import com.teampophory.pophory.ad.service.AdService | ||
import com.teampophory.pophory.common.qualifier.Secured | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import retrofit2.Retrofit | ||
import retrofit2.create | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object AdModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideAdService(@Secured retrofit: Retrofit): AdService = retrofit.create() | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface Binder { | ||
@Binds | ||
@Singleton | ||
fun bindAdRepository(defaultAdRepository: DefaultAdRepository): AdRepository | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...hory/pophory/domain/ConfigureMeUseCase.kt → ...hory/domain/usecase/ConfigureMeUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.