diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..e353dbe3f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,13 @@ +# Configuration for CodeCov.io service. +# https://docs.codecov.com/docs/codecov-yaml +# https://docs.codecov.com/docs/common-recipe-list + +coverage: + status: + # rules applied to only changes in a pull request. Not changes to the test coverage of the entire project. + patch: + default: + # Do not fail CI server if pull request doesn't introduce very many tests in it. It's annoying to make a pull request blocked because + # it does not contain very many tests in it. We care more about the test coverage of the whole project. For small pull requests that only + # change a couple lines of code, 'patch' check is common to fail and can be more annoying then useful. + informational: true \ No newline at end of file diff --git a/sdk/src/main/java/io/customer/sdk/api/HttpRequestRunner.kt b/sdk/src/main/java/io/customer/sdk/api/HttpRequestRunner.kt index 99d2a7bc3..5c53cc429 100644 --- a/sdk/src/main/java/io/customer/sdk/api/HttpRequestRunner.kt +++ b/sdk/src/main/java/io/customer/sdk/api/HttpRequestRunner.kt @@ -40,6 +40,7 @@ class HttpRequestRunnerImpl( response = makeRequest() } catch (e: Throwable) { // HTTP request was not able to be made. Probably an Internet connection issue + logger.debug("HTTP request failed. Error: ${e.message}") } if (response == null) { diff --git a/sdk/src/main/java/io/customer/sdk/di/CustomerIOComponent.kt b/sdk/src/main/java/io/customer/sdk/di/CustomerIOComponent.kt index 87cf20c01..bc0b1ec9f 100644 --- a/sdk/src/main/java/io/customer/sdk/di/CustomerIOComponent.kt +++ b/sdk/src/main/java/io/customer/sdk/di/CustomerIOComponent.kt @@ -154,7 +154,7 @@ class CustomerIOComponent( val okHttpClient = clientBuilder(timeout).build() return override() ?: Retrofit.Builder() .baseUrl(endpoint) - .addConverterFactory(MoshiConverterFactory.create()) + .addConverterFactory(MoshiConverterFactory.create(moshi)) .client(okHttpClient) .build() }