Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #39 from blotoutio/feature/react_native_android_su…
Browse files Browse the repository at this point in the history
…pport

React native support
  • Loading branch information
nitinblotout authored Feb 2, 2022
2 parents f2be6f6 + 57087b2 commit 879f774
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ interface BlotoutAnalyticsInterface {

fun getUserId():String

fun transaction(transactionData: TransactionData, withInformation:HashMap<String,Any>?)
fun transaction(transactionData: TransactionData, withInformation:HashMap<String,Any>)

fun item(itemData: Item, withInformation:HashMap<String,Any>?)
fun item(itemData: Item, withInformation:HashMap<String,Any>)

fun persona(personaData: Persona, withInformation:HashMap<String,Any>?)
fun persona(personaData: Persona, withInformation:HashMap<String,Any>)
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ open class BlotoutAnalyticsInternal : BlotoutAnalyticsInterface {
}

@Synchronized
override fun transaction(transactionData: TransactionData, withInformation: HashMap<String, Any>?) {
override fun transaction(transactionData: TransactionData, withInformation: HashMap<String, Any>) {
CoroutineScope(Dispatchers.Default).launch {
try {
val _withInformation = withInformation ?: hashMapOf()
Expand All @@ -164,7 +164,7 @@ open class BlotoutAnalyticsInternal : BlotoutAnalyticsInterface {
}

@Synchronized
override fun item(itemData: Item, withInformation: HashMap<String, Any>?) {
override fun item(itemData: Item, withInformation: HashMap<String, Any>) {
CoroutineScope(Dispatchers.Default).launch {
try {
val _withInformation = withInformation ?: hashMapOf()
Expand All @@ -184,7 +184,7 @@ open class BlotoutAnalyticsInternal : BlotoutAnalyticsInterface {
}

@Synchronized
override fun persona(personaData: Persona , withInformation: HashMap<String, Any>?) {
override fun persona(personaData: Persona , withInformation: HashMap<String, Any>) {
CoroutineScope(Dispatchers.Default).launch {
try {
val _withInformation = withInformation ?: hashMapOf()
Expand Down

0 comments on commit 879f774

Please sign in to comment.