From c679750a1714bd4a1d103437b94d2dbd517d350c Mon Sep 17 00:00:00 2001 From: Vitor Hugo Schwaab Date: Wed, 18 Oct 2023 17:25:29 +0200 Subject: [PATCH 1/2] chore: enable dependabot --- .github/dependabot.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..891c9a570b8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,22 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "gradle" + open-pull-requests-limit: 1 + directory: "/" + schedule: + interval: "daily" + reviewers: + - "wireapp/android" + + - package-ecosystem: "github-actions" + open-pull-requests-limit: 1 + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "wireapp/android" From 91223ab327afd7be63b7dd6e63c0017c3fd64552 Mon Sep 17 00:00:00 2001 From: Vitor Hugo Schwaab Date: Wed, 18 Oct 2023 18:31:45 +0200 Subject: [PATCH 2/2] chore: remove unused code (#2149) --- .../kalium/logic/feature/UserSessionScope.kt | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt index fc7c239841a..db2cdd1dde4 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt @@ -139,9 +139,6 @@ import com.wire.kalium.logic.feature.auth.ClearUserDataUseCaseImpl import com.wire.kalium.logic.feature.auth.LogoutUseCase import com.wire.kalium.logic.feature.auth.LogoutUseCaseImpl import com.wire.kalium.logic.feature.backup.BackupScope -import com.wire.kalium.logic.feature.backup.CreateBackupUseCase -import com.wire.kalium.logic.feature.backup.RestoreBackupUseCase -import com.wire.kalium.logic.feature.backup.VerifyBackupUseCase import com.wire.kalium.logic.feature.call.CallManager import com.wire.kalium.logic.feature.call.CallsScope import com.wire.kalium.logic.feature.call.GlobalCallManager @@ -210,18 +207,12 @@ import com.wire.kalium.logic.feature.keypackage.KeyPackageManagerImpl import com.wire.kalium.logic.feature.message.AddSystemMessageToAllConversationsUseCase import com.wire.kalium.logic.feature.message.AddSystemMessageToAllConversationsUseCaseImpl import com.wire.kalium.logic.feature.message.EphemeralEventsNotificationManagerImpl -import com.wire.kalium.logic.feature.message.MLSMessageCreator -import com.wire.kalium.logic.feature.message.MLSMessageCreatorImpl -import com.wire.kalium.logic.feature.message.MessageEnvelopeCreator -import com.wire.kalium.logic.feature.message.MessageEnvelopeCreatorImpl import com.wire.kalium.logic.feature.message.MessageScope import com.wire.kalium.logic.feature.message.MessageSendingScheduler import com.wire.kalium.logic.feature.message.PendingProposalScheduler import com.wire.kalium.logic.feature.message.PendingProposalSchedulerImpl import com.wire.kalium.logic.feature.message.PersistMigratedMessagesUseCase import com.wire.kalium.logic.feature.message.PersistMigratedMessagesUseCaseImpl -import com.wire.kalium.logic.feature.message.SessionEstablisher -import com.wire.kalium.logic.feature.message.SessionEstablisherImpl import com.wire.kalium.logic.feature.message.StaleEpochVerifier import com.wire.kalium.logic.feature.message.StaleEpochVerifierImpl import com.wire.kalium.logic.feature.migration.MigrationScope @@ -742,15 +733,6 @@ class UserSessionScope internal constructor( globalPreferences, ) - @Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.create")) - val createBackup: CreateBackupUseCase get() = backup.create - - @Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.verify")) - val verifyBackupUseCase: VerifyBackupUseCase get() = backup.verify - - @Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.restore")) - val restoreBackup: RestoreBackupUseCase get() = backup.restore - val persistMessage: PersistMessageUseCase get() = PersistMessageUseCaseImpl(messageRepository, userId) @@ -798,19 +780,6 @@ class UserSessionScope internal constructor( authenticatedNetworkContainer.clientApi, ) - private val sessionEstablisher: SessionEstablisher - get() = SessionEstablisherImpl(proteusClientProvider, preKeyRepository) - - private val messageEnvelopeCreator: MessageEnvelopeCreator - get() = MessageEnvelopeCreatorImpl( - proteusClientProvider = proteusClientProvider, selfUserId = userId - ) - - private val mlsMessageCreator: MLSMessageCreator - get() = MLSMessageCreatorImpl( - mlsClientProvider = mlsClientProvider, selfUserId = userId - ) - private val messageSendingScheduler: MessageSendingScheduler get() = userSessionWorkScheduler