diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml
new file mode 100644
index 0000000..d58d49b
--- /dev/null
+++ b/.idea/AndroidProjectSystem.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index b7890c1..61482c6 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -4,6 +4,17 @@
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
index 4cb7457..c224ad5 100644
--- a/.idea/kotlinc.xml
+++ b/.idea/kotlinc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eabfcf8..f05df2f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,10 @@
> - 🏠 Internal
> - 💅 Polish
+## Unreleased
+
+* 🐛 Changed THEOplayer to be an `api` dependency in Gradle. ([#76](https://github.com/THEOplayer/android-ui/pull/76))
+
## 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))
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index fdc75c1..1ecef39 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -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")
}
diff --git a/buildSrc/.gitignore b/buildSrc/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/buildSrc/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
new file mode 100644
index 0000000..f02acbd
--- /dev/null
+++ b/buildSrc/build.gradle.kts
@@ -0,0 +1,7 @@
+plugins {
+ `kotlin-dsl`
+}
+
+repositories {
+ gradlePluginPortal() // so that external plugins can be resolved in dependencies section
+}
diff --git a/buildSrc/src/main/kotlin/android-ui.library-conventions.gradle.kts b/buildSrc/src/main/kotlin/android-ui.library-conventions.gradle.kts
new file mode 100644
index 0000000..5069c14
--- /dev/null
+++ b/buildSrc/src/main/kotlin/android-ui.library-conventions.gradle.kts
@@ -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")
+ }
+ }
+ }
+}
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 5cbcf20..70571fa 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -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" }
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 1d18193..af840ff 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -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 {
@@ -32,7 +32,7 @@ android {
}
buildTypes {
- getByName("release") {
+ release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
@@ -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)
}
@@ -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")
}
}
}
@@ -130,25 +130,6 @@ val dokkaJavadocJar = tasks.register("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("release") {
groupId = "com.theoplayer.android-ui"