Simple cross platform feature flags build for various flavours of .net
.netstandard feature flags and also Xamarin Forms specific extensions
Release | Pre-Release | |
---|---|---|
Build | ||
FutureFlag | ||
FutureFlag.Forms |
- All - A composite flag that enables when all children are enabled
- Any - A composite flag that enables when any single child is enabled
- AlwaysOff - IsEnabled = false
- AlwaysOn - IsEnabled = true
- JsonRest - IsEnabled when a JSON response comes back
{isEnabled : true|false}
- OnOrAfter - IsEnabled on or after a specific date
- OnOrBefore - IsEnabled on or before a specific date
- BetweenDates - IsEnabled between two dates
- Random - IsEnabled is totally random
- Version - IsEnabled on or after a specific version
- Simple - IsEnabled is specified by the developer
- Cached - Caches the
IsEnabled
result of a givenIFutureFlag
for a given amount of time.
note: you can create any custom Future Flag you like by using the IFutureFlag
interface
declare your Future Flag via xaml
<Page xmlns:futureFlag="http://github.com/chaseflorell/futureflag">
<Page.Resources>
<ResourceDictionary>
<featureFlag:VersionFutureFlag x:Key="FutureVersion"
Version="1.3"/>
</ResourceDictionary>
</Page.Resources>
</Page>
Use the attached property to attach a future flag to a VisualElement
<Label Text="I'm only visible on or after version 1.3"
featureFlag:VisualElement.FutureFlag="{StaticResource FutureVersion}"/>
Attribution to Jason Roberts and his work on FeatureToggle, as it's what got me started.