Skip to main content

Installation

Konditional Core is a single dependency.

Replace VERSION with the latest published version.

Gradle (Kotlin DSL)

// build.gradle.kts
dependencies {
implementation("io.amichne:konditional-core:VERSION")
}

Test Fixtures (Optional)

Konditional provides test helpers for common testing scenarios. Add the testFixtures dependency to your test configuration:

Gradle (Kotlin DSL)

// build.gradle.kts
dependencies {
testImplementation(testFixtures("io.amichne:konditional-core:VERSION"))
}

Available test helpers:

  • CommonTestFeatures — Pre-configured feature flags for common testing scenarios
  • EnterpriseTestFeatures — Enterprise-tier feature flags for advanced testing
  • TestAxis — Axis definitions for testing multi-dimensional targeting
  • TestNamespace — Namespace implementations for testing
  • TestStableId — StableId utilities for deterministic test buckets
  • TargetingIds — Pre-computed IDs for specific bucket targeting
  • FeatureMutators — Utilities for modifying feature configurations in tests

See How-To: Test Your Feature Flags for usage examples.


That is enough to define features and evaluate them in code. If you need remote configuration, JSON serialization, or observability utilities, see the module docs: