Skip to content

Commit

Permalink
chore(dependencies): upgrade dependencies and improve build variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 13, 2023
1 parent 3ce614a commit f86599b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlinVersion = '1.8.0'
dokkaVersion = '1.8.20'
// SDK and tools
compileSdkVersion = 34
minSdkVersion = 21
targetSdkVersion = 34

// Kotlin
kotlinVersion = "1.8.22"
dokkaVersion = "1.8.20"

// Example
versionCode = properties['VERSION_CODE'].toInteger()
versionName = "${properties['VERSION_NAME']}"

// Libraries
exoPlayerVersion = '1.1.1'
analyticsVersion = '2.0.2'
}
Expand Down
23 changes: 12 additions & 11 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ plugins {
}

android {
compileSdk 34

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

minSdk rootProject.minSdkVersion
targetSdk rootProject.targetSdkVersion
compileSdk rootProject.compileSdkVersion

versionCode rootProject.versionCode
versionName rootProject.versionName

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -37,13 +38,13 @@ android {
dependencies {
implementation project(':player')

implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.google.android.material:material:1.10.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.6.0'
implementation 'androidx.navigation:navigation-ui-ktx:2.6.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.4'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.4'
implementation 'androidx.preference:preference-ktx:1.2.1'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down
4 changes: 2 additions & 2 deletions player/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ dokkaHtml {

dependencies {

implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.core:core-ktx:1.12.0'
api 'com.android.volley:volley:1.2.1'
implementation "video.api:android-player-analytics-exoplayer:${analyticsVersion}"
implementation "androidx.media3:media3-ui:${exoPlayerVersion}"
implementation "androidx.media3:media3-exoplayer:${exoPlayerVersion}"
implementation "androidx.media3:media3-exoplayer-hls:${exoPlayerVersion}"
implementation "androidx.media:media:1.6.0"

testImplementation 'org.robolectric:robolectric:4.8.1'
testImplementation 'org.robolectric:robolectric:4.10.3'
testImplementation 'org.robolectric:shadows-httpclient:4.5.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'io.mockk:mockk:1.12.2'
Expand Down

0 comments on commit f86599b

Please sign in to comment.