Removing scrypt native library that doesn't work on Android

This commit is contained in:
Vitor Pamplona 2024-02-14 17:48:57 -05:00
parent 4746b5b18a
commit 7074446cae
4 changed files with 15 additions and 0 deletions

View File

@ -149,6 +149,7 @@ android {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
exclude '**/libscrypt.dylib'
}
lint {

View File

@ -33,6 +33,11 @@
# JNA For Libsodium
-keep class com.goterl.lazysodium.** { *; }
# libscrypt
-keep class com.lambdaworks.codec.** { *; }
-keep class com.lambdaworks.crypto.** { *; }
-keep class com.lambdaworks.jni.** { *; }
# JNA also requires AWT, which Android does not have. So the classes are broken down to filter AWT out
-keep class com.sun.jna.ToNativeConverter { *; }
-keep class com.sun.jna.NativeMapped { *; }

View File

@ -34,6 +34,10 @@ android {
jvmTarget = '17'
freeCompilerArgs += "-Xstring-concat=inline"
}
packagingOptions {
exclude '**/libscrypt.dylib'
}
}
dependencies {

View File

@ -33,6 +33,11 @@
# JNA For Libsodium
-keep class com.goterl.lazysodium.** { *; }
# libscrypt
-keep class com.lambdaworks.codec.** { *; }
-keep class com.lambdaworks.crypto.** { *; }
-keep class com.lambdaworks.jni.** { *; }
# JNA also requires AWT, which Android does not have. So the classes are broken down to filter AWT out
-keep class com.sun.jna.ToNativeConverter { *; }
-keep class com.sun.jna.NativeMapped { *; }