Update dependencies

This commit is contained in:
AsamK 2025-02-07 17:31:29 +01:00
parent f04f789231
commit dfa886fae9
7 changed files with 22 additions and 17 deletions

View file

@ -3,7 +3,7 @@ plugins {
application application
eclipse eclipse
`check-lib-versions` `check-lib-versions`
id("org.graalvm.buildtools.native") version "0.10.4" id("org.graalvm.buildtools.native") version "0.10.5"
} }
allprojects { allprojects {

View file

@ -88,7 +88,7 @@
}, },
{ {
"name":"org.signal.libsignal.internal.CompletableFuture", "name":"org.signal.libsignal.internal.CompletableFuture",
"methods":[{"name":"<init>","parameterTypes":[] }, {"name":"complete","parameterTypes":["java.lang.Object"] }] "methods":[{"name":"<init>","parameterTypes":[] }, {"name":"complete","parameterTypes":["java.lang.Object"] }, {"name":"completeExceptionally","parameterTypes":["java.lang.Throwable"] }]
}, },
{ {
"name":"org.signal.libsignal.net.CdsiLookupResponse", "name":"org.signal.libsignal.net.CdsiLookupResponse",
@ -110,6 +110,10 @@
{ {
"name":"org.signal.libsignal.net.ChatService$ResponseAndDebugInfo" "name":"org.signal.libsignal.net.ChatService$ResponseAndDebugInfo"
}, },
{
"name":"org.signal.libsignal.net.NetworkException",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{ {
"name":"org.signal.libsignal.protocol.DuplicateMessageException", "name":"org.signal.libsignal.protocol.DuplicateMessageException",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }] "methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]

View file

@ -188,6 +188,8 @@
"pattern":"\\Qlibsignal_jni_amd64.dylib\\E" "pattern":"\\Qlibsignal_jni_amd64.dylib\\E"
}, { }, {
"pattern":"\\Qlibsignal_jni_amd64.so\\E" "pattern":"\\Qlibsignal_jni_amd64.so\\E"
}, {
"pattern":"\\Qlibsignal_jni_testing_amd64.so\\E"
}, { }, {
"pattern":"\\Qorg/asamk/signal/manager/config/ias.store\\E" "pattern":"\\Qorg/asamk/signal/manager/config/ias.store\\E"
}, { }, {

View file

@ -10,8 +10,8 @@ slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
slf4j-jul = { module = "org.slf4j:jul-to-slf4j", version.ref = "slf4j" } slf4j-jul = { module = "org.slf4j:jul-to-slf4j", version.ref = "slf4j" }
logback = "ch.qos.logback:logback-classic:1.5.16" logback = "ch.qos.logback:logback-classic:1.5.16"
signalservice = "com.github.turasa:signal-service-java:2.15.3_unofficial_116" signalservice = "com.github.turasa:signal-service-java:2.15.3_unofficial_117"
sqlite = "org.xerial:sqlite-jdbc:3.48.0.0" sqlite = "org.xerial:sqlite-jdbc:3.49.0.0"
hikari = "com.zaxxer:HikariCP:6.2.1" hikari = "com.zaxxer:HikariCP:6.2.1"
junit-jupiter = "org.junit.jupiter:junit-jupiter:5.11.4" junit-jupiter = "org.junit.jupiter:junit-jupiter:5.11.4"
junit-launcher = "org.junit.platform:junit-platform-launcher:1.11.4" junit-launcher = "org.junit.platform:junit-platform-launcher:1.11.4"

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

3
gradlew vendored
View file

@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum

View file

@ -47,38 +47,38 @@ public class NumberVerificationUtils {
} }
} }
sessionId = sessionResponse.getBody().getId(); sessionId = sessionResponse.getMetadata().getId();
sessionIdSaver.accept(sessionId); sessionIdSaver.accept(sessionId);
if (sessionResponse.getBody().getVerified()) { if (sessionResponse.getMetadata().getVerified()) {
return sessionId; return sessionId;
} }
if (sessionResponse.getBody().getAllowedToRequestCode()) { if (sessionResponse.getMetadata().getAllowedToRequestCode()) {
return sessionId; return sessionId;
} }
final var nextAttempt = voiceVerification final var nextAttempt = voiceVerification
? sessionResponse.getBody().getNextCall() ? sessionResponse.getMetadata().getNextCall()
: sessionResponse.getBody().getNextSms(); : sessionResponse.getMetadata().getNextSms();
if (nextAttempt == null) { if (nextAttempt == null) {
throw new VerificationMethodNotAvailableException(); throw new VerificationMethodNotAvailableException();
} else if (nextAttempt > 0) { } else if (nextAttempt > 0) {
final var timestamp = sessionResponse.getHeaders().getTimestamp() + nextAttempt * 1000; final var timestamp = sessionResponse.getClientReceivedAtMilliseconds() + nextAttempt * 1000;
throw new RateLimitException(timestamp); throw new RateLimitException(timestamp);
} }
final var nextVerificationAttempt = sessionResponse.getBody().getNextVerificationAttempt(); final var nextVerificationAttempt = sessionResponse.getMetadata().getNextVerificationAttempt();
if (nextVerificationAttempt != null && nextVerificationAttempt > 0) { if (nextVerificationAttempt != null && nextVerificationAttempt > 0) {
final var timestamp = sessionResponse.getHeaders().getTimestamp() + nextVerificationAttempt * 1000; final var timestamp = sessionResponse.getClientReceivedAtMilliseconds() + nextVerificationAttempt * 1000;
throw new CaptchaRequiredException(timestamp); throw new CaptchaRequiredException(timestamp);
} }
if (sessionResponse.getBody().getRequestedInformation().contains("captcha")) { if (sessionResponse.getMetadata().getRequestedInformation().contains("captcha")) {
if (captcha != null) { if (captcha != null) {
sessionResponse = submitCaptcha(registrationApi, sessionId, captcha); sessionResponse = submitCaptcha(registrationApi, sessionId, captcha);
} }
if (!sessionResponse.getBody().getAllowedToRequestCode()) { if (!sessionResponse.getMetadata().getAllowedToRequestCode()) {
throw new CaptchaRequiredException("Captcha Required"); throw new CaptchaRequiredException("Captcha Required");
} }
} }