From e23f84b2392adf65353d7d12043309267d904832 Mon Sep 17 00:00:00 2001 From: Ondrej Ruttkay <0nko@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:48:21 +0100 Subject: [PATCH] Swiping tabs: Feature flag (#5263) Task/Issue URL: https://app.asana.com/0/1202552961248957/1208659739219426/f ### Description This PR adds a feature flag that will allow us to disable the tab swiping. --------- Co-authored-by: Noelia Alcala --- .../app/browser/SwipingTabsFeature.kt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/src/main/java/com/duckduckgo/app/browser/SwipingTabsFeature.kt diff --git a/app/src/main/java/com/duckduckgo/app/browser/SwipingTabsFeature.kt b/app/src/main/java/com/duckduckgo/app/browser/SwipingTabsFeature.kt new file mode 100644 index 000000000000..cc47d0977e1b --- /dev/null +++ b/app/src/main/java/com/duckduckgo/app/browser/SwipingTabsFeature.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.browser + +import com.duckduckgo.anvil.annotations.ContributesRemoteFeature +import com.duckduckgo.di.scopes.AppScope +import com.duckduckgo.feature.toggles.api.Toggle + +@ContributesRemoteFeature( + scope = AppScope::class, + featureName = "swipingTabs", +) +interface SwipingTabsFeature { + @Toggle.DefaultValue(false) + fun self(): Toggle +}