File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ or [JVM](https://github.com/Eppo-exp/java-server-sdk) SDKs.
10
10
11
11
``` groovy
12
12
dependencies {
13
- implementation 'cloud.eppo:sdk-common-jvm:3.4.0 '
13
+ implementation 'cloud.eppo:sdk-common-jvm:3.4.1 '
14
14
}
15
15
```
16
16
@@ -49,6 +49,6 @@ repositories {
49
49
}
50
50
51
51
dependencies {
52
- implementation 'cloud.eppo:sdk-common-jvm:3.0.3 -SNAPSHOT'
52
+ implementation 'cloud.eppo:sdk-common-jvm:3.4.2 -SNAPSHOT'
53
53
}
54
54
```
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
6
6
}
7
7
8
8
group = ' cloud.eppo'
9
- version = ' 3.4.0 '
9
+ version = ' 3.4.1 '
10
10
ext. isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
11
11
12
12
java {
@@ -20,12 +20,8 @@ dependencies {
20
20
implementation ' com.fasterxml.jackson.core:jackson-databind:2.17.2'
21
21
implementation ' com.github.zafarkhaja:java-semver:0.10.2'
22
22
implementation " com.squareup.okhttp3:okhttp:4.12.0"
23
-
24
23
// For LRU and expiring maps
25
- implementation group : ' org.apache.commons' , name : ' commons-collections4' , version : ' 4.4'
26
-
27
- // For UFC DTOs
28
- implementation ' commons-codec:commons-codec:1.17.1'
24
+ implementation ' org.apache.commons:commons-collections4:4.4'
29
25
implementation ' org.slf4j:slf4j-api:2.0.16'
30
26
testImplementation ' org.slf4j:slf4j-simple:2.0.16'
31
27
testImplementation platform(' org.junit:junit-bom:5.10.3' )
Original file line number Diff line number Diff line change 6
6
import java .security .NoSuchAlgorithmException ;
7
7
import java .text .ParseException ;
8
8
import java .text .SimpleDateFormat ;
9
+ import java .util .Base64 ;
9
10
import java .util .Date ;
10
11
import java .util .Locale ;
11
- import org .apache .commons .codec .binary .Base64 ;
12
12
import org .slf4j .Logger ;
13
13
import org .slf4j .LoggerFactory ;
14
14
@@ -105,14 +105,14 @@ public static String base64Encode(String input) {
105
105
if (input == null ) {
106
106
return null ;
107
107
}
108
- return Base64 .encodeBase64String ( input .getBytes (StandardCharsets .UTF_8 ));
108
+ return new String ( Base64 .getEncoder (). encode ( input .getBytes (StandardCharsets .UTF_8 ) ));
109
109
}
110
110
111
111
public static String base64Decode (String input ) {
112
112
if (input == null ) {
113
113
return null ;
114
114
}
115
- byte [] decodedBytes = Base64 .decodeBase64 (input );
115
+ byte [] decodedBytes = Base64 .getDecoder (). decode (input );
116
116
if (decodedBytes .length == 0 && !input .isEmpty ()) {
117
117
throw new RuntimeException (
118
118
"zero byte output from Base64; if not running on Android hardware be sure to use RobolectricTestRunner" );
You can’t perform that action at this time.
0 commit comments