-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated to use 'shared-tenant-fes/api/v1/account/feedback'.| #2827
- Loading branch information
Showing
4 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected] | ||
* Contributors: DenBond7 | ||
* Contributors: denbond7 | ||
*/ | ||
|
||
package com.flowcrypt.email.ui.base | ||
|
@@ -20,6 +20,6 @@ abstract class BaseFeedbackFragmentTest : BaseTest() { | |
"SGQ4ADpmmXunpe7TYyMRB2t/IQapb3HLbfZlKDTWVqv95rL4VGJTtLltrSTuzpB7XGk13C8Dj8fNY77SrB+5bT" + | ||
"M0empyso5HTKLcdM8cHIu0Sz4yAgAVj29yuFbCq9x6S6oH7vkL1RIf/+CFeP17HNVfX5IMAAAAASUVORK5CYII=" | ||
|
||
val SCREENSHOT_BYTE_ARRAY: ByteArray = Base64.decode(SCREENSHOT_BASE64, Base64.DEFAULT) | ||
val SCREENSHOT_BYTE_ARRAY: ByteArray = Base64.decode(SCREENSHOT_BASE64, Base64.NO_WRAP) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected] | ||
* Contributors: DenBond7 | ||
* Contributors: denbond7 | ||
*/ | ||
|
||
package com.flowcrypt.email.api.retrofit | ||
|
@@ -53,15 +53,17 @@ interface RetrofitApiServiceInterface { | |
): Response<WelcomeMessageResponse> | ||
|
||
/** | ||
* This method create a [Call] object for the API "https://flowcrypt.com/api/help/feedback" | ||
* This method create a [Call] object for the API "https://https://flowcrypt.com/shared-tenant-fes/api/v1/account/feedback" | ||
* | ||
* ref https://github.com/FlowCrypt/flowcrypt-android/pull/2171#discussion_r1084124018 | ||
* ref https://github.com/FlowCrypt/flowcrypt-android/issues/2827 | ||
* | ||
* @param body POJO model for requests | ||
* @return [<] | ||
*/ | ||
//@POST(BuildConfig.SHARED_TENANT_FES_URL + "help/feedback") | ||
//ref https://github.com/FlowCrypt/flowcrypt-android/pull/2171#discussion_r1084124018 | ||
@POST(BuildConfig.BACKEND_URL + "help/feedback") | ||
suspend fun backendPostHelpFeedback(@Body body: PostHelpFeedbackModel): Response<PostHelpFeedbackResponse> | ||
@POST(BuildConfig.SHARED_TENANT_FES_URL + "api/v1/account/feedback") | ||
suspend fun backendPostHelpFeedback(@Body body: PostHelpFeedbackModel): | ||
Response<PostHelpFeedbackResponse> | ||
|
||
/** | ||
* This method create a [Call] object for the API "https://flowcrypt.com/attester/pub" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected] | ||
* Contributors: DenBond7 | ||
* Contributors: denbond7 | ||
*/ | ||
|
||
package com.flowcrypt.email.jetpack.viewmodel | ||
|
@@ -41,7 +41,7 @@ class SendFeedbackViewModel(application: Application) : BaseAndroidViewModel(app | |
postFeedbackMutableStateFlow.value = | ||
Result.loading(progressMsg = context.getString(R.string.sending)) | ||
val screenShotBase64 = | ||
Base64.encodeToString(screenshot?.byteArray ?: byteArrayOf(), Base64.DEFAULT) | ||
Base64.encodeToString(screenshot?.byteArray ?: byteArrayOf(), Base64.NO_WRAP) | ||
|
||
try { | ||
postFeedbackMutableStateFlow.value = ApiClientRepository.Backend.postHelpFeedback( | ||
|