Skip to content

Commit

Permalink
Upgrade lazysodium and jni, drop jcenter
Browse files Browse the repository at this point in the history
This commit removes the dependency on the JCenter repository, which was
discontinued and is now in read-only mode.
  • Loading branch information
threema-danilo committed May 6, 2021
1 parent 9f93b79 commit d01e553
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ ext {
// In this section you declare where to find the dependencies of your project
repositories {
mavenCentral()
jcenter() // TODO: Remove
}

// In this section you declare the dependencies for your production and test code
Expand All @@ -57,8 +56,8 @@ dependencies {
// Test dependencies
testImplementation 'org.slf4j:slf4j-simple:[1.7,1.8)'
testImplementation 'junit:junit:4.12'
testImplementation 'com.goterl.lazycode:lazysodium-java:[3.3,4)'
testImplementation 'net.java.dev.jna:jna:[5,6)'
testImplementation 'com.goterl:lazysodium-java:5.0.1'
testImplementation 'net.java.dev.jna:jna:5.8.0'
}

test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
*/
package org.saltyrtc.client.tests;

import com.goterl.lazycode.lazysodium.LazySodiumJava;
import com.goterl.lazycode.lazysodium.SodiumJava;
import com.goterl.lazycode.lazysodium.interfaces.Box;
import com.goterl.lazysodium.LazySodiumJava;
import com.goterl.lazysodium.SodiumJava;
import com.goterl.lazysodium.interfaces.Box;
import org.saltyrtc.client.annotations.NonNull;
import org.saltyrtc.client.crypto.CryptoException;
import org.saltyrtc.client.crypto.CryptoInstance;
import org.saltyrtc.client.crypto.CryptoProvider;

import static com.goterl.lazycode.lazysodium.interfaces.Box.BEFORENMBYTES;
import static com.goterl.lazycode.lazysodium.interfaces.Box.MACBYTES;
import static com.goterl.lazysodium.interfaces.Box.BEFORENMBYTES;
import static com.goterl.lazysodium.interfaces.Box.MACBYTES;

/**
* An implementation of the CryptoInstance interface for lazysodium-java.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/
package org.saltyrtc.client.tests;

import com.goterl.lazycode.lazysodium.LazySodiumJava;
import com.goterl.lazycode.lazysodium.SodiumJava;
import com.goterl.lazycode.lazysodium.interfaces.Box;
import com.goterl.lazycode.lazysodium.interfaces.SecretBox;
import com.goterl.lazysodium.LazySodiumJava;
import com.goterl.lazysodium.SodiumJava;
import com.goterl.lazysodium.interfaces.Box;
import com.goterl.lazysodium.interfaces.SecretBox;
import org.saltyrtc.client.annotations.NonNull;
import org.saltyrtc.client.crypto.CryptoException;
import org.saltyrtc.client.crypto.CryptoInstance;
Expand Down

0 comments on commit d01e553

Please sign in to comment.