Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid Cleartext HTTP traffic not permitted on Android P #7

Merged
merged 1 commit into from
Dec 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/src/main/java/com/skydoves/themovies/api/Api.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package com.skydoves.themovies.api
*/

object Api {
private const val BASE_POSTER_PATH = "http://image.tmdb.org/t/p/w342"
private const val BASE_BACKDROP_PATH = "http://image.tmdb.org/t/p/w780"
private const val YOUTUBE_VIDEO_URL = "http://www.youtube.com/watch?v="
private const val YOUTUBE_THUMBNAIL_URL = "http://img.youtube.com/vi/"
private const val BASE_POSTER_PATH = "https://image.tmdb.org/t/p/w342"
private const val BASE_BACKDROP_PATH = "https://image.tmdb.org/t/p/w780"
private const val YOUTUBE_VIDEO_URL = "https://www.youtube.com/watch?v="
private const val YOUTUBE_THUMBNAIL_URL = "https://img.youtube.com/vi/"

fun getPosterPath(posterPath: String): String {
return BASE_POSTER_PATH + posterPath
Expand Down