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
class MovieTestApp : MovieDbApp() { | |
companion object{ | |
const val port = 8080 | |
} | |
override fun getBaseUrl() = "http://localhost:$port" | |
} |
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
@InstallIn(SingletonComponent::class) | |
@Module | |
class RetrofitModule { | |
@Provides | |
@Named("BASE_URL") | |
fun provideBaseUrl(@ApplicationContext appContext: Context): String { | |
return (appContext as MovieDbApp).getBaseUrl() | |
} |
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
@HiltAndroidApp | |
open class MovieDbApp : Application() { | |
open fun getBaseUrl() = BuildConfig.BASE_URL | |
} |
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
//UI Test | |
androidTestImplementation "androidx.test:core-ktx:$test_core" | |
androidTestImplementation "androidx.test.ext:junit-ktx:$test_ext" | |
androidTestImplementation "androidx.test:rules:$test_rules" | |
androidTestImplementation "androidx.test:runner:$test_runner" | |
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso" | |
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espresso" | |
//Kakao | |
androidTestImplementation "com.agoda.kakao:kakao:$kakao" |
NewerOlder