Skip to content

Commit

Permalink
Add annotations for ExperimentalForeignApi and BetaInteropApi in …
Browse files Browse the repository at this point in the history
…`IOSImageLoader`
  • Loading branch information
msasikanth committed Sep 23, 2023
1 parent 7988126 commit 1583ece
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import io.ktor.client.request.get
import io.ktor.client.statement.HttpResponse
import io.ktor.client.statement.readBytes
import io.ktor.util.toMap
import kotlinx.cinterop.BetaInteropApi
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.addressOf
import kotlinx.cinterop.convert
Expand Down Expand Up @@ -96,6 +97,7 @@ internal sealed interface ImageLoaderState {

@Inject
@AppScope
@OptIn(ExperimentalForeignApi::class, BetaInteropApi::class)
class IOSImageLoader : ImageLoader {

private val memoryCacheSize = (10 * 1024 * 1024).toULong() // 10 MB cache size
Expand Down

0 comments on commit 1583ece

Please sign in to comment.