Skip to content

Commit

Permalink
Revert unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
duartepinto committed May 6, 2021
1 parent 28867b0 commit 4a10ea8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ val eventJsonObj = mapOf(
"clientId" to "velocidi",
"siteId" to "velocidi.com",
"type" to "appView",
"title" to "Welcome Screen"
"title" to "Welcome Screen",
"customFields" to mapOf(
"debug" to true,
"role" to "superuser"
)
)

Velocidi.getInstance().track(UserId("<Advertising ID>", "gaid"), JSONObject(eventJsonObj))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,34 @@ class MainActivity : AppCompatActivity() {
val matchButton = findViewById<Button>(R.id.match_button)

trackButton.setOnClickListener {
val eventJsonString =
"""
{
"clientId": "velocidi",
"siteId": "velocidi.com",
"type": "appView",
"customFields": {
"debug": true,
"role": "superuser"
},
"title": "Welcome Screen"
}
""".trimIndent()

Velocidi.getInstance().track(
UserId("user_email_hash", "email_sha256"),
eventJsonString
)

val eventJsonObj = mapOf(
"foo" to "exampleA",
"bar" to 42,
"baz" to true,
"quuxFoo" to arrayOf(
mapOf(
"a" to "1",
"b" to 2,
"c" to mapOf(
"a" to arrayOf(
1,
2,
3
),
"b" to "bGrault",
"c" to arrayOf<Any>(),
"d" to mapOf<String, Any>()
),
"d" to true
)
),
"corge" to false
"clientId" to "velocidi",
"siteId" to "velocidi.com",
"type" to "appView",
"title" to "Welcome Screen",
"customFields" to mapOf(
"debug" to true,
"role" to "superuser"
)
)

Velocidi.getInstance().track(
Expand Down

0 comments on commit 4a10ea8

Please sign in to comment.