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: 6 additions & 0 deletions .idea/AndroidProjectSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
> - 🏠 Internal
> - 💅 Polish

## v1.13.1 (2026-01-05)

* 🐛 Changed THEOplayer to be an `api` dependency in Gradle. ([#76](https://github.com/THEOplayer/android-ui/pull/76))
* 🐛 The alpha value of the `UIController`'s background color is now correctly preserved. ([#78](https://github.com/THEOplayer/android-ui/issues/78), [#79](https://github.com/THEOplayer/android-ui/pull/79))

## v1.13.0 (2025-09-12)

* 💥 The `minSdk` is now API 23 (Android 6.0 "Marshmallow"), to align with THEOplayer 10.0. ([#74](https://github.com/THEOplayer/android-ui/pull/74))
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
)
}
// Build type that uses the latest android-ui from Maven
create("maven") {
register("maven") {
initWith(getByName("debug"))
matchingFallbacks += listOf("debug")
}
Expand Down
1 change: 1 addition & 0 deletions buildSrc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
7 changes: 7 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
`kotlin-dsl`
}

repositories {
gradlePluginPortal() // so that external plugins can be resolved in dependencies section
}
24 changes: 24 additions & 0 deletions buildSrc/src/main/kotlin/android-ui.library-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
plugins {
`maven-publish`
}

publishing {
repositories {
maven {
name = "reposilite"
url = uri("https://maven.theoplayer.com/releases")
credentials {
username = System.getenv("REPOSILITE_USERNAME")
password = System.getenv("REPOSILITE_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/THEOplayer/android-ui")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ org.gradle.configuration-cache=true
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.0
version=1.13.1
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="9.2.0", strictly = "[5.0, 11.0)" }
theoplayer = { prefer="10.0.0", strictly = "[5.0, 11.0)" }

[libraries]
androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx" }
Expand Down
29 changes: 5 additions & 24 deletions ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
alias(libs.plugins.compose.compiler)
alias(libs.plugins.dokka)
alias(libs.plugins.dokka.javadoc)
id("maven-publish")
id("android-ui.library-conventions")
}

android {
Expand All @@ -32,7 +32,7 @@ android {
}

buildTypes {
getByName("release") {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
Expand Down Expand Up @@ -85,7 +85,7 @@ dependencies {
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.testManifest)

implementation(libs.theoplayer)
api(libs.theoplayer)

dokkaPlugin(libs.dokka.plugin)
}
Expand All @@ -102,8 +102,8 @@ dokka {

externalDocumentationLinks {
register("com.theoplayer.android.api") {
url("https://optiview.dolby.com/docs/theoplayer/v9/api-reference/android/")
packageListUrl("https://optiview.dolby.com/docs/theoplayer/v9/api-reference/android/package-list")
url("https://optiview.dolby.com/docs/theoplayer/v10/api-reference/android/")
packageListUrl("https://optiview.dolby.com/docs/theoplayer/v10/api-reference/android/package-list")
}
}
}
Expand All @@ -130,25 +130,6 @@ val dokkaJavadocJar = tasks.register<Jar>("dokkaJavadocJar") {
}

publishing {
repositories {
maven {
name = "reposilite"
url = uri("https://maven.theoplayer.com/releases")
credentials {
username = System.getenv("REPOSILITE_USERNAME")
password = System.getenv("REPOSILITE_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/THEOplayer/android-ui")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}

publications {
register<MavenPublication>("release") {
groupId = "com.theoplayer.android-ui"
Expand Down
6 changes: 3 additions & 3 deletions ui/src/main/java/com/theoplayer/android/ui/UIController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fun UIController(
modifier: Modifier = Modifier,
config: THEOplayerConfig,
source: SourceDescription? = null,
color: Color = Color.Black,
color: Color = Color.Black.copy(alpha = 0.5f),
centerOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
errorOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
topChrome: (@Composable UIControllerScope.() -> Unit)? = null,
Expand Down Expand Up @@ -126,7 +126,7 @@ fun UIController(
fun UIController(
modifier: Modifier = Modifier,
player: Player = rememberPlayer(),
color: Color = Color.Black,
color: Color = Color.Black.copy(alpha = 0.5f),
centerOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
errorOverlay: (@Composable UIControllerScope.() -> Unit)? = null,
topChrome: (@Composable UIControllerScope.() -> Unit)? = null,
Expand Down Expand Up @@ -187,7 +187,7 @@ fun UIController(
}
val background by animateColorAsState(
label = "BackgroundAnimation",
targetValue = color.copy(alpha = if (backgroundVisible) 0.5f else 0f),
targetValue = if (backgroundVisible) color else color.copy(alpha = 0f),
animationSpec = tween(
easing = LinearEasing,
durationMillis = if (backgroundVisible) {
Expand Down
Loading