Skip to content

Commit

Permalink
Use email key for the user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviuvsp committed Aug 9, 2024
1 parent 4cfc2b9 commit d20a91d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/org/permanent/permanent/EventsManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit d20a91d

Please sign in to comment.