Skip to content

Commit

Permalink
feat(*): extend SDK support to 21 till 34
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Sep 27, 2023
1 parent f4c206b commit bb2f0b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ buildscript {
ext {
kotlinVersion = '1.8.0'
dokkaVersion = '1.8.20'
exoPlayerVersion = '1.1.0'
analyticsVersion = '1.4.0'
exoPlayerVersion = '1.1.1'
analyticsVersion = '2.0.0'
}

dependencies {
Expand Down
6 changes: 3 additions & 3 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 34

defaultConfig {
applicationId "video.api.player.example"
minSdk 24
targetSdk 33
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"

Expand Down
8 changes: 4 additions & 4 deletions player/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {
apply from: 'maven-push.gradle'

android {
compileSdk 33
compileSdk 34

defaultConfig {
minSdk 24
targetSdk 33
minSdk 21
targetSdk 34

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument "INTEGRATION_TESTS_API_KEY", "${System.getenv("INTEGRATION_TESTS_API_KEY")}"
Expand Down Expand Up @@ -77,6 +77,6 @@ dependencies {

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "video.api:android-api-client:1.3.0"
androidTestImplementation "video.api:android-api-client:1.5.2"

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.annotation.DrawableRes
import androidx.annotation.OptIn
import androidx.annotation.StringRes
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import androidx.media3.common.util.UnstableApi
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.ui.PlayerNotificationManager
Expand Down Expand Up @@ -45,7 +46,7 @@ constructor(
setUseChronometer(true)
if (notificationStyle.colorResourceId != 0) {
setColorized(true)
setColor(context.getColor(notificationStyle.colorResourceId))
setColor(ContextCompat.getColor(context, notificationStyle.colorResourceId))
}
},
mediaSession
Expand Down

0 comments on commit bb2f0b3

Please sign in to comment.