mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Replaced old URLs by new ones
This commit is contained in:
parent
d80b023918
commit
46dc7355b2
3 changed files with 19 additions and 5 deletions
|
|
@ -35,9 +35,9 @@ host=
|
|||
port=443
|
||||
|
||||
[misc]
|
||||
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
|
||||
file_transfer_server_url=https://www.linphone.org:444/lft.php
|
||||
version_check_url_root=https://www.linphone.org/releases
|
||||
log_collection_upload_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
|
||||
file_transfer_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
|
||||
version_check_url_root=https://download.linphone.org/releases
|
||||
max_calls=10
|
||||
history_max_size=100
|
||||
conference_layout=1
|
||||
|
|
|
|||
|
|
@ -484,6 +484,17 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
|
|||
|
||||
// Add that flag back, was disabled for a time during dev process
|
||||
core.config.setBool("misc", "hide_empty_chat_rooms", true)
|
||||
|
||||
// Replace old URLs by new ones
|
||||
if (corePreferences.checkForUpdateServerUrl == "https://www.linphone.org/releases") {
|
||||
corePreferences.checkForUpdateServerUrl = "https://download.linphone.org/releases"
|
||||
}
|
||||
if (core.fileTransferServer == "https://www.linphone.org:444/lft.php") {
|
||||
core.fileTransferServer = "https://files.linphone.org/http-file-transfer-server/hft.php"
|
||||
}
|
||||
if (core.logCollectionUploadServerUrl == "https://www.linphone.org:444/lft.php") {
|
||||
core.logCollectionUploadServerUrl = "https://files.linphone.org/http-file-transfer-server/hft.php"
|
||||
}
|
||||
}
|
||||
|
||||
corePreferences.linphoneConfigurationVersion = currentVersion
|
||||
|
|
|
|||
|
|
@ -65,9 +65,12 @@ class CorePreferences @UiThread constructor(private val context: Context) {
|
|||
config.setInt("app", "config_version", value)
|
||||
}
|
||||
|
||||
@get:WorkerThread
|
||||
val checkForUpdateServerUrl: String
|
||||
@get:WorkerThread @set:WorkerThread
|
||||
var checkForUpdateServerUrl: String
|
||||
get() = config.getString("misc", "version_check_url_root", "").orEmpty()
|
||||
set(value) {
|
||||
config.setString("misc", "version_check_url_root", value)
|
||||
}
|
||||
|
||||
@get:WorkerThread @set:WorkerThread
|
||||
var conditionsAndPrivacyPolicyAccepted: Boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue