kopia lustrzana https://github.com/vitorpamplona/amethyst
Removing scrypt native library that doesn't work on Android
rodzic
4746b5b18a
commit
7074446cae
|
@ -149,6 +149,7 @@ android {
|
||||||
resources {
|
resources {
|
||||||
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
||||||
}
|
}
|
||||||
|
exclude '**/libscrypt.dylib'
|
||||||
}
|
}
|
||||||
|
|
||||||
lint {
|
lint {
|
||||||
|
|
|
@ -33,6 +33,11 @@
|
||||||
# JNA For Libsodium
|
# JNA For Libsodium
|
||||||
-keep class com.goterl.lazysodium.** { *; }
|
-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
|
# 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.ToNativeConverter { *; }
|
||||||
-keep class com.sun.jna.NativeMapped { *; }
|
-keep class com.sun.jna.NativeMapped { *; }
|
||||||
|
|
|
@ -34,6 +34,10 @@ android {
|
||||||
jvmTarget = '17'
|
jvmTarget = '17'
|
||||||
freeCompilerArgs += "-Xstring-concat=inline"
|
freeCompilerArgs += "-Xstring-concat=inline"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
packagingOptions {
|
||||||
|
exclude '**/libscrypt.dylib'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -33,6 +33,11 @@
|
||||||
# JNA For Libsodium
|
# JNA For Libsodium
|
||||||
-keep class com.goterl.lazysodium.** { *; }
|
-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
|
# 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.ToNativeConverter { *; }
|
||||||
-keep class com.sun.jna.NativeMapped { *; }
|
-keep class com.sun.jna.NativeMapped { *; }
|
||||||
|
|
Ładowanie…
Reference in New Issue