Skip to content

Commit

Permalink
#51 moko-resources 0.24.1, annotated api, updated pod version
Browse files Browse the repository at this point in the history
  • Loading branch information
ExNDY committed Jul 25, 2024
1 parent 8931af9 commit 575098b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import dev.icerock.moko.errors.ErrorEventListener
import dev.icerock.moko.errors.presenters.ErrorPresenter
import dev.icerock.moko.mvvm.dispatcher.EventsDispatcher
import platform.UIKit.UIViewController
import kotlin.experimental.ExperimentalNativeApi
import kotlin.native.ref.WeakReference

actual interface ExceptionHandlerBinder {
Expand All @@ -33,8 +34,10 @@ actual class ExceptionHandlerBinderImpl<T : Any> actual constructor(
viewController: UIViewController,
private val errorPresenter: ErrorPresenter<T>
) : ErrorEventListener<T> {
@OptIn(ExperimentalNativeApi::class)
private val viewControllerRef = WeakReference(viewController)

@OptIn(ExperimentalNativeApi::class)
override fun showError(throwable: Throwable, data: T) {
val viewController = viewControllerRef.get() ?: return

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ androidLifecycleVersion = "2.2.0"
androidCoreTestingVersion = "2.2.0"
coroutinesVersion = "1.6.4"
mokoMvvmVersion = "0.16.1"
mokoResourcesVersion = "0.24.0"
mokoResourcesVersion = "0.24.1"
mokoErrorsVersion = "0.8.0"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion sample/ios-app/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: e8746dc30e9d53a96c59e8f821148cde03ea8c5b

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2

0 comments on commit 575098b

Please sign in to comment.