update dependencies

This commit is contained in:
InsanusMokrassar 2023-08-05 13:49:45 +06:00
parent ee948395e3
commit 4478193d8a
88 changed files with 24 additions and 23 deletions

View File

@ -1,12 +1,10 @@
package dev.inmo.micro_utils.common package dev.inmo.micro_utils.common
import kotlinx.cinterop.ByteVar import kotlinx.cinterop.*
import kotlinx.cinterop.allocArray
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.toKString
import platform.posix.snprintf import platform.posix.snprintf
import platform.posix.sprintf import platform.posix.sprintf
@OptIn(ExperimentalForeignApi::class)
actual fun Float.fixed(signs: Int): Float { actual fun Float.fixed(signs: Int): Float {
return memScoped { return memScoped {
val buff = allocArray<ByteVar>(Float.SIZE_BYTES * 2) val buff = allocArray<ByteVar>(Float.SIZE_BYTES * 2)
@ -16,6 +14,7 @@ actual fun Float.fixed(signs: Int): Float {
} }
} }
@OptIn(ExperimentalForeignApi::class)
actual fun Double.fixed(signs: Int): Double { actual fun Double.fixed(signs: Int): Double {
return memScoped { return memScoped {
val buff = allocArray<ByteVar>(Double.SIZE_BYTES * 2) val buff = allocArray<ByteVar>(Double.SIZE_BYTES * 2)

View File

@ -1,12 +1,10 @@
package dev.inmo.micro_utils.common package dev.inmo.micro_utils.common
import kotlinx.cinterop.ByteVar import kotlinx.cinterop.*
import kotlinx.cinterop.allocArray
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.toKString
import platform.posix.snprintf import platform.posix.snprintf
import platform.posix.sprintf import platform.posix.sprintf
@OptIn(ExperimentalForeignApi::class)
actual fun Float.fixed(signs: Int): Float { actual fun Float.fixed(signs: Int): Float {
return memScoped { return memScoped {
val buff = allocArray<ByteVar>(Float.SIZE_BYTES * 2) val buff = allocArray<ByteVar>(Float.SIZE_BYTES * 2)
@ -16,6 +14,7 @@ actual fun Float.fixed(signs: Int): Float {
} }
} }
@OptIn(ExperimentalForeignApi::class)
actual fun Double.fixed(signs: Int): Double { actual fun Double.fixed(signs: Int): Double {
return memScoped { return memScoped {
val buff = allocArray<ByteVar>(Double.SIZE_BYTES * 2) val buff = allocArray<ByteVar>(Double.SIZE_BYTES * 2)

View File

@ -29,8 +29,4 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
} }

View File

@ -1,27 +1,27 @@
[versions] [versions]
kt = "1.8.22" kt = "1.9.0"
kt-serialization = "1.5.1" kt-serialization = "1.5.1"
kt-coroutines = "1.7.3" kt-coroutines = "1.7.3"
kslog = "1.1.1" kslog = "1.2.0"
jb-compose = "1.4.3" jb-compose = "1.4.3"
jb-exposed = "0.41.1" jb-exposed = "0.42.0"
jb-dokka = "1.8.20" jb-dokka = "1.8.20"
korlibs = "4.0.3" korlibs = "4.0.9"
uuid = "0.7.1" uuid = "0.8.0"
ktor = "2.3.2" ktor = "2.3.3"
gh-release = "2.4.1" gh-release = "2.4.1"
koin = "3.4.3" koin = "3.4.3"
okio = "3.4.0" okio = "3.5.0"
ksp = "1.8.22-1.0.11" ksp = "1.9.0-1.0.13"
kotlin-poet = "1.14.2" kotlin-poet = "1.14.2"
versions = "0.47.0" versions = "0.47.0"

7
local.migrate.folder.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
for folder in $(find . -depth -type d -name "main");
do
newFolder="`echo $folder | sed 's/main/androidMain/g'`"
mv $folder "$newFolder"
done

View File

@ -4,7 +4,7 @@ project.group = "$group"
apply from: "$publishGradlePath" apply from: "$publishGradlePath"
kotlin { kotlin {
android { androidTarget {
publishAllLibraryVariants() publishAllLibraryVariants()
} }

View File

@ -15,7 +15,7 @@ kotlin {
browser() browser()
nodejs() nodejs()
} }
android { androidTarget {
publishAllLibraryVariants() publishAllLibraryVariants()
} }
linuxX64() linuxX64()

View File

@ -15,7 +15,7 @@ kotlin {
browser() browser()
nodejs() nodejs()
} }
android { androidTarget {
publishAllLibraryVariants() publishAllLibraryVariants()
} }