Skip to content

Commit

Permalink
downgrade kotlin to fix shitty samsung phones
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 3, 2024
1 parent e9d45ec commit 2a397ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import coil3.annotation.DelicateCoilApi
import dev.datlag.burningseries.module.NetworkModule
import dev.datlag.burningseries.other.StateSaver
import dev.datlag.sekret.NativeLoader
import dev.datlag.tooling.scopeCatching
import io.github.aakira.napier.DebugAntilog
import io.github.aakira.napier.Napier
import org.kodein.di.DI
Expand Down Expand Up @@ -44,7 +45,11 @@ class App : MultiDexApplication(), DIAware {
.build()
)
}
StateSaver.sekretLibraryLoaded = NativeLoader.loadLibrary("sekret")
StateSaver.sekretLibraryLoaded = NativeLoader.loadLibrary("sekret") || scopeCatching {
System.loadLibrary("sekret")
}.onFailure {
Napier.e("Sekret loading error", it)
}.isSuccess

val imageLoader by di.instance<ImageLoader>()
SingletonImageLoader.setUnsafe(imageLoader)
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ kmpalette = "3.1.0"
kodein = "7.22.0"
kolor = "2.0.0"
konfig = "0.15.2"
kotlin = "2.1.0"
kotlin = "2.0.0"
ksoup = "0.2.0"
ksp = "2.1.0-1.0.28"
ksp = "2.0.0-1.0.24"
ktor = "3.0.1"
ktorfit = "2.2.0"
ktorfit = "2.1.0"
media3 = "1.5.0"
moko-resources = "0.24.3"
multidex = "2.0.1"
Expand Down Expand Up @@ -106,7 +106,7 @@ ktor-content-negotiation = { group = "io.ktor", name = "ktor-client-content-nego
ktor-serialization-json = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-network = { group = "io.ktor", name = "ktor-network", version.ref = "ktor" }
ktor-network-tls = { group = "io.ktor", name = "ktor-network-tls", version.ref = "ktor" }
ktorfit = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-lib", version.ref = "ktorfit" }
ktorfit = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-lib-ktor-3.0.0", version.ref = "ktorfit" }
ktorfit-ksp = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-ksp", version.ref = "ktorfit" }
media3 = { group = "androidx.media3", name = "media3-exoplayer", version.ref = "media3" }
media3-dash = { group = "androidx.media3", name = "media3-exoplayer-dash", version.ref = "media3" }
Expand Down

0 comments on commit 2a397ca

Please sign in to comment.