From d20a91d2cf08f779ce5747348b7ccd62c97a7e66 Mon Sep 17 00:00:00 2001 From: flaviuvsp Date: Fri, 9 Aug 2024 12:50:48 +0300 Subject: [PATCH] Use email key for the user profile --- app/build.gradle | 4 ++-- app/src/main/java/org/permanent/permanent/EventsManager.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8b1a1833..f9d42ebb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,8 +15,8 @@ android { applicationId "org.permanent.PermanentArchive" minSdkVersion 26 targetSdkVersion 34 - versionCode 67 - versionName "1.9.1" + versionCode 68 + versionName "1.9.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/org/permanent/permanent/EventsManager.kt b/app/src/main/java/org/permanent/permanent/EventsManager.kt index e795abf0..ef9b57ea 100644 --- a/app/src/main/java/org/permanent/permanent/EventsManager.kt +++ b/app/src/main/java/org/permanent/permanent/EventsManager.kt @@ -11,12 +11,12 @@ class EventsManager(context: Context) { mp.track(event.value, properties) } - fun setUserProfile(id: Int? = null, email: String? = null) { + fun setUserProfile(id: Int? = null, userEmail: String? = null) { id?.let { mp.identify(it.toString()) } - email?.let { - mp.people.set("email", email) + userEmail?.let { + mp.people.set("\$email", userEmail) } }