From c54f6c00ac99f5367a11227290f3c088cfb051c9 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Fri, 27 Jan 2023 18:15:01 -0700 Subject: [PATCH] Disable Plausible for debug builds --- .../main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt | 1 + app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt index 8978787..e6f232f 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt +++ b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt @@ -32,6 +32,7 @@ class MarkdownApplication : Application() { } super.onCreate() ReviewHelper.init(this) + Plausible.enable(!BuildConfig.DEBUG) Plausible.event( "build", url = "/", diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a621eb6..a9f3dcf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -86,6 +86,7 @@ @string/pref_key_dark_mode_dark @string/pref_key_dark_mode_auto + false https://plausible.wbrawner.com simplemarkdown.android.wbrawner.com