Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 469741f0 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

fix: change deprecation to discouraged to reduce the build warnings

parent ca08d0c7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
package net.thunderbird.core.android.account

import androidx.annotation.Discouraged
import com.fsck.k9.mail.Address
import com.fsck.k9.mail.ServerSettings
import java.util.Calendar
@@ -21,7 +22,10 @@ const val DEFAULT_VISIBLE_LIMIT = 25
/**
 * Account stores all of the settings for a single account defined by the user. Each account is defined by a UUID.
 */
@Deprecated(message = "Use LegacyAccount instead, this class is only for compatibility with existing code.")
@Discouraged(
    message = "Use net.thunderbird.core.android.account.LegacyAccount instead, " +
        "this class is only for compatibility with existing code.",
)
@Suppress("TooManyFunctions")
open class LegacyAccountDto(
    override val uuid: String,
+3 −6
Original line number Diff line number Diff line
package net.thunderbird.core.android.account

import androidx.annotation.Discouraged
import kotlinx.coroutines.flow.Flow
import net.thunderbird.feature.mail.account.api.AccountManager

@Deprecated(
    message = "Use net.thunderbird.core.android.account.LegacyAccountManager instead",
    replaceWith = ReplaceWith(
        expression = "LegacyAccountManager",
        "net.thunderbird.core.android.account.LegacyAccountManager",
    ),
@Discouraged(
    message = "Use net.thunderbird.core.android.account.LegacyAccountManager instead.",
)
interface LegacyAccountDtoManager : AccountManager<LegacyAccountDto> {
    override fun getAccounts(): List<LegacyAccountDto>