-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Mobile Device Manager feature with 3 keys. #8698
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One change on the DI otherwise LGTM
@@ -168,6 +173,11 @@ import javax.inject.Singleton | |||
return Matrix(context, configuration) | |||
} | |||
|
|||
@Provides |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use @Singleton
otherwise listeners won't be kept.
Also use @Binds
instead of @Provides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6452b5c, hence I think it was fine since the listener was added and removed by the same entity (the Activity).
OK for you?
SonarCloud Quality Gate failed. 0 Bugs 45.9% Coverage The version of Java (11.0.21) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one question
vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Type of change
Content
Add support for MDM with the following keys:
im.vector.app.serverConfigDefaultHomeserverUrlString
im.vector.app.serverConfigSygnalAPIUrlString
im.vector.app.clientPermalinkBaseUrl
iOS PR: element-hq/element-ios#7667
Motivation and context
Support MDM.
Internal issue: https://github.com/vector-im/element-internal/issues/527
Screenshots / GIFs
Tests
Cannot test using a real MDM configuration, but can be tested by hacking the method getData to return a custom string.
I have tested by returning a value for
MdmData.DefaultHomeserverUrl
different frommatrix.org
and the application was correctly defaulting to the provided homeserver.Also currently when the MDM configuration change, this is a no-op on the application. We may consider logging out the user.
Tested devices
Checklist