From cd12c58d08d3b6c63bf15f889b4a88d9c284fa87 Mon Sep 17 00:00:00 2001 From: 0nko Date: Tue, 14 Jan 2025 12:03:20 +0100 Subject: [PATCH] Add a new feature flag for multi-selection --- .../app/tabs/TabMultiSelectionFeature.kt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/src/main/java/com/duckduckgo/app/tabs/TabMultiSelectionFeature.kt diff --git a/app/src/main/java/com/duckduckgo/app/tabs/TabMultiSelectionFeature.kt b/app/src/main/java/com/duckduckgo/app/tabs/TabMultiSelectionFeature.kt new file mode 100644 index 000000000000..d733e6a9dd0c --- /dev/null +++ b/app/src/main/java/com/duckduckgo/app/tabs/TabMultiSelectionFeature.kt @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2024 DuckDuckGo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.duckduckgo.app.tabs + +import com.duckduckgo.anvil.annotations.ContributesRemoteFeature +import com.duckduckgo.di.scopes.AppScope +import com.duckduckgo.feature.toggles.api.Toggle + +@ContributesRemoteFeature( + scope = AppScope::class, + featureName = "tabMultiSelection", +) +interface TabMultiSelectionFeature { + @Toggle.DefaultValue(false) + fun self(): Toggle +}