Enable initialization on 32bit android devices

This commit is contained in:
Ugljesa Jovanovic 2022-05-19 16:52:27 +02:00
parent 87652f7014
commit 6a47f7d90b
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
3 changed files with 5 additions and 9 deletions

View File

@ -2,8 +2,9 @@
(All dates are DD.MM.YYYY) (All dates are DD.MM.YYYY)
#### 0.8.6-SNAPSHOT #### 0.8.6-SNAPSHOT
- Bump to 1.6.20-RC2 - Bump to 1.6.21
- Fix for #23 - Enable initialization on 32bit Android devices
- Fix for #23 JS libsodium won't initalize
- API change chacha20IetfXorIc now takes UInt initial counter parameter - API change chacha20IetfXorIc now takes UInt initial counter parameter
#### 0.8.5 - 5.3.2022 #### 0.8.5 - 5.3.2022

View File

@ -16,7 +16,7 @@
object Versions { object Versions {
val kotlinCoroutines = "1.6.0-native-mt" val kotlinCoroutines = "1.6.0-native-mt"
val kotlin = "1.6.20-RC2" val kotlin = "1.6.21"
val kotlinSerialization = "1.3.2" val kotlinSerialization = "1.3.2"
val kotlinSerializationPlugin = kotlin val kotlinSerializationPlugin = kotlin
val atomicfu = "0.14.3-M2-2-SNAPSHOT" //NOTE: my linux arm32 and arm64 build val atomicfu = "0.14.3-M2-2-SNAPSHOT" //NOTE: my linux arm32 and arm64 build

View File

@ -29,12 +29,7 @@ actual object LibsodiumInitializer {
SharedLibraryLoader.get().load("dynamic-msvc-x86-64-libsodium.dll", JnaLibsodiumInterface::class.java) SharedLibraryLoader.get().load("dynamic-msvc-x86-64-libsodium.dll", JnaLibsodiumInterface::class.java)
} }
Platform.isAndroid() -> { Platform.isAndroid() -> {
when { File("irrelevant")
Platform.is64Bit() -> {
File("irrelevant")
}
else -> throw RuntimeException("Unsupported platform")
}
} }
else -> throw RuntimeException("Unknown platform") else -> throw RuntimeException("Unknown platform")