-
Notifications
You must be signed in to change notification settings - Fork 736
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
Take into account well-known config to disable WorkManager network constraint #8662
Conversation
Migrate DB to 54.
…aint" is set to true in .well-known file.
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.
@bmarty these changes look good to me. I reviewed and ran some tests
Did you test with an actual wellknown response including the new param?
No, I just tested the case by hacking the code. |
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.
LGTM!
…AILED e: file:///home/runner/actions-runner/_work/element-android/element-android/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/session/pushers/DefaultPushersServiceTest.kt:55:5 No value passed for parameter 'homeServerCapabilitiesDataSource'
… ensure that the config is retrieved. The add pusher worker can be configured before the .well-known config is retrieved.
8aab4a9
to
d4c6a46
Compare
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.
LGTM - I did some tests with a local HS and a custom wellknown response: OK
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/di/WorkManagerProvider.kt
Outdated
Show resolved
Hide resolved
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/di/WorkManagerProvider.kt
Outdated
Show resolved
Hide resolved
...rc/main/java/org/matrix/android/sdk/internal/session/workmanager/DefaultWorkManagerConfig.kt
Show resolved
Hide resolved
…set in the .well-known file.
…m/element-android into feature/bma/noNetworkConstraint
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Type of change
Content
"io.element.disable_network_constraint": true
(@giomfo note that this is a boolean, not a String, let me know if it's OK for you)Motivation and context
Be able to run the application in air gapped mode.
Screenshots / GIFs
Tests
Tested devices
Checklist