Skip to content

Commit 73511d7

Browse files
authored
Add fdroid dummy for PrivacyProUnifiedFeedback (#4907)
Task/Issue URL: https://app.asana.com/0/488551667048375/1208047268001821/f ### Description Provide a dummy for fdroid builds ### Steps to test this PR Before the fix `./gradlew assembleFR` would fail After the fix it should build normally
1 parent e1efca5 commit 73511d7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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.subscriptions.impl.feedback
18+
19+
import com.duckduckgo.di.scopes.AppScope
20+
import com.duckduckgo.subscriptions.api.PrivacyProUnifiedFeedback
21+
import com.duckduckgo.subscriptions.api.PrivacyProUnifiedFeedback.PrivacyProFeedbackSource
22+
import com.squareup.anvil.annotations.ContributesBinding
23+
import javax.inject.Inject
24+
25+
@ContributesBinding(AppScope::class)
26+
class DummyPrivacyProUnifiedFeedback @Inject constructor() : PrivacyProUnifiedFeedback {
27+
override suspend fun shouldUseUnifiedFeedback(source: PrivacyProFeedbackSource): Boolean {
28+
return false
29+
}
30+
}

0 commit comments

Comments
 (0)