• DeprecatedCompatV2
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    6 months ago

    I hereby sentence you to writing exception handling code in viewmodels with the following requirements:

    • exceptions may be native
    • exceptions must be defined in separate modules for Clean Architecture
    • all calls to native methods must use callbacks for Objective-C compatibility
    • you must launch a separate coroutine when rethrowing some (TBD) exceptions to prevent the exception from being caught by a parent other than the root exception handler (or the calling thread!)
    • you must use ViewModelScope except when writing to SharedPreferences
    • you should be using DataStore, heathen