Skip to content

Commit 7e394a0

Browse files
committed
Create new SerpSettingsFeature toggle
1 parent f351f6a commit 7e394a0

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2024 DuckDuckGo
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.duckduckgo.settings.api
18+
19+
import com.duckduckgo.feature.toggles.api.Toggle
20+
import com.duckduckgo.feature.toggles.api.Toggle.DefaultFeatureValue
21+
22+
interface SerpSettingsFeature {
23+
@Toggle.DefaultValue(DefaultFeatureValue.FALSE)
24+
@Toggle.InternalAlwaysEnabled
25+
fun self(): Toggle
26+
27+
@Toggle.DefaultValue(DefaultFeatureValue.FALSE)
28+
fun storeSerpSettings(): Toggle
29+
}

settings/settings-api/src/main/java/com/duckduckgo/settings/api/SettingsPageFeature.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,4 @@ interface SettingsPageFeature {
3030
@Toggle.DefaultValue(DefaultFeatureValue.FALSE)
3131
@Toggle.InternalAlwaysEnabled
3232
fun embeddedSettingsWebView(): Toggle
33-
34-
@Toggle.DefaultValue(DefaultFeatureValue.FALSE)
35-
fun serpSettingsSync(): Toggle
3633
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 DuckDuckGo
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.duckduckgo.settings.impl.serpsettings
18+
19+
import com.duckduckgo.anvil.annotations.ContributesRemoteFeature
20+
import com.duckduckgo.di.scopes.AppScope
21+
import com.duckduckgo.settings.api.SerpSettingsFeature
22+
23+
@ContributesRemoteFeature(
24+
scope = AppScope::class,
25+
featureName = "serp",
26+
boundType = SerpSettingsFeature::class,
27+
)
28+
private interface SerpSettingsFeatureCodeGenTrigger

0 commit comments

Comments
 (0)