mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Merge remote-tracking branch 'p1gp1g/unifiedpush' into unifiedpush
Change-Id: Ief98ae56d40f0724ba0e5f1f1c6ec09832425e58
This commit is contained in:
commit
8475f24f17
3 changed files with 17 additions and 7 deletions
|
@ -14,7 +14,7 @@ kapt {
|
|||
// Note: 2 digits max for each value
|
||||
ext.versionMajor = 1
|
||||
ext.versionMinor = 2
|
||||
ext.versionPatch = 0
|
||||
ext.versionPatch = 1
|
||||
|
||||
ext.scVersion = 40
|
||||
|
||||
|
|
|
@ -35,12 +35,22 @@ class TestNewEndpoint @Inject constructor(private val context: AppCompatActivity
|
|||
|
||||
val endpoint = UPHelper.getUpEndpoint(context)
|
||||
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_success, endpoint)
|
||||
if (UPHelper.isEmbeddedDistributor(context)) {
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_fcm_success, endpoint)
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_fcm_failed)
|
||||
}
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_failed)
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_success, endpoint)
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_failed)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1132,7 +1132,7 @@
|
|||
<string name="settings_troubleshoot_test_play_services_quickfix">Fix Play Services</string>
|
||||
|
||||
<!-- Unifiedpush Endpoint -->
|
||||
<string name="settings_troubleshoot_test_endpoint_title">Endpoint</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_title">Endpoint/FCM</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_success">Endpoint successfully retrieved:\n%1$s</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_failed">Failed to retrieved Endpoint.</string>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue