File tree Expand file tree Collapse file tree 3 files changed +57
-3
lines changed
settings-api/src/main/java/com/duckduckgo/settings/api
settings-impl/src/main/java/com/duckduckgo/settings/impl/serpsettings Expand file tree Collapse file tree 3 files changed +57
-3
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments