Skip to content

Commit

Permalink
Merge pull request #3 from bobpf/externalize-hostname
Browse files Browse the repository at this point in the history
Externalize Hostname
  • Loading branch information
mazenrashed authored Oct 1, 2019
2 parents d26a764 + f662a54 commit cd29f08
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ import kotlin.collections.ArrayList

object LogDna {

private const val hostName = "Android App"
private var hostName = "Android App"
private var apiKey: String? = null
var appName: String? = null
var logResults = PublishRelay.create<LogResult>()
var logResultsListener: ((LogResult) -> Unit)? = null

fun init(apiKey: String, appName: String?) {
fun init(apiKey: String, appName: String?, hostName: String?) {
this.apiKey = apiKey
this.appName = appName
hostName?.let{ this.hostName = it }
}

fun log(line: Line) {
Expand Down

0 comments on commit cd29f08

Please sign in to comment.