Skip to content

Commit

Permalink
Added new exception logging method in client. Updated version code to 31
Browse files Browse the repository at this point in the history
  • Loading branch information
shannon-rodricks committed Sep 24, 2023
1 parent 8292409 commit bcb71cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {
ext {
kotlin_version = '1.8.22'
versionName = '0.0.30'
versionName = '0.0.31'
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.evdayapps.madassistant.clientlib
import com.evdayapps.madassistant.clientlib.connection.ConnectionManager
import com.evdayapps.madassistant.clientlib.transmission.Transmitter
import com.evdayapps.madassistant.clientlib.utils.Logger
import com.evdayapps.madassistant.common.models.exceptions.ExceptionModel
import com.evdayapps.madassistant.common.models.networkcalls.NetworkCallLogModel

/**
Expand Down Expand Up @@ -126,4 +127,11 @@ interface MADAssistantClient {
message: String? = null,
data: Map<String, Any>? = null
)

/**
* Log an exception in the system
*/
fun logException(
exception: ExceptionModel
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.evdayapps.madassistant.clientlib.transmission.Transmitter
import com.evdayapps.madassistant.clientlib.transmission.TransmitterImpl
import com.evdayapps.madassistant.common.cipher.MADAssistantCipher
import com.evdayapps.madassistant.common.cipher.MADAssistantCipherImpl
import com.evdayapps.madassistant.common.models.exceptions.ExceptionModel
import com.evdayapps.madassistant.common.models.networkcalls.NetworkCallLogModel

/**
Expand Down Expand Up @@ -173,6 +174,13 @@ class MADAssistantClientImpl(
message = message,
data = data
)

/**
* Log an exception in the system
*/
override fun logException(exception: ExceptionModel) =
transmitter.logException(exception = exception)

// endregion Logging

}

0 comments on commit bcb71cf

Please sign in to comment.