Skip to content

Commit

Permalink
Merge pull request #12 from flipkart-incubator/okhttp
Browse files Browse the repository at this point in the history
downgrade okhttp version as it has breaking changes
  • Loading branch information
anirudhramanan committed May 29, 2020
2 parents 52efad7 + b5dd8f3 commit 872460f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion madman-okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
api 'com.squareup.okhttp3:okhttp:4.4.0'
api 'com.squareup.okhttp3:okhttp:3.14.4'
implementation project(':madman')

testImplementation 'junit:junit:4.12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ open class DefaultNetworkLayer(private val context: Context) : NetworkLayer,
override fun onResponse(call: Call, response: Response) {
if (response.isSuccessful) {
resultListener?.onSuccess(
response.code,
response.body?.string()
response.code(),
response.body()?.string()
)
} else {
resultListener?.onError(
response.code,
response.body?.string() ?: ERROR_MESSAGE
response.code(),
response.body()?.string() ?: ERROR_MESSAGE
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.flipkart.madman.component.enums
* List of all ad events sent to the client.
*/
enum class AdEventType {
CUEPOINTS_CHANGED,
STARTED,
PAUSED,
RESUMED,
Expand Down

0 comments on commit 872460f

Please sign in to comment.