Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: signalapp/libsignal-service-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LibreSignal/libtextsecure-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Mar 4, 2015

  1. Copy the full SHA
    53bb3f9 View commit details
  2. Copy the full SHA
    b6671e5 View commit details

Commits on Mar 5, 2015

  1. Merge branch 'master' into fix/maven_local

    Conflicts:
    	build.gradle
    JavaJens committed Mar 5, 2015
    Copy the full SHA
    fda53a1 View commit details

Commits on Mar 30, 2015

  1. Merge branch 'master' into fix/maven_local

    Conflicts:
    	build.gradle
    JavaJens committed Mar 30, 2015
    Copy the full SHA
    f989a69 View commit details

Commits on Jun 23, 2015

  1. Merge branch 'master' into fix/maven_local

    Conflicts:
    	build.gradle
    JavaJens committed Jun 23, 2015
    Copy the full SHA
    53ca58d View commit details

Commits on Jul 6, 2015

  1. Copy the full SHA
    69bea48 View commit details

Commits on Jul 31, 2015

  1. Merge upstream 1.6.2 into maven_local. Also keeping versioning scheme…

    … to stay consistent with upstream.
    f41c0r committed Jul 31, 2015
    Copy the full SHA
    3a136e4 View commit details

Commits on Aug 3, 2015

  1. Merge pull request #1 from f41c0r/fix/maven_local

    Update from upstream to 1.62(2.62)
    JavaJens committed Aug 3, 2015
    Copy the full SHA
    978c2d8 View commit details

Commits on Oct 5, 2015

  1. Update from upstream to 2.8.1(1.8.1)

    f41c0r committed Oct 5, 2015
    Copy the full SHA
    165be98 View commit details
  2. Merge pull request #2 from f41c0r/fix/maven_local

    Update from upstream to 1.8.1(2.8.1)
    JavaJens committed Oct 5, 2015
    Copy the full SHA
    2cdeda9 View commit details

Commits on Dec 2, 2015

  1. Merge tag 'v1.8.2' into fix/maven_local

    Tagging 1.8.2 release
    schachmat committed Dec 2, 2015
    Copy the full SHA
    7560f86 View commit details

Commits on Dec 3, 2015

  1. Merge pull request #3 from schachmat/fix/maven_local

    Merge upstream 1.8.2
    JavaJens committed Dec 3, 2015
    Copy the full SHA
    e5a0e17 View commit details

Commits on Feb 18, 2016

  1. Update build.gradle

    mimi89999 committed Feb 18, 2016
    Copy the full SHA
    5476902 View commit details
  2. Merge pull request #1 from WhisperSystems/master

    Update
    mimi89999 committed Feb 18, 2016
    Copy the full SHA
    aa53bc0 View commit details
  3. Update build.gradle

    mimi89999 committed Feb 18, 2016
    Copy the full SHA
    469104f View commit details

Commits on Feb 21, 2016

  1. Copy the full SHA
    b46e278 View commit details

Commits on Feb 27, 2016

  1. Copy the full SHA
    9327c99 View commit details

Commits on Feb 29, 2016

  1. Fix for making libtextsecure-java a module

    mimi89999 committed Feb 29, 2016
    Copy the full SHA
    09f96af View commit details

Commits on Mar 25, 2016

  1. Copy the full SHA
    aab836a View commit details
  2. Add missing space.

    mimi89999 committed Mar 25, 2016
    Copy the full SHA
    58b0856 View commit details
  3. Fix the build.

    mimi89999 committed Mar 25, 2016
    Copy the full SHA
    0f19618 View commit details

Commits on Nov 2, 2016

  1. Copy the full SHA
    a6dd3d6 View commit details

Commits on Jan 27, 2017

  1. Update to version to 2.4.7

    mimi89999 committed Jan 27, 2017

    Verified

    This commit was signed with the committer’s verified signature.
    mimi89999 Michel Le Bihan
    Copy the full SHA
    1d9f72f View commit details
49 changes: 3 additions & 46 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -13,16 +13,16 @@ apply plugin: 'maven'
apply plugin: 'signing'

archivesBaseName = "signal-service-android"
version = version_number
group = group_info
version = "2.4.7"
group = "org.whispersystems"

repositories {
mavenCentral()
mavenLocal()
}

dependencies {
compile "org.whispersystems:signal-protocol-android:${signal_version}"
compile "org.whispersystems:signal-protocol-android:2.4.0"
compile (project(':java')) {
exclude group: 'org.whispersystems', module: 'signal-protocol-java'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
@@ -61,49 +61,6 @@ signing {
sign configurations.archives
}


def sonatypeRepo = sonatypeRepo != null ? sonatypeRepo : ""
def whisperSonatypeUsername = whisperSonatypeUsername != null ? whisperSonatypeUsername : ""
def whisperSonatypePassword = whisperSonatypePassword != null ? whisperSonatypePassword : ""

uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: sonatypeRepo) {
authentication(userName: whisperSonatypeUsername, password: whisperSonatypePassword)
}

pom.project {
name 'signal-service-android'
packaging 'aar'
description 'Signal Service communication library for Android'
url 'https://github.com/WhisperSystems/libsignal-service-java'

scm {
url 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
connection 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
developerConnection 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
}

licenses {
license {
name 'GPLv3'
url 'https://www.gnu.org/licenses/gpl-3.0.txt'
distribution 'repo'
}
}

developers {
developer {
name 'Moxie Marlinspike'
}
}
}
}
}

task installArchives(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
49 changes: 3 additions & 46 deletions java/build.gradle
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ apply plugin: 'signing'

sourceCompatibility = 1.7
archivesBaseName = "signal-service-java"
version = version_number
group = group_info
version = "2.4.7"
group = "org.whispersystems"

repositories {
mavenCentral()
@@ -17,7 +17,7 @@ dependencies {
compile 'com.googlecode.libphonenumber:libphonenumber:8.0.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.0'

compile "org.whispersystems:signal-protocol-java:${signal_version}"
compile "org.whispersystems:signal-protocol-java:2.4.0"
compile 'com.squareup.okhttp3:okhttp:3.5.0'
compile 'org.apache.httpcomponents:httpclient:4.4'

@@ -36,49 +36,6 @@ signing {
sign configurations.archives
}


def sonatypeRepo = sonatypeRepo != null ? sonatypeRepo : ""
def whisperSonatypeUsername = whisperSonatypeUsername != null ? whisperSonatypeUsername : ""
def whisperSonatypePassword = whisperSonatypePassword != null ? whisperSonatypePassword : ""

uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: sonatypeRepo) {
authentication(userName: whisperSonatypeUsername, password: whisperSonatypePassword)
}

pom.project {
name 'signal-service-java'
packaging 'jar'
description 'Signal Service communication library for Java'
url 'https://github.com/WhisperSystems/libsignal-service-java'

scm {
url 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
connection 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
developerConnection 'scm:git@github.com:WhisperSystems/libsignal-service-java.git'
}

licenses {
license {
name 'GPLv3'
url 'https://www.gnu.org/licenses/gpl-3.0.txt'
distribution 'repo'
}
}

developers {
developer {
name 'Moxie Marlinspike'
}
}
}
}
}

task installArchives(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
Original file line number Diff line number Diff line change
@@ -109,6 +109,8 @@ public void requestVoiceVerificationCode() throws IOException {
* {@link #requestVoiceVerificationCode}).
* @param signalingKey 52 random bytes. A 32 byte AES key and a 20 byte Hmac256 key,
* concatenated.
* @param fetchesMessages A boolean that indicates whether the client supports fetching messages
* (websockets)
* @param signalProtocolRegistrationId A random 14-bit number that identifies this Signal install.
* This value should remain consistent across registrations for the
* same install, but probabilistically differ across registrations
@@ -117,10 +119,11 @@ public void requestVoiceVerificationCode() throws IOException {
*
* @throws IOException
*/
public void verifyAccountWithCode(String verificationCode, String signalingKey, int signalProtocolRegistrationId, boolean voice)
public void verifyAccountWithCode(String verificationCode, String signalingKey, boolean fetchesMessages,
int signalProtocolRegistrationId, boolean voice)
throws IOException
{
this.pushServiceSocket.verifyAccountCode(verificationCode, signalingKey,
this.pushServiceSocket.verifyAccountCode(verificationCode, signalingKey, fetchesMessages,
signalProtocolRegistrationId, voice);
}

@@ -131,6 +134,8 @@ public void verifyAccountWithCode(String verificationCode, String signalingKey,
* @param signalingKey 52 random bytes. A 32 byte AES key and a 20 byte Hmac256 key,
* concatenated.
* @param fetchesMessages A boolean that indicates whether the client supports fetching messages
* (websockets)
* @param signalProtocolRegistrationId A random 14-bit number that identifies this Signal install.
* This value should remain consistent across registrations for the
* same install, but probabilistically differ across registrations
@@ -139,16 +144,18 @@ public void verifyAccountWithCode(String verificationCode, String signalingKey,
*
* @throws IOException
*/
public void verifyAccountWithToken(String verificationToken, String signalingKey, int signalProtocolRegistrationId, boolean voice)
public void verifyAccountWithToken(String verificationToken, String signalingKey, boolean fetchesMessages, int signalProtocolRegistrationId, boolean voice)
throws IOException
{
this.pushServiceSocket.verifyAccountToken(verificationToken, signalingKey, signalProtocolRegistrationId, voice);
this.pushServiceSocket.verifyAccountToken(verificationToken, signalingKey, fetchesMessages, signalProtocolRegistrationId, voice);
}

/**
* Refresh account attributes with server.
*
* @param signalingKey 52 random bytes. A 32 byte AES key and a 20 byte Hmac256 key, concatenated.
* @param fetchesMessages A boolean that indicates whether the client supports fetching messages
* (websockets)
* @param signalProtocolRegistrationId A random 14-bit number that identifies this Signal install.
* This value should remain consistent across registrations for the same
* install, but probabilistically differ across registrations for
@@ -157,10 +164,11 @@ public void verifyAccountWithToken(String verificationToken, String signalingKey
*
* @throws IOException
*/
public void setAccountAttributes(String signalingKey, int signalProtocolRegistrationId, boolean voice)
public void setAccountAttributes(String signalingKey, boolean fetchesMessages,
int signalProtocolRegistrationId, boolean voice)
throws IOException
{
this.pushServiceSocket.setAccountAttributes(signalingKey, signalProtocolRegistrationId, voice);
this.pushServiceSocket.setAccountAttributes(signalingKey, fetchesMessages, signalProtocolRegistrationId, voice);
}

/**
Original file line number Diff line number Diff line change
@@ -14,14 +14,18 @@ public class AccountAttributes {
private String signalingKey;

@JsonProperty
private int registrationId;
private boolean fetchesMessages;

@JsonProperty
private boolean voice;

public AccountAttributes(String signalingKey, int registrationId, boolean voice) {
this.signalingKey = signalingKey;
this.registrationId = registrationId;
@JsonProperty
private int registrationId;

public AccountAttributes(String signalingKey, boolean fetchesMessages, int registrationId, boolean voice) {
this.signalingKey = signalingKey;
this.fetchesMessages = fetchesMessages;
this.registrationId = registrationId;
this.voice = voice;
}

@@ -35,6 +39,8 @@ public int getRegistrationId() {
return registrationId;
}

public boolean isFetchesMessages() { return fetchesMessages; }

public boolean isVoice() {
return voice;
}
Original file line number Diff line number Diff line change
@@ -123,24 +123,29 @@ public void createAccount(boolean voice) throws IOException {
makeRequest(String.format(path, credentialsProvider.getUser()), "GET", null);
}

public void verifyAccountCode(String verificationCode, String signalingKey, int registrationId, boolean voice)
public void verifyAccountCode(String verificationCode, String signalingKey,
boolean fetchesMessages, int registrationId, boolean voice)
throws IOException
{
AccountAttributes signalingKeyEntity = new AccountAttributes(signalingKey, registrationId, voice);
AccountAttributes signalingKeyEntity = new AccountAttributes(signalingKey,
fetchesMessages, registrationId, voice);
makeRequest(String.format(VERIFY_ACCOUNT_CODE_PATH, verificationCode),
"PUT", JsonUtil.toJson(signalingKeyEntity));
}

public void verifyAccountToken(String verificationToken, String signalingKey, int registrationId, boolean voice)
public void verifyAccountToken(String verificationToken, String signalingKey, boolean fetchesMessages,
int registrationId, boolean voice)
throws IOException
{
AccountAttributes signalingKeyEntity = new AccountAttributes(signalingKey, registrationId, voice);
AccountAttributes signalingKeyEntity = new AccountAttributes(signalingKey, fetchesMessages, registrationId, voice);
makeRequest(String.format(VERIFY_ACCOUNT_TOKEN_PATH, verificationToken),
"PUT", JsonUtil.toJson(signalingKeyEntity));
}

public void setAccountAttributes(String signalingKey, int registrationId, boolean voice) throws IOException {
AccountAttributes accountAttributes = new AccountAttributes(signalingKey, registrationId, voice);
public void setAccountAttributes(String signalingKey, boolean fetchesMessages,
int registrationId, boolean voice)
throws IOException {
AccountAttributes accountAttributes = new AccountAttributes(signalingKey, fetchesMessages, registrationId, voice);
makeRequest(SET_ACCOUNT_ATTRIBUTES, "PUT", JsonUtil.toJson(accountAttributes));
}