From 6c18dc6d1dd933097c734ddaf41bec19f5cbd917 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Fri, 23 Dec 2022 21:28:14 -0700 Subject: [PATCH] Add Plausible analytics --- .idea/jarRepositories.xml | 5 ++ .../java/com/wbrawner/pihelper/AuthScreen.kt | 5 +- .../java/com/wbrawner/pihelper/InfoScreen.kt | 8 ++- .../com/wbrawner/pihelper/MainActivity.kt | 1 - .../com/wbrawner/pihelper/PiHelperModule.kt | 11 +-- app/src/main/res/values/strings.xml | 2 + build.gradle.kts | 5 ++ gradle/libs.versions.toml | 2 + shared/build.gradle.kts | 1 + .../shared/PlausibleAnalyticsHelper.kt | 18 +++++ .../pihelper/shared/AnalyticsHelper.kt | 23 +++++++ .../com/wbrawner/pihelper/shared/Store.kt | 67 +++++++++++++++---- 12 files changed, 123 insertions(+), 25 deletions(-) create mode 100644 shared/src/androidMain/kotlin/com/wbrawner/pihelper/shared/PlausibleAnalyticsHelper.kt create mode 100644 shared/src/commonMain/kotlin/com/wbrawner/pihelper/shared/AnalyticsHelper.kt diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index e34606c..147f384 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -26,5 +26,10 @@