|
|
@ -1,25 +1,25 @@
|
|
|
|
From ae19ed8b15251adae911868ffe570e5608bc2eef Mon Sep 17 00:00:00 2001
|
|
|
|
From cf6beb24c0031b018f8f5dbbc3c1fee31e801f6f Mon Sep 17 00:00:00 2001
|
|
|
|
From: signald <nobody@signald.org>
|
|
|
|
From: signald <nobody@signald.org>
|
|
|
|
Date: Thu, 16 Jun 2022 13:04:00 -0700
|
|
|
|
Date: Tue, 20 Dec 2022 03:03:01 -0800
|
|
|
|
Subject: [PATCH] update build files and provide a way for the websocket
|
|
|
|
Subject: [PATCH] update build files and provide a way for the websocket to
|
|
|
|
receive callback to indicate the message was not saved
|
|
|
|
receive callback to indicate the message was not saved
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
build.gradle | 17 +++--------------
|
|
|
|
build.gradle | 15 ++-------------
|
|
|
|
dependencies.gradle | 3 +--
|
|
|
|
dependencies.gradle | 3 +--
|
|
|
|
gradle/verification-metadata.xml | 13 ++++++++-----
|
|
|
|
gradle/verification-metadata.xml | 13 ++++++++-----
|
|
|
|
service/build.gradle | 19 +++++++++----------
|
|
|
|
service/build.gradle | 19 +++++++++----------
|
|
|
|
.../signalservice/api/NotSavedException.java | 4 ++++
|
|
|
|
.../signalservice/api/NotSavedException.java | 4 ++++
|
|
|
|
.../signalservice/api/SignalWebSocket.java | 13 ++++++++++---
|
|
|
|
.../signalservice/api/SignalWebSocket.java | 13 ++++++++++---
|
|
|
|
settings.gradle | 1 -
|
|
|
|
settings.gradle | 1 -
|
|
|
|
7 files changed, 35 insertions(+), 35 deletions(-)
|
|
|
|
7 files changed, 34 insertions(+), 34 deletions(-)
|
|
|
|
create mode 100644 service/src/main/java/org/whispersystems/signalservice/api/NotSavedException.java
|
|
|
|
create mode 100644 service/src/main/java/org/whispersystems/signalservice/api/NotSavedException.java
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/build.gradle b/build.gradle
|
|
|
|
diff --git a/build.gradle b/build.gradle
|
|
|
|
index 2498bfcb..965084e6 100644
|
|
|
|
index 88570c52..f574c667 100644
|
|
|
|
--- a/build.gradle
|
|
|
|
--- a/build.gradle
|
|
|
|
+++ b/build.gradle
|
|
|
|
+++ b/build.gradle
|
|
|
|
@@ -9,11 +9,8 @@ buildscript {
|
|
|
|
@@ -18,11 +18,8 @@ buildscript {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ index 2498bfcb..965084e6 100644
|
|
|
|
|
|
|
|
|
|
|
|
def getRepositoryUsername() {
|
|
|
|
def getRepositoryUsername() {
|
|
|
|
return hasProperty('whisperSonatypeUsername') ? whisperSonatypeUsername : ""
|
|
|
|
return hasProperty('whisperSonatypeUsername') ? whisperSonatypeUsername : ""
|
|
|
|
@@ -23,18 +20,10 @@ def getRepositoryPassword() {
|
|
|
|
@@ -32,18 +29,10 @@ def getRepositoryPassword() {
|
|
|
|
return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : ""
|
|
|
|
return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -46,19 +46,18 @@ index 2498bfcb..965084e6 100644
|
|
|
|
-}
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
subprojects {
|
|
|
|
- ext.lib_signal_service_version_number = "2.15.3_unofficial_50"
|
|
|
|
ext.lib_signal_service_version_number = "2.15.3_unofficial_65"
|
|
|
|
- ext.lib_signal_service_group_info = "com.github.turasa"
|
|
|
|
- ext.lib_signal_service_group_info = "com.github.turasa"
|
|
|
|
+ ext.lib_signal_service_version_number = "2.15.3_unofficial_50_signald_1"
|
|
|
|
|
|
|
|
+ ext.lib_signal_service_group_info = "org.signald"
|
|
|
|
+ ext.lib_signal_service_group_info = "org.signald"
|
|
|
|
|
|
|
|
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
|
|
allprojects {
|
|
|
|
allprojects {
|
|
|
|
diff --git a/dependencies.gradle b/dependencies.gradle
|
|
|
|
diff --git a/dependencies.gradle b/dependencies.gradle
|
|
|
|
index e4b9f8a8..20e0d2f2 100644
|
|
|
|
index 18107b58..d6f67f8c 100644
|
|
|
|
--- a/dependencies.gradle
|
|
|
|
--- a/dependencies.gradle
|
|
|
|
+++ b/dependencies.gradle
|
|
|
|
+++ b/dependencies.gradle
|
|
|
|
@@ -8,8 +8,7 @@ dependencyResolutionManagement {
|
|
|
|
@@ -13,8 +13,7 @@ dependencyResolutionManagement {
|
|
|
|
alias('google-libphonenumber').to('com.googlecode.libphonenumber:libphonenumber:8.12.48')
|
|
|
|
alias('google-jsr305').to('com.google.code.findbugs:jsr305:3.0.2')
|
|
|
|
|
|
|
|
|
|
|
|
// 1st Party
|
|
|
|
// 1st Party
|
|
|
|
- alias('libsignal-client').to('org.signal', 'libsignal-client').versionRef('libsignal-client')
|
|
|
|
- alias('libsignal-client').to('org.signal', 'libsignal-client').versionRef('libsignal-client')
|
|
|
@ -66,41 +65,41 @@ index e4b9f8a8..20e0d2f2 100644
|
|
|
|
+ alias('libsignal-client').to('org.signald', 'libsignal-client-' + System.getenv("TARGET")).versionRef('libsignal-client')
|
|
|
|
+ alias('libsignal-client').to('org.signald', 'libsignal-client-' + System.getenv("TARGET")).versionRef('libsignal-client')
|
|
|
|
|
|
|
|
|
|
|
|
// Third Party
|
|
|
|
// Third Party
|
|
|
|
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.13.0')
|
|
|
|
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.14.1')
|
|
|
|
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
|
|
|
|
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
|
|
|
|
index fc39d024..59fde59c 100644
|
|
|
|
index 3ae6989c..1e428740 100644
|
|
|
|
--- a/gradle/verification-metadata.xml
|
|
|
|
--- a/gradle/verification-metadata.xml
|
|
|
|
+++ b/gradle/verification-metadata.xml
|
|
|
|
+++ b/gradle/verification-metadata.xml
|
|
|
|
@@ -482,6 +482,9 @@
|
|
|
|
@@ -840,6 +840,9 @@
|
|
|
|
<artifact name="protoc-3.18.0-linux-x86_64.exe">
|
|
|
|
<artifact name="protoc-3.21.7-linux-x86_64.exe">
|
|
|
|
<sha256 value="e977a0b300a3b0c7c0135a02b8a4d746081e1cd8946ea747e0247412535692fe" origin="Generated by Gradle"/>
|
|
|
|
<sha256 value="9b83158ee8c60bbf735bf7df3f225b3961c1711887ce77b90341055d7035665e" origin="Generated by Gradle"/>
|
|
|
|
</artifact>
|
|
|
|
</artifact>
|
|
|
|
+ <artifact name="protoc-3.18.0-osx-x86_64.exe">
|
|
|
|
+ <artifact name="protoc-3.21.7-osx-x86_64.exe">
|
|
|
|
+ <sha256 value="956241e25cac149cf8d01d4f9125f2913b3bc471deea6856231367cdf4be71a4" origin="Generated by Gradle"/>
|
|
|
|
+ <sha256 value="9a7b8ecffa82e7ce3de863c89da86427314508161fd0c586d68da999ddc0e1fc" origin="Generated by Gradle"/>
|
|
|
|
+ </artifact>
|
|
|
|
+ </artifact>
|
|
|
|
</component>
|
|
|
|
<artifact name="protoc-3.21.7.pom">
|
|
|
|
<component group="com.google.testing.platform" name="core-proto" version="0.0.8-alpha04">
|
|
|
|
<sha256 value="385898c492ec183df04427b044947f2a6e1db6f000843aacd80af41aba157e20" origin="Generated by Gradle"/>
|
|
|
|
<artifact name="core-proto-0.0.8-alpha04.jar">
|
|
|
|
</artifact>
|
|
|
|
@@ -1133,12 +1136,12 @@
|
|
|
|
@@ -2111,12 +2114,12 @@
|
|
|
|
<sha256 value="95510c70f1bf0fd65ddc1f39fbf7a42d75d8a064dc3a2cbe52496fa2f2c535f0" origin="Generated by Gradle"/>
|
|
|
|
<sha256 value="e85ceb3d3a77bd11345548dcbb081a846684477152e63e8404092a7d4f7a8dee" origin="Generated by Gradle"/>
|
|
|
|
</artifact>
|
|
|
|
</artifact>
|
|
|
|
</component>
|
|
|
|
</component>
|
|
|
|
- <component group="org.signal" name="libsignal-client" version="0.17.0">
|
|
|
|
- <component group="org.signal" name="libsignal-client" version="0.21.1">
|
|
|
|
- <artifact name="libsignal-client-0.17.0.jar">
|
|
|
|
- <artifact name="libsignal-client-0.21.1.jar">
|
|
|
|
- <sha256 value="3611dc9425d7ef85daedbafa49fa67f49e921bf89e36f601d0b79b1268315619" origin="Generated by Gradle"/>
|
|
|
|
- <sha256 value="1d9add6391b019fb53f09a01d0ae05dc753a6edcf59b0183c64d9e2026b5c31b" origin="Generated by Gradle"/>
|
|
|
|
+ <component group="org.signald" name="libsignal-client-{TARGET}" version="0.17.0">
|
|
|
|
+ <component group="org.signald" name="libsignal-client-{TARGET}" version="0.21.1">
|
|
|
|
+ <artifact name="libsignal-client-{TARGET}-0.17.0.jar">
|
|
|
|
+ <artifact name="libsignal-client-{TARGET}-0.21.1.jar">
|
|
|
|
+ <sha256 value="{TARGET_JAR_SHA256}" origin="Generated by Gradle"/>
|
|
|
|
+ <sha256 value="{TARGET_JAR_SHA256}" origin="Generated by Gradle"/>
|
|
|
|
</artifact>
|
|
|
|
</artifact>
|
|
|
|
- <artifact name="libsignal-client-0.17.0.module">
|
|
|
|
- <artifact name="libsignal-client-0.21.1.module">
|
|
|
|
- <sha256 value="cc6125c6e30421eb39a115576371a41f0adde7ea501e99d2c74192264e6fb1ab" origin="Generated by Gradle"/>
|
|
|
|
- <sha256 value="1c46f905f3ab79404080486a0d454159cdc08de1ea1ba2608b41c94bf3a0e739" origin="Generated by Gradle"/>
|
|
|
|
+ <artifact name="libsignal-client-{TARGET}-0.17.0.module">
|
|
|
|
+ <artifact name="libsignal-client-{TARGET}-0.21.1.module">
|
|
|
|
+ <sha256 value="{TARGET_MODULE_SHA256}" origin="Generated by Gradle"/>
|
|
|
|
+ <sha256 value="{TARGET_MODULE_SHA256}" origin="Generated by Gradle"/>
|
|
|
|
</artifact>
|
|
|
|
</artifact>
|
|
|
|
</component>
|
|
|
|
</component>
|
|
|
|
<component group="org.tensorflow" name="tensorflow-lite-metadata" version="0.1.0-rc2">
|
|
|
|
<component group="org.slf4j" name="slf4j-api" version="1.7.30">
|
|
|
|
diff --git a/service/build.gradle b/service/build.gradle
|
|
|
|
diff --git a/service/build.gradle b/service/build.gradle
|
|
|
|
index ae4df43a..4b0240d8 100644
|
|
|
|
index ec21f92e..49556776 100644
|
|
|
|
--- a/service/build.gradle
|
|
|
|
--- a/service/build.gradle
|
|
|
|
+++ b/service/build.gradle
|
|
|
|
+++ b/service/build.gradle
|
|
|
|
@@ -21,6 +21,7 @@ compileJava {
|
|
|
|
@@ -21,6 +21,7 @@ compileJava {
|
|
|
@ -155,10 +154,10 @@ index 00000000..05d77d1f
|
|
|
|
+public class NotSavedException extends Exception {
|
|
|
|
+public class NotSavedException extends Exception {
|
|
|
|
+}
|
|
|
|
+}
|
|
|
|
diff --git a/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java b/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
diff --git a/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java b/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
index 5a98f3c4..dff24940 100644
|
|
|
|
index a113ac36..74867895 100644
|
|
|
|
--- a/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
--- a/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
+++ b/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
+++ b/service/src/main/java/org/whispersystems/signalservice/api/SignalWebSocket.java
|
|
|
|
@@ -243,6 +243,7 @@ public final class SignalWebSocket {
|
|
|
|
@@ -242,6 +242,7 @@ public final class SignalWebSocket {
|
|
|
|
while (true) {
|
|
|
|
while (true) {
|
|
|
|
WebSocketRequestMessage request = getWebSocket().readRequest(timeout);
|
|
|
|
WebSocketRequestMessage request = getWebSocket().readRequest(timeout);
|
|
|
|
WebSocketResponseMessage response = createWebSocketResponse(request);
|
|
|
|
WebSocketResponseMessage response = createWebSocketResponse(request);
|
|
|
@ -166,7 +165,7 @@ index 5a98f3c4..dff24940 100644
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (isSignalServiceEnvelope(request)) {
|
|
|
|
if (isSignalServiceEnvelope(request)) {
|
|
|
|
Optional<String> timestampHeader = findHeader(request);
|
|
|
|
Optional<String> timestampHeader = findHeader(request);
|
|
|
|
@@ -258,13 +259,19 @@ public final class SignalWebSocket {
|
|
|
|
@@ -257,13 +258,19 @@ public final class SignalWebSocket {
|
|
|
|
|
|
|
|
|
|
|
|
SignalServiceEnvelope envelope = new SignalServiceEnvelope(request.getBody().toByteArray(), timestamp);
|
|
|
|
SignalServiceEnvelope envelope = new SignalServiceEnvelope(request.getBody().toByteArray(), timestamp);
|
|
|
|
|
|
|
|
|
|
|
@ -188,7 +187,7 @@ index 5a98f3c4..dff24940 100644
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -315,6 +322,6 @@ public final class SignalWebSocket {
|
|
|
|
@@ -314,6 +321,6 @@ public final class SignalWebSocket {
|
|
|
|
* received.
|
|
|
|
* received.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public interface MessageReceivedCallback {
|
|
|
|
public interface MessageReceivedCallback {
|
|
|
|