diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f1f85d7e1..f20acc8f3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -225,11 +225,16 @@ jobs: path: client-sdk-android/diffuse-source-file key: diffuse-${{ github.event.pull_request.base.sha }} + - uses: actions/download-artifact@v5 + with: + name: livekit-android-sdk-release.aar + path: client-sdk-android/ + - id: diffuse uses: usefulness/diffuse-action@v1 with: old-file-path: client-sdk-android/diffuse-source-file - new-file-path: client-sdk-android/livekit-android-sdk/build/outputs/aar/livekit-android-sdk-release.aar + new-file-path: client-sdk-android/livekit-android-sdk-release.aar # Consuming diffuse action output diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3501a8d7f..93ef51068 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -63,7 +63,7 @@ segmentation-selfie = { module = "com.google.mlkit:segmentation-selfie", version semver4j = { module = "com.vdurmont:semver4j", version.ref = "semver4j" } webrtc = { module = "io.github.webrtc-sdk:android-prefixed", version.ref = "webrtc" } -androidx-annotation = { module = "androidx.annotation:annotation", version = "1.7.1" } +androidx-annotation = { module = "androidx.annotation:annotation", version = "1.9.1" } androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.9.0" } androidx-constraintlayout-compose = { module = "androidx.constraintlayout:constraintlayout-compose", version = "1.0.1" } auto-service-compiler = { module = "com.google.auto.service:auto-service", version.ref = "autoService" } diff --git a/livekit-android-sdk/build.gradle b/livekit-android-sdk/build.gradle index 45a3f6981..040524316 100644 --- a/livekit-android-sdk/build.gradle +++ b/livekit-android-sdk/build.gradle @@ -140,6 +140,7 @@ dokkaHtml { } dependencies { + //api fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation libs.coroutines.lib diff --git a/livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt b/livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt index 28c73083a..c1db3ca4e 100644 --- a/livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt +++ b/livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 LiveKit, Inc. + * Copyright 2023-2026 LiveKit, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package io.livekit.android import android.app.Application import android.content.Context +import io.livekit.android.LiveKit.loggingLevel import io.livekit.android.dagger.DaggerLiveKitComponent import io.livekit.android.dagger.RTCModule import io.livekit.android.dagger.create @@ -95,4 +96,33 @@ object LiveKit { return room } + + /** + * A new api for diffuse + */ + fun newApi(someBool: Boolean): Boolean { + return true + } + + /** + * This is a suppressed api. + * @suppress + */ + fun suppressedApi(): String { + return "suppressed" + } + + /** + * This is an internal api. + */ + internal fun internalApi(): String { + return "suppressed" + } + + /** + * This is a private api. + */ + private fun privateApi(): String { + return "suppressed" + } }