File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/main/java/com/codandotv/streamplayerapp/core_networking/di Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ object Config {
1212 const val host_debug = " \" https://api.themoviedb.org/3/\" "
1313 const val host_release = " \" https://api.themoviedb.org/3/\" "
1414
15- private const val tmdb_env_name_debug = " TMDB_API_TOKEN_DEBUG "
16- private const val tmdb_env_name_release = " TMDB_API_TOKEN_RELEASE "
17- val api_auth_debug = " \" Bearer ${System .getenv(tmdb_env_name_debug ) ? : " " } \" "
18- val api_auth_release = " \" Bearer ${System .getenv(tmdb_env_name_release ) ? : " " } \" "
15+ private const val tmdb_token_name_debug = " TMDB_BEARER_TOKEN_DEBUG "
16+ private const val tmdb_token_name_release = " TMDB_BEARER_TOKEN_RELEASE "
17+ val api_bearer_debug = " \" Bearer ${System .getenv(tmdb_token_name_debug ) ? : " " } \" "
18+ val api_bearer_release = " \" Bearer ${System .getenv(tmdb_token_name_release ) ? : " " } \" "
1919 }
2020}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ android {
44 buildTypes {
55 getByName(" debug" ) {
66 buildConfigField(" String" , " HOST" , Config .BuildField .host_debug)
7- buildConfigField(" String" , " API_AUTH " , Config .BuildField .api_auth_debug )
7+ buildConfigField(" String" , " API_BEARER_AUTH " , Config .BuildField .api_bearer_debug )
88 }
99 getByName(" release" ) {
1010 buildConfigField(" String" , " HOST" , Config .BuildField .host_release)
11- buildConfigField(" String" , " API_AUTH " , Config .BuildField .api_auth_release )
11+ buildConfigField(" String" , " API_BEARER_AUTH " , Config .BuildField .api_bearer_release )
1212 }
1313 }
1414}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object NetworkModule {
3131 .newBuilder()
3232 .addHeader(
3333 " Authorization" ,
34- BuildConfig .API_AUTH
34+ BuildConfig .API_BEARER_AUTH
3535 )
3636 .addHeader(" Content-Type" , " application/json;charset=utf-8" )
3737 .build()
You can’t perform that action at this time.
0 commit comments