From 544368e94827512bbd29891f2cbb2b0c7cb79357 Mon Sep 17 00:00:00 2001 From: AnatolyPristensky Date: Thu, 8 Feb 2024 11:17:15 +0100 Subject: [PATCH 1/2] Update package and replace imports --- android/app/build.gradle | 2 +- .../com/microsoft/codepush/react/CodePushUpdateUtils.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 4fae97e0e..68ae7292f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -27,5 +27,5 @@ android { dependencies { implementation "com.facebook.react:react-native:+" - implementation 'com.nimbusds:nimbus-jose-jwt:5.1' + implementation 'com.nimbusds:nimbus-jose-jwt:9.37.3' } diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java index 7b6ffd0e9..a4c17d21e 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java @@ -3,11 +3,12 @@ import android.content.Context; import android.util.Base64; +import com.nimbusds.jose.crypto.JWSVerifier; +import com.nimbusds.jose.crypto.RSASSAVerifier; +import com.nimbusds.jose.crypto.SignedJWT; + import java.security.interfaces.*; -import com.nimbusds.jose.*; -import com.nimbusds.jose.crypto.*; -import com.nimbusds.jwt.*; import org.json.JSONArray; import org.json.JSONException; From df2c88350fa67036ce27ac12b36f3ae22d090e05 Mon Sep 17 00:00:00 2001 From: AnatolyPristensky Date: Wed, 21 Feb 2024 16:44:45 +0100 Subject: [PATCH 2/2] Update CodePushUpdateUtils.java --- .../com/microsoft/codepush/react/CodePushUpdateUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java index a4c17d21e..af8b979f3 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java @@ -3,9 +3,9 @@ import android.content.Context; import android.util.Base64; -import com.nimbusds.jose.crypto.JWSVerifier; +import com.nimbusds.jose.JWSVerifier; import com.nimbusds.jose.crypto.RSASSAVerifier; -import com.nimbusds.jose.crypto.SignedJWT; +import com.nimbusds.jwt.SignedJWT; import java.security.interfaces.*;