Skip to content

A series of KMM(Kotlin Multiplatform Mobile) foundation libraries.

License

Notifications You must be signed in to change notification settings

arkilis/KMMFoundation

 
 

Repository files navigation

KMMFoundation

A series of KMM(Kotlin Multiplatform Mobile) foundation libraries.

Introduction

Official release of KMM libraries provided by SuoxingTech. Including:

  • kmm-arch which provides fundamental MVVM Architecture Components (i.e. ViewModel).
  • kmm-kv which provides Key-value storage solution. Jetpack DataStore for Android and NSUserDefaults for iOS.
  • kmm-database which provides wrapped Realm's Kotlin SDK.
  • kmm-analytics which provides wrapped FirebaseAnalytics & FirebaseCrashlytics.

For more information about released packages you can visit Packages under our organization space.

Latest version

Library Dependency Version
kmm_arch dev.suoxing.kmm:kmm-arch github
kmm_kv dev.suoxing.kmm:kmm-kv github
kmm_database dev.suoxing.kmm:kmm-database github
kmm_analytics dev.suoxing.kmm:kmm-analytics github

Using GitHub Registry

Artifacts are currently published to GitHubPackages, which requires additional config on dependencyResolutionManagement block:

dependencyResolutionManagement {
    repositories {
        maven {
            name = "GitHubPackages"
            url = uri("https://maven.pkg.github.com/SuoxingTech/KMMFoundation")

            val prop = java.util.Properties().apply {
                load(java.io.FileInputStream(File(rootDir, "local.properties")))
            }
            val githubUser: String? = prop.getProperty("github.user")
            val githubToken: String? = prop.getProperty("github.token")

            credentials {
                username = githubUser
                password = githubToken
            }
        }
    }
}

Add Dependency

sourceSets {
    val commonMain by getting {
        dependencies {
            api("dev.suoxing.kmm:kmm-arch:$kmm_arch_ver")
            api("dev.suoxing.kmm:kmm-kv:$kmm_kv_ver")
            api("dev.suoxing.kmm:kmm-database:$kmm_database_ver")
        }
    }
}

kmm_analytics may have issue on iOS builds. you can use only android artifact by add to android dependency like: implementation("dev.suoxing.kmm:kmm_analytics-android:$kmm_analytics_ver")

About

A series of KMM(Kotlin Multiplatform Mobile) foundation libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Kotlin 68.4%
  • Ruby 31.6%