From 89c267aa5d2fd6833914aa025122f46be3af3b53 Mon Sep 17 00:00:00 2001 From: David Perez Date: Tue, 12 Nov 2024 09:38:49 -0600 Subject: [PATCH] PM-14854: Keep NetworkResult to avoid obfuscation crash in release (#4289) --- .../data/platform/datasource/network/model/NetworkResult.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/network/model/NetworkResult.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/network/model/NetworkResult.kt index e96408a46..54e919acb 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/network/model/NetworkResult.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/datasource/network/model/NetworkResult.kt @@ -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 { /** * A successful network result with the relevant [T] data.