fix: remover URLs sms-gate.app residuais de GatewaySettings
Build AAB — WhatSMS Gateway / build (push) Failing after 36s

This commit is contained in:
2026-04-24 17:35:30 +00:00
parent 5c5b35f9e2
commit 7737b9d6df
@@ -54,9 +54,7 @@ class GatewaySettings(
private const val PRIVATE_TOKEN = "private_token"
private const val NOTIFICATION_CHANNEL = "notification_channel"
const val PUBLIC_URL = "https://api.sms-gate.app/mobile/v1"
// WhatSMS fork: server capcom6 privado da Descomplicar.
// WhatSMS fork: servidor da Descomplicar.
const val WHATSMS_SERVER_URL = "https://smsgw.whatsms.pt/api/mobile/v1"
// WhatSMS fork: private_token do GATEWAY_TOKEN config do server.
@@ -76,7 +74,7 @@ class GatewaySettings(
return data.map {
when (it.key) {
CLOUD_URL -> {
val url = it.value?.toString() ?: PUBLIC_URL
val url = it.value?.toString() ?: WHATSMS_SERVER_URL
if (url != null && !url.startsWith("https://")) {
throw IllegalArgumentException("url must start with https://")
}