From b8bbd267c798331ebe868b5c924ea0d28c33df83 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Thu, 3 Nov 2022 09:15:40 -0600 Subject: [PATCH] Track app build info in plausible --- .../com/wbrawner/simplemarkdown/MarkdownApplication.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt index a5e997e..8978787 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt +++ b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt @@ -2,6 +2,7 @@ package com.wbrawner.simplemarkdown import android.app.Application import android.os.StrictMode +import com.wbrawner.plausible.android.Plausible import com.wbrawner.simplemarkdown.utility.PersistentTree import com.wbrawner.simplemarkdown.utility.ReviewHelper import kotlinx.coroutines.GlobalScope @@ -31,5 +32,12 @@ class MarkdownApplication : Application() { } super.onCreate() ReviewHelper.init(this) + Plausible.event( + "build", + url = "/", + props = mapOf( + "Flavor" to BuildConfig.FLAVOR, + "App Version" to BuildConfig.VERSION_NAME + )) } }