Closed MobatiaArshad closed 2 years ago
Hi @MobatiaArshad,
I have updated the lib to handle this.
new LazySodiumAndroid()
then you can use fromBase64String(String)
as normal.Sodium.base64Facade
to Base64Android()
at the start of your program's execution then you use fromBase64String(String)
as normal.Base64Android
into the following new function fromBase64String(String, Base64Facade)
wherever you need it.I haven't yet released version 5.1.1 of the lib yet so you can test this in a snapshot build: 5.1.1-SNAPSHOT
.
Thanks for the update @gurpreet- ❤
Hi @gurpreet- , we're also affected by this issue and it's currently blocking the new release of our app. Can you please give more details about how to use 5.1.1-SNAPSHOT
?
It's a Cordova app, and in the plugin.xml of one of our Cordova plugins I added the dependency like this:
<framework src="com.goterl:lazysodium-android:5.1.1-SNAPSHOT@aar"/>
But I get the following error when compiling:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.goterl:lazysodium-android:5.1.1-SNAPSHOT.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/lazysodium-android-5.1.1-SNAPSHOT.pom
- https://repo.maven.apache.org/maven2/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/lazysodium-android-5.1.1-SNAPSHOT.pom
- https://jcenter.bintray.com/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/maven-metadata.xml
- https://jcenter.bintray.com/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/lazysodium-android-5.1.1-SNAPSHOT.pom
- https://maven.google.com/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/maven-metadata.xml
- https://maven.google.com/com/goterl/lazysodium-android/5.1.1-SNAPSHOT/lazysodium-android-5.1.1-SNAPSHOT.pom
Required by:
project :app
This works fine when using 5.1.0, do I need to change anything to be able to use a snapshot in our app?
Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64;
Crash reports are occurring in the lower SDK versions like (22,23,24,25) which leads to the java Base64
also File no found eception in the DexPathList
I have searched about the issue and what I figured is current Base64 is imported from the
java.util
but is must be imported fromandroid.util
.This is how I decrypt the Base64 in my code
But the
Key
class imports the Base64 from thejava.util
Please let me know if am calling the function right method