Launch4s


License

License

Categories

Categories

AWS Container PaaS Providers
GroupId

GroupId

io.github.keirlawson
ArtifactId

ArtifactId

launch4s_2.13
Last Version

Last Version

0.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

Launch4s
Launch4s
Project URL

Project URL

https://github.com/keirlawson/launch4s
Project Organization

Project Organization

io.github.keirlawson
Source Code Management

Source Code Management

https://github.com/keirlawson/launch4s

Download launch4s_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.keirlawson/launch4s_2.13/ -->
<dependency>
    <groupId>io.github.keirlawson</groupId>
    <artifactId>launch4s_2.13</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.keirlawson/launch4s_2.13/
implementation 'io.github.keirlawson:launch4s_2.13:0.9.0'
// https://jarcasting.com/artifacts/io.github.keirlawson/launch4s_2.13/
implementation ("io.github.keirlawson:launch4s_2.13:0.9.0")
'io.github.keirlawson:launch4s_2.13:jar:0.9.0'
<dependency org="io.github.keirlawson" name="launch4s_2.13" rev="0.9.0">
  <artifact name="launch4s_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.keirlawson', module='launch4s_2.13', version='0.9.0')
)
libraryDependencies += "io.github.keirlawson" % "launch4s_2.13" % "0.9.0"
[io.github.keirlawson/launch4s_2.13 "0.9.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.5
com.launchdarkly : launchdarkly-java-server-sdk jar 5.2.0
org.typelevel : cats-effect_2.13 jar 2.3.0
org.typelevel : cats-core_2.13 jar 2.3.0
co.fs2 : fs2-core_2.13 jar 2.4.6

Project Modules

There are no modules declared in this project.

Launch4s

A Cats-friendly Scala wrapper around the LaunchDarkly Java SDK

Usage

The API largely mirrors the Java SDK's API, however there are small deviations in places. For full details consult the Scaladoc.

Example

import launch4s.LaunchDarklyClient
import com.launchdarkly.sdk.LDUser

LaunchDarklyClient.resource[F]("sdkkey", blocker).use { ldClient =>
    val flagValue: F[Boolean] = ldClient.boolVariation("myflagkey", new LDUser(), false)
}

Versions

Version
0.9.0