This is a Kotlin Multiplatform project targeting Android, Desktop, Server.
-
/composeApp
is for code that will be shared across your Compose Multiplatform applications. It contains several subfolders:commonMain
is for code that’s common for all targets.- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name.
For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app,
iosMain
would be the right folder for such calls.
-
/server
is for the Ktor server application. -
/shared
is for the code that will be shared between all targets in the project. The most important subfolder iscommonMain
. If preferred, you can add code to the platform-specific folders here too.
Learn more about Kotlin Multiplatform
cd ~{jresource}/bin
./keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
- Add
google-services.json
toRemnant/composeApp
- add
client_secret_desktop.json
toRemnant/composeApp
- add
ktor-firebase-auth-firebase-adminsdk.json
toRemnant/server/src/main/resources/ktor-firebase-auth-firebase-adminsdk.json
./gradlew :server:build
docker compose up --build
#remove global gradle install
rm -rf ~/.gradle/wrapper/dists/gradle-8.7-bin
./glaflew clean
rm -rf ~/.gradle/caches
#run android studio/intellij
./gradlew build
Open/create local.properties
file and add
sdk.dir=/home/{username}/Android/Sdk
- https://stackoverflow.com/questions/36919313/android-studio-issue-missing-missing-debug-keystore
- https://stackoverflow.com/questions/27037194/keystore-file-doesnt-exist
- https://github.com/JetBrains/compose-multiplatform/blob/master/experimental/components/VideoPlayer
- https://github.com/ktorio/ktor-documentation/tree/3.0.0/codeSnippets/snippets/auth-jwt-rs256
- https://kb.vander.host/security/how-to-generate-rsa-public-and-private-key-pair-in-pkcs8-format/
- https://funkymuse.dev/posts/create-data-store-kmp/ @FunkyMuse
- requires
libvlc
/vlccore
with VLC 3.x.x installed onlinux
/OSx
respctively.