Skip to content

Commit 55ec984

Browse files
authored
Fix F-droid build: Added SubscriptionRebrandingFeatureToggleDummy (#6482)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1201807753394693/task/1210911335127069?focus=true ### Description Added SubscriptionRebrandingFeatureToggleDummy so F-droid builds are fixed ### Steps to test this PR - [ ] Build F-Droid apk CI check is green ✅ ### No UI changes
1 parent 5746370 commit 55ec984

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.subscriptions.impl
18+
19+
import com.duckduckgo.di.scopes.AppScope
20+
import com.duckduckgo.subscriptions.api.SubscriptionRebrandingFeatureToggle
21+
import com.squareup.anvil.annotations.ContributesBinding
22+
import javax.inject.Inject
23+
24+
@ContributesBinding(
25+
scope = AppScope::class,
26+
boundType = SubscriptionRebrandingFeatureToggle::class,
27+
)
28+
class SubscriptionRebrandingFeatureToggleDummy @Inject constructor() : SubscriptionRebrandingFeatureToggle {
29+
30+
override fun isSubscriptionRebrandingEnabled(): Boolean {
31+
return false
32+
}
33+
}

0 commit comments

Comments
 (0)