Skip to content

droplet-js/android-network

Repository files navigation

android-network

Build Status GitHub tag API

okhttp3

  1. OkHttp适用于Android 5.0+(API级别21+)和Java 8+。
  2. issues#4597
  3. java8-support
jdk >= JavaVersion.VERSION_1_8
android.defaultConfig.minSdkVersion >= 21

snapshot

ext {
    latestVersion = '1.0.3-SNAPSHOT'
}

allprojects {
    repositories {
        ...
        maven {
            url 'https://oss.jfrog.org/artifactory/oss-snapshot-local'
        }
        ...
    }
}

release

ext {
    latestVersion = '1.0.2'
}

allprojects {
    repositories {
        ...
        jcenter()
        ...
    }
}

usage

java

...
dependencies {
    ...
    implementation "io.github.v7lin:okhttp3:${latestVersion}"
    ...
}
...
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
...

android

...
android {
    ...
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    ...
}
...
dependencies {
    ...
//    implementation "io.github.v7lin:okhttp3:${latestVersion}"
    implementation "io.github.v7lin:okhttp3-android:${latestVersion}"
    ...
}
...

example

android example

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages