Skip to content

MyUNiDAYS/launch-darkly-kotlin-sdk

Repository files navigation

Launch Darkly Kotlin SDK GitHub last commit

A Kotlin Multiplatform wrapper for Launch Darkly

Installation

implementation("com.myunidays:launchdarkly:0.0.2")

How to use

KMM

The api is based on the android sdk, I would recommend you use https://docs.launchdarkly.com/sdk/client-side/android as the main point of reference.

    val client = LDClient(
        context,
        LDConfig("mobile-key", AutoEnvAttributes.Enabled),
        LDContext("context-key")
    )

Then you should be able to fetch values for keys

client.boolVariation("key", false)

Or you can use the catch all implementation of 'allflags'

client.getAllValues()

Contributing

This project is set up as an open source project. As such, if there are any suggestions that you have for features, for improving the code itself, or you have come across any problems; you can raise them and/or suggest changes in implementation.

If you are interested in contributing to this codebase, please follow the contributing guidelines. This contains guides on both contributing directly and raising feature requests or bug reports. Please adhere to our code of conduct when doing any of the above.