File tree Expand file tree Collapse file tree 5 files changed +5
-3
lines changed
src/main/java/com/checkout Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ object Dependencies {
41
41
const val okhttp = " com.squareup.okhttp3:okhttp:${Versions .okhttp} "
42
42
const val loggingInterceptor = " com.squareup.okhttp3:logging-interceptor:${Versions .loggingInterceptor} "
43
43
const val moshi = " com.squareup.moshi:moshi-kotlin:${Versions .moshi} "
44
+ const val moshiCodeGen = " com.squareup.moshi:moshi-kotlin-codegen:${Versions .moshi} "
44
45
45
46
// Logging
46
47
const val eventLogger = " com.checkout:checkout-sdk-event-logger-android:${Versions .eventLogger} "
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ object Versions {
33
33
// Networking Dependencies
34
34
const val okhttp = " 4.10.0"
35
35
const val loggingInterceptor = " 4.9.3"
36
- const val moshi = " 1.13.0 "
36
+ const val moshi = " 1.15.1 "
37
37
38
38
// Unit Testing Dependencies
39
39
const val junit5Jupiter = " 5.8.0"
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ fun DependencyHandler.networkingDependencies() {
51
51
implementation(Dependencies .okhttp)
52
52
implementation(Dependencies .loggingInterceptor)
53
53
implementation(Dependencies .moshi)
54
+ kapt(Dependencies .moshiCodeGen)
54
55
}
55
56
56
57
/* *
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.checkout.buildsrc.applyNetworkConfigurations
8
8
plugins {
9
9
id(" com.android.library" )
10
10
kotlin(" android" )
11
+ kotlin(" kapt" )
11
12
id(" org.jetbrains.dokka" )
12
13
id(" maven-publish" )
13
14
}
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import com.checkout.tokenization.usecase.ValidateTokenizationDataUseCase
27
27
import com.checkout.validation.validator.AddressValidator
28
28
import com.checkout.validation.validator.PhoneValidator
29
29
import com.squareup.moshi.Moshi
30
- import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
31
30
32
31
public object CheckoutApiServiceFactory {
33
32
@@ -73,7 +72,7 @@ public object CheckoutApiServiceFactory {
73
72
) = TokenNetworkApiClient (
74
73
url,
75
74
OkHttpProvider .createOkHttpClient(publicKey),
76
- Moshi .Builder ().addLast( KotlinJsonAdapterFactory ()). build(),
75
+ Moshi .Builder ().build(),
77
76
)
78
77
79
78
private fun provideThreeDSExecutor (logger : Logger <LoggingEvent >): Executor <ThreeDSRequest > = ThreeDSExecutor (
You can’t perform that action at this time.
0 commit comments