Skip to content

Commit

Permalink
Merge pull request #8402 from vector-im/feature/bma/removeLegacySessi…
Browse files Browse the repository at this point in the history
…onImporter

Remove LegacySessionImporter
  • Loading branch information
BillCarsonFr committed May 8, 2023
2 parents e6bfb14 + 257ca26 commit 79b4515
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 1,740 deletions.
1 change: 1 addition & 0 deletions changelog.d/8402.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove ability to migrate session from Riot to Element.
12 changes: 8 additions & 4 deletions library/ui-strings/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2798,10 +2798,14 @@
<string name="crypto_error_withheld_generic">You cannot access this message because the sender purposely did not send the keys</string>
<string name="notice_crypto_unable_to_decrypt_merged">Waiting for encryption history</string>

<string name="disclaimer_title">Riot is now Element!</string>
<string name="disclaimer_content">We’re excited to announce we’ve changed name! Your app is up to date and you’re signed in to your account.</string>
<string name="disclaimer_negative_button">GOT IT</string>
<string name="disclaimer_positive_button">LEARN MORE</string>
<!-- TODO TO BE REMOVED -->
<string tools:ignore="UnusedResources" name="disclaimer_title">Riot is now Element!</string>
<!-- TODO TO BE REMOVED -->
<string tools:ignore="UnusedResources" name="disclaimer_content">We’re excited to announce we’ve changed name! Your app is up to date and you’re signed in to your account.</string>
<!-- TODO TO BE REMOVED -->
<string tools:ignore="UnusedResources" name="disclaimer_negative_button">GOT IT</string>
<!-- TODO TO BE REMOVED -->
<string tools:ignore="UnusedResources" name="disclaimer_positive_button">LEARN MORE</string>

<string name="save_recovery_key_chooser_hint">Save recovery key in</string>

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.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 79b4515

Please sign in to comment.