Skip to content

Commit

Permalink
Remove LegacySessionImporter, and the dialog which explains that Riot…
Browse files Browse the repository at this point in the history
… is now Element.
  • Loading branch information
bmarty committed May 5, 2023
1 parent e6bfb14 commit 7f9da89
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 1,731 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import org.matrix.android.sdk.BuildConfig
import org.matrix.android.sdk.api.MatrixConfiguration
import org.matrix.android.sdk.api.auth.AuthenticationService
import org.matrix.android.sdk.api.auth.HomeServerHistoryService
import org.matrix.android.sdk.api.legacy.LegacySessionImporter
import org.matrix.android.sdk.api.network.ApiInterceptorListener
import org.matrix.android.sdk.api.network.ApiPath
import org.matrix.android.sdk.api.raw.RawService
Expand All @@ -46,7 +45,6 @@ import javax.inject.Inject
*/
internal class TestMatrix(context: Context, matrixConfiguration: MatrixConfiguration) {

@Inject internal lateinit var legacySessionImporter: LegacySessionImporter
@Inject internal lateinit var authenticationService: AuthenticationService
@Inject internal lateinit var rawService: RawService
@Inject internal lateinit var userAgentHolder: UserAgentHolder
Expand Down Expand Up @@ -88,10 +86,6 @@ internal class TestMatrix(context: Context, matrixConfiguration: MatrixConfigura

fun homeServerHistoryService() = homeServerHistoryService

fun legacySessionImporter(): LegacySessionImporter {
return legacySessionImporter
}

fun registerApiInterceptorListener(path: ApiPath, listener: ApiInterceptorListener) {
apiInterceptor.addListener(path, listener)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import org.matrix.android.sdk.BuildConfig
import org.matrix.android.sdk.api.auth.AuthenticationService
import org.matrix.android.sdk.api.auth.HomeServerHistoryService
import org.matrix.android.sdk.api.debug.DebugService
import org.matrix.android.sdk.api.legacy.LegacySessionImporter
import org.matrix.android.sdk.api.network.ApiInterceptorListener
import org.matrix.android.sdk.api.network.ApiPath
import org.matrix.android.sdk.api.raw.RawService
Expand All @@ -55,7 +54,6 @@ import javax.inject.Inject
*/
class Matrix(context: Context, matrixConfiguration: MatrixConfiguration) {

@Inject internal lateinit var legacySessionImporter: LegacySessionImporter
@Inject internal lateinit var authenticationService: AuthenticationService
@Inject internal lateinit var rawService: RawService
@Inject internal lateinit var debugService: DebugService
Expand Down Expand Up @@ -118,11 +116,6 @@ class Matrix(context: Context, matrixConfiguration: MatrixConfiguration) {
*/
fun homeServerHistoryService() = homeServerHistoryService

/**
* Return the legacy session importer, useful if you want to migrate an app, which was using the legacy Matrix Android Sdk.
*/
fun legacySessionImporter() = legacySessionImporter

/**
* Returns the SecureStorageService used to encrypt and decrypt sensitive data.
*/
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import dagger.Provides
import io.realm.RealmConfiguration
import org.matrix.android.sdk.api.auth.AuthenticationService
import org.matrix.android.sdk.api.auth.HomeServerHistoryService
import org.matrix.android.sdk.api.legacy.LegacySessionImporter
import org.matrix.android.sdk.internal.auth.db.AuthRealmMigration
import org.matrix.android.sdk.internal.auth.db.AuthRealmModule
import org.matrix.android.sdk.internal.auth.db.RealmPendingSessionStore
Expand All @@ -34,7 +33,6 @@ import org.matrix.android.sdk.internal.auth.login.DirectLoginTask
import org.matrix.android.sdk.internal.auth.login.QrLoginTokenTask
import org.matrix.android.sdk.internal.database.RealmKeysUtils
import org.matrix.android.sdk.internal.di.AuthDatabase
import org.matrix.android.sdk.internal.legacy.DefaultLegacySessionImporter
import org.matrix.android.sdk.internal.wellknown.WellknownModule
import java.io.File

Expand Down Expand Up @@ -70,9 +68,6 @@ internal abstract class AuthModule {
}
}

@Binds
abstract fun bindLegacySessionImporter(importer: DefaultLegacySessionImporter): LegacySessionImporter

@Binds
abstract fun bindSessionParamsStore(store: RealmSessionParamsStore): SessionParamsStore

Expand Down

This file was deleted.

0 comments on commit 7f9da89

Please sign in to comment.