Skip to content

Commit

Permalink
Update library
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 8, 2024
1 parent 56bdc1f commit 6f72470
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions supercel/src/main/java/com/superwall/supercel/CEL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import java.nio.charset.CodingErrorAction
import java.util.concurrent.atomic.AtomicLong
import java.util.concurrent.ConcurrentHashMap
import android.os.Build
import androidx.annotation.RequiresApi
import java.util.concurrent.atomic.AtomicBoolean
import kotlin.coroutines.resume
import kotlinx.coroutines.CancellableContinuation
Expand Down Expand Up @@ -1288,15 +1287,13 @@ private fun UniffiCleaner.Companion.create(): UniffiCleaner =

// The SystemCleaner, available from API Level 33.
// Some API Level 33 OSes do not support using it, so we require API Level 34.
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
private class AndroidSystemCleaner : UniffiCleaner {
val cleaner = android.system.SystemCleaner.cleaner()

override fun register(value: Any, cleanUpTask: Runnable): UniffiCleaner.Cleanable =
AndroidSystemCleanable(cleaner.register(value, cleanUpTask))
}

@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
private class AndroidSystemCleanable(
private val cleanable: java.lang.ref.Cleaner.Cleanable,
) : UniffiCleaner.Cleanable {
Expand Down

0 comments on commit 6f72470

Please sign in to comment.