Skip to content

Commit

Permalink
Use binary feature flags in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora committed May 21, 2024
1 parent 49de31f commit e5893e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
5 changes: 1 addition & 4 deletions samples/basic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ laboratory {
withOption("Error")
}

feature("ReportRootedDevice") {
disabledFeature("ReportRootedDevice") {
description = "Reports during [cold start](https://developer.android.com/topic/performance/vitals/launch-time#cold) whether device is rooted"

withDefaultOption("Disabled")
withOption("Enabled")
}

feature("Authentication") {
Expand Down
17 changes: 3 additions & 14 deletions samples/default-option/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,9 @@ laboratory {

featureFactory()

feature("ShowAds") {
withDefaultOption("Enabled")
withOption("Disabled")
}

feature("ReportRootedDevice") {
withDefaultOption("Enabled")
withOption("Disabled")
}

feature("RequiredFingerprint") {
withDefaultOption("Enabled")
withOption("Disabled")
}
enabledFeature("ShowAds")
enabledFeature("ReportRootedDevice")
enabledFeature("RequiredFingerprint")
}

dependencies {
Expand Down
11 changes: 2 additions & 9 deletions samples/multi-module/multi-module-b/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ laboratory {
withOption("Error")
}

feature("ShowAds") {
withDefaultOption("Enabled")
withOption("Disabled")
}

feature("ReportRootedDevice") {
withDefaultOption("Enabled")
withOption("Disabled")
}
enabledFeature("ShowAds")
enabledFeature("ReportRootedDevice")
}

0 comments on commit e5893e8

Please sign in to comment.