From 29114c0e66486beea2877852f69fbcd52f886aeb Mon Sep 17 00:00:00 2001 From: Hector Huang Date: Fri, 12 Jul 2024 14:59:30 +0800 Subject: [PATCH] chore: detekt --- RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt | 1 - RiskSdk/src/main/java/com/airwallex/risk/Event.kt | 1 - RiskSdk/src/main/java/com/airwallex/risk/RiskContext.kt | 1 - RiskSdk/src/test/java/com/airwallex/risk/EventTest.kt | 1 - .../src/test/java/com/airwallex/risk/helpers/FakeRiskContext.kt | 1 - RiskSdk/src/test/java/com/airwallex/risk/helpers/Fixtures.kt | 1 - 6 files changed, 6 deletions(-) diff --git a/RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt b/RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt index a0671ec..df0be98 100644 --- a/RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt +++ b/RiskSdk/src/main/java/com/airwallex/risk/ApiService.kt @@ -3,7 +3,6 @@ package com.airwallex.risk import android.util.Log import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext -import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import java.io.BufferedOutputStream diff --git a/RiskSdk/src/main/java/com/airwallex/risk/Event.kt b/RiskSdk/src/main/java/com/airwallex/risk/Event.kt index 2f559cf..e2dcb83 100644 --- a/RiskSdk/src/main/java/com/airwallex/risk/Event.kt +++ b/RiskSdk/src/main/java/com/airwallex/risk/Event.kt @@ -1,7 +1,6 @@ package com.airwallex.risk import kotlinx.serialization.Serializable -import java.time.Instant import java.util.UUID @Serializable diff --git a/RiskSdk/src/main/java/com/airwallex/risk/RiskContext.kt b/RiskSdk/src/main/java/com/airwallex/risk/RiskContext.kt index a209de7..4b86ec9 100644 --- a/RiskSdk/src/main/java/com/airwallex/risk/RiskContext.kt +++ b/RiskSdk/src/main/java/com/airwallex/risk/RiskContext.kt @@ -1,6 +1,5 @@ package com.airwallex.risk -import java.time.Instant import java.util.UUID internal interface IRiskContext { diff --git a/RiskSdk/src/test/java/com/airwallex/risk/EventTest.kt b/RiskSdk/src/test/java/com/airwallex/risk/EventTest.kt index 5108295..c8965ba 100644 --- a/RiskSdk/src/test/java/com/airwallex/risk/EventTest.kt +++ b/RiskSdk/src/test/java/com/airwallex/risk/EventTest.kt @@ -9,7 +9,6 @@ import kotlinx.serialization.json.decodeFromJsonElement import kotlinx.serialization.json.encodeToJsonElement import org.junit.Before import org.junit.Test -import java.time.Instant import kotlin.test.assertEquals class EventTest { diff --git a/RiskSdk/src/test/java/com/airwallex/risk/helpers/FakeRiskContext.kt b/RiskSdk/src/test/java/com/airwallex/risk/helpers/FakeRiskContext.kt index bcf457f..00aaf66 100644 --- a/RiskSdk/src/test/java/com/airwallex/risk/helpers/FakeRiskContext.kt +++ b/RiskSdk/src/test/java/com/airwallex/risk/helpers/FakeRiskContext.kt @@ -4,7 +4,6 @@ import com.airwallex.risk.Environment import com.airwallex.risk.Event import com.airwallex.risk.IRiskContext import com.airwallex.risk.Tenant -import java.time.Instant import java.util.UUID internal class FakeRiskContext : IRiskContext { diff --git a/RiskSdk/src/test/java/com/airwallex/risk/helpers/Fixtures.kt b/RiskSdk/src/test/java/com/airwallex/risk/helpers/Fixtures.kt index 546f001..3f12224 100644 --- a/RiskSdk/src/test/java/com/airwallex/risk/helpers/Fixtures.kt +++ b/RiskSdk/src/test/java/com/airwallex/risk/helpers/Fixtures.kt @@ -6,7 +6,6 @@ import com.airwallex.risk.Event import com.airwallex.risk.EventDetails import com.airwallex.risk.Screen import com.airwallex.risk.Tenant -import java.time.Instant import java.util.UUID internal object Fixtures {