mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 08:55:48 +03:00
PM-14854: Keep NetworkResult to avoid obfuscation crash in release (#4289)
This commit is contained in:
parent
f33296b44f
commit
89c267aa5d
1 changed files with 3 additions and 0 deletions
|
@ -1,10 +1,13 @@
|
|||
package com.x8bit.bitwarden.data.platform.datasource.network.model
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
/**
|
||||
* A wrapper class for a network result for type [T]. If the network request is successful, the
|
||||
* response will be a [Success] containing the data. If the network request is a failure, the
|
||||
* response will be a [Failure] containing the [Throwable].
|
||||
*/
|
||||
@Keep
|
||||
sealed class NetworkResult<out T> {
|
||||
/**
|
||||
* A successful network result with the relevant [T] data.
|
||||
|
|
Loading…
Reference in a new issue