Skip to content

rafambn/FrameBar

Repository files navigation

Compose Multiplatform Application

Before running!

  • check your system with KDoctor
  • install JDK 17 on your machine
  • add local.properties file to the project root and set a path to Android SDK there

Android

To run the application on android device/emulator:

  • open project in Android Studio and run imported android run configuration

To build the application bundle:

  • run ./gradlew :composeApp:assembleDebug
  • find .apk file in composeApp/build/outputs/apk/debug/composeApp-debug.apk

Desktop

Run the desktop application: ./gradlew :composeApp:run

iOS

To run the application on iPhone device/simulator:

Browser

Run the browser application: ./gradlew :composeApp:jsBrowserDevelopmentRun

Template library with App

Kotlin Multiplatform Library

Publish to MavenCentral

  1. Registering a Sonatype account as described here: https://dev.to/kotlin/how-to-build-and-publish-a-kotlin-multiplatform-library-going-public-4a8k
  2. Add developer id, name, email and the project url to /convention-plugins/src/main/kotlin/convention.publication.gradle.kts
  3. Add the secrets to local.properties:
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=...
ossrhUsername=...
ossrhPassword=...
  1. Run ./gradlew :FrameSeekBar:publishAllPublicationsToSonatypeRepository

Build platform artifacts

Android aar

  • Run ./gradlew :FrameSeekBar:assembleRelease
  • Output: /templateLibrary/build/outputs/aar/templateLibrary-release.aar

JVM jar

  • Run ./gradlew :FrameSeekBar:jvmJar
  • Output: /templateLibrary/build/libs/templateLibrary-jvm-1.0.jar

iOS Framework

  • Run ./gradlew :FrameSeekBar:linkReleaseFrameworkIosArm64
  • Output: /templateLibrary/build/bin/iosArm64/releaseFramework/templateLibrary.framework

JS file

  • Run ./gradlew :FrameSeekBar:jsBrowserProductionWebpack
  • Output: /templateLibrary/build/dist/js/productionExecutable/templateLibrary.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages