Disable Plausible for debug builds

This commit is contained in:
William Brawner 2023-01-27 18:15:01 -07:00
parent 5fe4942d84
commit c54f6c00ac
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ class MarkdownApplication : Application() {
} }
super.onCreate() super.onCreate()
ReviewHelper.init(this) ReviewHelper.init(this)
Plausible.enable(!BuildConfig.DEBUG)
Plausible.event( Plausible.event(
"build", "build",
url = "/", url = "/",

View file

@ -86,6 +86,7 @@
<item>@string/pref_key_dark_mode_dark</item> <item>@string/pref_key_dark_mode_dark</item>
<item>@string/pref_key_dark_mode_auto</item> <item>@string/pref_key_dark_mode_auto</item>
</string-array> </string-array>
<string name="plausible_enable_startup">false</string>
<string name="plausible_host">https://plausible.wbrawner.com</string> <string name="plausible_host">https://plausible.wbrawner.com</string>
<string name="plausible_domain">simplemarkdown.android.wbrawner.com</string> <string name="plausible_domain">simplemarkdown.android.wbrawner.com</string>
</resources> </resources>