Skip to content

ExtractorAPI: use Kotlin Uuid#507

Merged
Luna712 merged 11 commits into
extractorapi-kotlin-uuidfrom
extractorapi-uuid
May 30, 2026
Merged

ExtractorAPI: use Kotlin Uuid#507
Luna712 merged 11 commits into
extractorapi-kotlin-uuidfrom
extractorapi-uuid

Conversation

@Luna712
Copy link
Copy Markdown
Owner

@Luna712 Luna712 commented May 30, 2026

I didn't find any extensions using the variables directly, so doesn't keep back compat there, as it was very hard to because of the way CS3IPlayer uses them etc... I decided not to change DrmMetadata to use the Kotlin Uuid and just convert all usage in CS3IPlayer to Java UUIDs for now. We could eventually change DrmMetadata to Kotlin Uuid though, and just convert to Java in one single place for Media3 but I figured that was out of scope and this accomplish the main goal of supporting Kotlin Uuid in the main API surface. This, combined with some of my other PRs accomplish the majority of the remaining API surface migrations, so I wanted to get it done before next stable also.

I added a global OptIn for kotlin.uuid.ExperimentalUuidApi in :app only because adding it as @file:OptIn(kotlin.uuid.ExperimentalUuidApi::class) doesn't work for some reason though it does in library and would for extensions. This also will no longer be necessary at all in Kotlin 2.4, but I just wanted to do this now so that the API surface is updated and we can support the new version for the next stable release.

If there is some changes or suggestions needed for this I am happy to make those.

@Luna712 Luna712 changed the base branch from master to extractorapi-kotlin-uuid May 30, 2026 17:16
@Luna712 Luna712 merged commit 1e57ade into extractorapi-kotlin-uuid May 30, 2026
1 check passed
@Luna712 Luna712 deleted the extractorapi-uuid branch May 30, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant