-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8132c83
commit 7286ca7
Showing
7 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package mihon.core.firebase | ||
|
||
import android.content.Context | ||
import eu.kanade.tachiyomi.core.security.SecurityPreferences | ||
import eu.kanade.tachiyomi.core.security.PrivacyPreferences | ||
import kotlinx.coroutines.CoroutineScope | ||
|
||
object Firebase { | ||
fun setup(context: Context, preference: SecurityPreferences, scope: CoroutineScope) = Unit | ||
fun setup(context: Context, preference: PrivacyPreferences, scope: CoroutineScope) = Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
core/common/src/main/kotlin/eu/kanade/tachiyomi/core/security/PrivacyPreferences.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package eu.kanade.tachiyomi.core.security | ||
|
||
import tachiyomi.core.common.preference.PreferenceStore | ||
|
||
class PrivacyPreferences( | ||
private val preferenceStore: PreferenceStore, | ||
) { | ||
fun crashlytics() = preferenceStore.getBoolean("crashlytics", false) | ||
|
||
fun analytics() = preferenceStore.getBoolean("analytics", false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters