Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Template for a Github Actions built Kotlin Multiplatform Project

License

Notifications You must be signed in to change notification settings

adsbynimbus/kotlin-mpp-template

Repository files navigation

Kotlin Multiplatform Client Core

This repository is a template for creating a new Kotlin Mulitplatform project with Android and iOS targets using the latest build tooling.

IDE Setup

Before you begin working with the project, install the Kotlin Multiplatform plugin for your IDE of choice.

Android Studio XCode

Versioning

Project

The project version defaults to 1.0-development unless built within Github actions which will compute the version using tag ref that started the build.

Dependencies

Versions for all dependencies are defined in platform/build.gradle.kts and make use of the java-platform Gradle plugin to centralize where updates to libraries happen.

One Click Deployments

To publish a version of the client library, push a tag to the default branch or use the Releases page to create a new release. This will publish a version that matches the tag name with a package name generated when deploying from Github Actions in the format ${owner}.mpp

Integrating with an existing project

Add the following to your Android build

repositories {
    maven {
        name = "github"
        url = uri("https://maven.pkg.github.com/${owner}/${repository}")
        credentials(PasswordCredentials)
        // Optional filter to speed up dependency resolution
        content {
            includeGroup("${owner}.mpp")
        }
    }
}

dependencies {
    implementation("${owner}.mpp:core")
}

About

Template for a Github Actions built Kotlin Multiplatform Project

Topics

Resources

License

Stars

Watchers

Forks

Packages