Skip to content

Commit

Permalink
Merge branch '5093-revive-planet-uriur' into record-not-found-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Jan 23, 2025
2 parents d1ce969 + d76eea1 commit ccc6235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ abstract class SyncActivity : ProcessUserDataActivity(), SyncListener, CheckVers
ServerAddressesModel(getString(R.string.sync_somalia), BuildConfig.PLANET_SOMALIA_URL),
ServerAddressesModel(getString(R.string.sync_vi), BuildConfig.PLANET_VI_URL),
ServerAddressesModel(getString(R.string.sync_xela), BuildConfig.PLANET_XELA_URL),
//ServerAddressesModel(getString(R.string.sync_uriur), BuildConfig.PLANET_URIUR_URL),
ServerAddressesModel(getString(R.string.sync_uriur), BuildConfig.PLANET_URIUR_URL),
ServerAddressesModel(getString(R.string.sync_ruiru), BuildConfig.PLANET_RUIRU_URL),
ServerAddressesModel(getString(R.string.sync_embakasi), BuildConfig.PLANET_EMBAKASI_URL),
ServerAddressesModel(getString(R.string.sync_cambridge), BuildConfig.PLANET_CAMBRIDGE_URL),
Expand All @@ -620,7 +620,7 @@ abstract class SyncActivity : ProcessUserDataActivity(), SyncListener, CheckVers
val actualUrl = serverListAddress.url.replace(Regex("^https?://"), "")
binding.inputServerUrl.setText(actualUrl)
binding.inputServerPassword.setText(getPinForUrl(actualUrl))
val protocol = if (actualUrl == BuildConfig.PLANET_XELA_URL || actualUrl == BuildConfig.PLANET_SANPABLO_URL) "http://" else "https://"
val protocol = if (actualUrl == BuildConfig.PLANET_XELA_URL || actualUrl == BuildConfig.PLANET_SANPABLO_URL || actualUrl == BuildConfig.PLANET_URIUR_URL) "http://" else "https://"
editor.putString("serverProtocol", protocol).apply()
if (serverCheck) {
performSync(dialog)
Expand Down Expand Up @@ -699,7 +699,7 @@ abstract class SyncActivity : ProcessUserDataActivity(), SyncListener, CheckVers
BuildConfig.PLANET_SOMALIA_URL to BuildConfig.PLANET_SOMALIA_PIN,
BuildConfig.PLANET_VI_URL to BuildConfig.PLANET_VI_PIN,
BuildConfig.PLANET_XELA_URL to BuildConfig.PLANET_XELA_PIN,
// BuildConfig.PLANET_URIUR_URL to BuildConfig.PLANET_URIUR_PIN,
BuildConfig.PLANET_URIUR_URL to BuildConfig.PLANET_URIUR_PIN,
BuildConfig.PLANET_RUIRU_URL to BuildConfig.PLANET_RUIRU_PIN,
BuildConfig.PLANET_EMBAKASI_URL to BuildConfig.PLANET_EMBAKASI_PIN,
BuildConfig.PLANET_CAMBRIDGE_URL to BuildConfig.PLANET_CAMBRIDGE_PIN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ServerUrlMapper(private val context: Context, private val settings: Shared
val uri = Uri.parse(url)
"${uri.scheme}://${uri.host}${if (uri.port != -1) ":${uri.port}" else ""}"
} catch (e: Exception) {
e.printStackTrace()
null
}
}
Expand Down

0 comments on commit ccc6235

Please sign in to comment.