Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Assemble
run: ./gradlew assembleRelease --configuration-cache
- name: Run tests
run: ./gradlew test --configuration-cache
- name: Assemble
run: ./gradlew assembleRelease --configuration-cache
- name: Assemble with lowest supported player version
run: ./gradlew assembleRelease --configuration-cache -PinstallLowestSupportedPlayerVersion=true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
> - 🏠 Internal
> - 💅 Polish

## Unreleased

* 🐛 Changed the minimum supported THEOplayer version to 7.6.0. ([#85](https://github.com/THEOplayer/android-ui/pull/85))
* This was effectively already the minimum version as of Open Video UI for Android version 1.7.2, but it wasn't noticed until now.
* Future versions will be properly tested with the minimum supported THEOplayer version to avoid similar compatibility issues.

## v1.13.2 (2026-03-03)

* 🐛 Fixed `PictureInPictureButton` to only be shown when the backing `THEOplayerView` has a valid `PiPConfiguration`. ([#81](https://github.com/THEOplayer/android-ui/pull/81))
Expand Down
29 changes: 25 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,28 @@ dependencies {
releaseImplementation(project(":ui"))
"mavenImplementation"("com.theoplayer.android-ui:android-ui:1.+")

implementation(libs.theoplayer)
implementation(libs.theoplayer.ads.ima)
implementation(libs.theoplayer.cast)
}
implementation(libs.theoplayer) {
useLowestSupportedPlayerVersion()
}
implementation(libs.theoplayer.ads.ima) {
useLowestSupportedPlayerVersion()
}
implementation(libs.theoplayer.cast) {
useLowestSupportedPlayerVersion()
}
}

val installLowestSupportedPlayerVersion: String by project.ext

fun ExternalDependency.useLowestSupportedPlayerVersion() {
if (installLowestSupportedPlayerVersion.toBooleanStrict()) {
val lowestVersion = versionConstraint.strictVersion
.removePrefix("[")
.split(",", limit = 2)
.first()
version {
prefer(lowestVersion)
strictly(lowestVersion)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun MainContent() {
val context = LocalContext.current
val theoplayerView = remember(context) {
val config = THEOplayerConfig.Builder().apply {
pip(PipConfiguration.Builder().build())
pipConfiguration(PipConfiguration.Builder().build())
}.build()
THEOplayerView(context, config).apply {
// Add ads integration through Google IMA
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
# The version of the THEOplayer Open Video UI for Android.
version=1.13.2
# (For testing purposes) Install the lowest supported THEOplayer version.
installLowestSupportedPlayerVersion=false
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ androidx-junit = "1.3.0"
androidx-espresso = "3.7.0"
androidx-mediarouter = "1.8.1"
dokka = "2.0.0"
theoplayer = { prefer="10.11.0", strictly = "[5.0, 11.0)" }
theoplayer = { prefer="10.11.0", strictly = "[7.6.0, 11.0)" }

[libraries]
androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx" }
Expand Down