From e76cd695e2d6c311b21b49e5c96e52e2a013559e Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Fri, 20 Dec 2024 13:54:01 +0100 Subject: [PATCH] refactor: Rename `api` into `API` --- .../com/infomaniak/core2/appintegrity/AppIntegrityManager.kt | 2 +- .../com/infomaniak/core2/appintegrity/AppIntegrityRepository.kt | 2 +- .../swisstransfer/ui/screen/newtransfer/TransferSendManager.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityManager.kt b/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityManager.kt index 19e5b88537..518fdc2354 100644 --- a/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityManager.kt +++ b/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityManager.kt @@ -34,7 +34,7 @@ import java.util.UUID * * There is 2 types of Request: * - the standard request ([requestIntegrityVerdictToken]) that need a warm-up first ([warmUpTokenProvider]) - * - the classic request ([requestClassicIntegrityVerdictToken]) that need additional Api checks + * - the classic request ([requestClassicIntegrityVerdictToken]) that need additional API checks */ class AppIntegrityManager(private val appContext: Context) { diff --git a/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityRepository.kt b/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityRepository.kt index 31f007acff..4deddcb94c 100644 --- a/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityRepository.kt +++ b/Core2/AppIntegrity/src/main/java/com/infomaniak/core2/appintegrity/AppIntegrityRepository.kt @@ -55,7 +55,7 @@ internal class AppIntegrityRepository { "challenge_id" to challengeId, ) - // Add this line to test validation by api + // Add this line to test validation by API // body["force_integrity_test"] = "true" return post>(url = Url(AppIntegrityRoutes.requestApiIntegrityCheck), data = body) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/TransferSendManager.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/TransferSendManager.kt index 64ce17453d..766dfea764 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/TransferSendManager.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/TransferSendManager.kt @@ -130,7 +130,7 @@ class TransferSendManager @Inject constructor( packageName = BuildConfig.APPLICATION_ID, targetUrl = sharedApiUrlCreator.createUploadContainerUrl, onSuccess = { attestationToken -> - SentryLog.i(APP_INTEGRITY_MANAGER_TAG, "Api verdict check") + SentryLog.i(APP_INTEGRITY_MANAGER_TAG, "API verdict check") Log.i(APP_INTEGRITY_MANAGER_TAG, "getApiIntegrityVerdict: $attestationToken") token = attestationToken },