Skip to content

Commit

Permalink
fix: register device tokens http request
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed May 2, 2022
1 parent 71634ed commit b1c6872
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions 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
1 change: 1 addition & 0 deletions sdk/src/main/java/io/customer/sdk/api/HttpRequestRunner.kt
Expand Up @@ -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) {
Expand Down
Expand Up @@ -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()
}
Expand Down

0 comments on commit b1c6872

Please sign in to comment.