Skip to content

Commit

Permalink
Swiping tabs: Feature flag (#5263)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
0nko and nalcalag authored Nov 15, 2024
1 parent 0b20f52 commit e23f84b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/src/main/java/com/duckduckgo/app/browser/SwipingTabsFeature.kt
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e23f84b

Please sign in to comment.