Skip to content

Commit

Permalink
Add package name
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 15, 2024
1 parent 2200ac0 commit 2d3170c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package io.appium.espressoserver.lib.handlers

import androidx.test.platform.app.InstrumentationRegistry
import io.appium.espressoserver.lib.helpers.getEspressoServerVersion
import io.appium.espressoserver.lib.model.AppiumParams
import io.appium.espressoserver.lib.model.BuildInfo
Expand All @@ -28,7 +29,8 @@ class Status : RequestHandler<AppiumParams, io.appium.espressoserver.lib.model.S
ready = true,
message = "The server is ready to accept new connections",
build = BuildInfo(
version = getEspressoServerVersion()
version = getEspressoServerVersion(),
packageName = InstrumentationRegistry.getInstrumentation().targetContext.packageName
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ data class Status(
)

data class BuildInfo(
val version: String
val version: String,
val packageName: String
)

0 comments on commit 2d3170c

Please sign in to comment.