Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
Update dependencies, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mklkj committed Dec 7, 2023
1 parent 19194fc commit 163641d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ zostanie.
Ciekawostka: jeśli Xcode project configuration nie jest ustawione (bo akurat zmienialiśmy dostępne konfiguracje przez XCode)
to build się zawiesza na tej części z gradlem i nic się nie dzieje przez wiele minut.

## Deploy API (:server) na VPSa (2023-12-07)

Żeby móc się gdziekolwiek pochwalić tym, co tu robię, potrzebna jest możliwość połączenia się z API
nawet bez komputera pod ręką. Dlatego wykorzystałem te rzeczy, które już znam i opakowałem moduł
:server w kontener Dockera, który następnie jest używany przez Docker Compose (to na przyszłość,
żeby móc łatwo bazę danych razem deployować), a to z kolei jest deployowane na VPS w Oracle Cloud
i wystawione pod moją domeną kommunicator.pich.ovh.

Jakie były trudności? Ze względu na to, że moduł serwerowy, moduł współdzielony, jak i apka mobilna
są połączone w jeden wielki projekt, a VPS w Oracle jest na ARM (VM.Standard.A1.Flex, czyli
Arm processor from Ampere) i przez brak prebuildu kotlina na tę architekturę
(kotlin-native-prebuilt-linux-aarch64 https://youtrack.jetbrains.com/issue/KT-36871/Support-Aarch64-Linux-as-a-host-for-the-Kotlin-Native)
to musiałem hackować i wywalić na potrzeby zbudowania tego modułu, modułu composeApp oraz targetów
iOSowych z modułu shared.

## Materiały

- biblioteki KMM 1 - https://github.com/terrakok/kmm-awesome
Expand Down
11 changes: 5 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ kamelImage = "0.8.3"
koin = "3.5.0"
koinAnnotations = "1.3.0"
koinCompose = "1.1.0"
kotlin = "1.9.20"
# Caused by: java.lang.Throwable: Rewrite at slice LEXICAL_SCOPE key: ANNOTATION_ENTRY old value: org.jetbrains.kotlin.resolve.scopes.LexicalScope$Base@7406b0a6@1946595494 new value: org.jetbrains.kotlin.resolve.scopes.LexicalScope$Base@6e7641ca@1853243850
ksp = "1.9.20-1.0.13"
kotlin = "1.9.21"
ksp = "1.9.21-1.0.15"
ktorfit = "1.10.1"
kotlinxDatetime = "0.4.1"
kotlinxSerializationJson = "1.6.1"
ktor = "2.3.6"
logback = "1.4.11"
compose = "1.5.4"
compose-plugin = "1.5.10"
compose-compiler = "1.5.4"
compose-plugin = "1.5.11"
compose-compiler = "1.5.6"
agp = "8.2.0"
android-minSdk = "24"
android-compileSdk = "34"
Expand Down Expand Up @@ -80,4 +79,4 @@ kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref =
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
ktorfit = { id = "de.jensklingenberg.ktorfit", version.ref = "ktorfit" }
buildkonfig = { id = "com.codingfeline.buildkonfig", version = "0.15.0" }
buildkonfig = { id = "com.codingfeline.buildkonfig", version = "0.15.1" }

0 comments on commit 163641d

Please sign in to comment.