Package-level declarations

@FeatureFlag and the Platform enumeration that limits a flag to the platforms it applies to. The annotation's own documentation lists the files it generates and the values the processor rejects.

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class FeatureFlag(val key: String, val title: String, val description: String, val defaultValue: Boolean, val dateAdded: String, val platform: Platform = Platform.ALL)

Decorates an anchor declaration (a public object) to declare a feature flag, so the codegen processor can emit both the Metro @Qualifier annotation and the binding pair that wires the flag through FeatureFlagFactory.

Link copied to clipboard

Restricts which platform graph a FeatureFlag is generated into.