-
Notifications
You must be signed in to change notification settings - Fork 222
Update UnifiedPush library #4358
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
base: develop
Are you sure you want to change the base?
Changes from 10 commits
ee3abe7
2dc9659
77a3826
f431ebe
791c90a
ea36ff6
57283a8
806f7ed
8410b44
c6c897c
3010e0e
4168d93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,13 @@ dependencies { | |
implementation(libs.serialization.json) | ||
|
||
// UnifiedPush library | ||
api(libs.unifiedpush) | ||
implementation(libs.unifiedpush) { | ||
// Exclude package com.google.crypto.tink | ||
// Duplicate classes between | ||
// tink-1.16.0.jar -> tink-1.16.0 (com.google.crypto.tink:tink:1.16.0) | ||
// tink-android-1.17.0.jar tink-android-1.8.0 (com.google.crypto.tink:tink-android:1.17.0) | ||
exclude(group = "com.google.crypto.tink", module = "tink") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @p1gp1g , do you know why I need to add this line? It seems to be related to https://github.com/UnifiedPush/android-connector/blob/cf347ae931ea8b6e6c773cd566abea940d1297f1/connector/build.gradle#L58 and the related PR tink-crypto/tink-java-apps#5, but maybe I miss something? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since version 3.0.0, the lib is able to decrypt webpush messages:
At this moment, matrix doesn't officially support webpush messages. So for the moment, The library uses tink library to decrypt the push messages, and I think you have another library using it too. So you end up with duplicate classes. Maybe you should explicitly add tink as a dependency and exclude it from other library using it as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the fast and complete response. Maybe the unified push library should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You would have the same issue if 2 dependencies rely on tink-android, isn't it ? I have opened an issue to migrate to tink-android, there are some pro/con to do the migration there There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think it's this one:
... which is deprecated but we use to encrypted the session data. Yay 🥲 . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related: https://stackoverflow.com/questions/78362124 ... |
||
} | ||
|
||
testImplementation(libs.coroutines.test) | ||
testImplementation(libs.test.junit) | ||
|
Uh oh!
There was an error while loading. Please reload this page.