This repository is a template for creating a new Kotlin Mulitplatform project with Android and iOS targets using the latest build tooling.
Before you begin working with the project, install the Kotlin Multiplatform plugin for your IDE of choice.
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.
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.
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
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")
}