Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82095e614d |
@@ -11,8 +11,8 @@ android {
|
||||
applicationId = "com.expapp.trigger"
|
||||
minSdk = 24
|
||||
targetSdk = 34
|
||||
versionCode = 20
|
||||
versionName = "1.3.1"
|
||||
versionCode = 21
|
||||
versionName = "1.3.2"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
|
||||
@@ -93,7 +93,11 @@ class SysPulseClient(
|
||||
|
||||
fun resolveBaseUrl(device: DeviceConfig, nodeStatus: NodeStatus? = null): String {
|
||||
if (device.syspulseUrl.isNotBlank()) {
|
||||
return device.syspulseUrl.trim().removeSuffix("/")
|
||||
return device.syspulseUrl.trim()
|
||||
.removeSuffix("/")
|
||||
.removeSuffix("/api/status")
|
||||
.removeSuffix("/api")
|
||||
.removeSuffix("/")
|
||||
}
|
||||
val ip = nodeStatus?.ip?.trim()
|
||||
if (!ip.isNullOrBlank()) {
|
||||
|
||||
Reference in New Issue
Block a user