Skip to content

Commit

Permalink
downgrade Okhttp version to support android API blow 21
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Amuzadeh committed Sep 1, 2019
1 parent 81bfb99 commit b13892e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/github/restclient/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void initRestClient() {
.build();
}

private void initRestSamlple(){
private void initRestSamlple() {
ArrayMap<String, String> header = new ArrayMap<>();

String clientId = "";
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ buildscript {
extra.set("compileSdk", 28)
extra.set("targetSdk", 28)
extra.set("buildTools", "28.0.3")
extra.set("version_code", 14)
extra.set("version_name", "1.1.5")
extra.set("version_code", 15)
extra.set("version_name", "1.1.6")

repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

implementation("androidx.appcompat:appcompat:1.0.2")
implementation("com.squareup.okhttp3:okhttp:3.14.2")
implementation("com.squareup.okhttp3:okhttp:3.12.3")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${rootProject.extra.get("kotlinVersion")}")

testImplementation("junit:junit:4.12")
Expand Down

0 comments on commit b13892e

Please sign in to comment.