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

Dependency updates #124

Merged
merged 3 commits into from
Sep 13, 2020
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import androidx.core.content.getSystemService
import androidx.core.graphics.drawable.toBitmap
import androidx.lifecycle.viewModelScope
import coil.ImageLoader
import coil.request.GetRequestBuilder
import coil.request.ImageRequest
import com.google.android.exoplayer2.Player
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -62,7 +62,7 @@ class PlayerNotificationHelper(private val viewModel: PlayerViewModel) : KoinCom
maxWidth = size
maxHeight = size
})
imageLoader.execute(GetRequestBuilder(context).data(imageUrl).build()).drawable?.toBitmap()
imageLoader.execute(ImageRequest.Builder(context).data(imageUrl).build()).drawable?.toBitmap()
}

val style = Notification.MediaStyle().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.getSystemService
import androidx.core.graphics.drawable.toBitmap
import coil.ImageLoader
import coil.request.GetRequestBuilder
import coil.request.ImageRequest
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
Expand Down Expand Up @@ -217,7 +217,7 @@ class RemotePlayerService : Service(), CoroutineScope {
// Resolve notification bitmap
val cachedBitmap = largeItemIcon?.takeIf { itemId == currentItemId }
val bitmap = cachedBitmap ?: if (!imageUrl.isNullOrEmpty()) {
val request = GetRequestBuilder(this@RemotePlayerService).data(imageUrl).build()
val request = ImageRequest.Builder(this@RemotePlayerService).data(imageUrl).build()
imageLoader.execute(request).drawable?.toBitmap()?.also { bitmap ->
largeItemIcon = bitmap // Cache bitmap for later use
}
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ plugins {
`kotlin-dsl`
}

kotlinDslPluginOptions {
experimentalWarning.set(false)
}

repositories {
google()
jcenter()
}

dependencies {
implementation("com.android.tools.build:gradle:4.0.1")
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Dependencies {
// Network
const val apiclient = "0.7.4"
const val okHttp = "4.8.0"
const val coil = "0.11.0"
const val coil = "1.0.0-rc2"

// Cast
const val mediaRouter = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists