Skip to content

Commit

Permalink
移动文件目录
Browse files Browse the repository at this point in the history
  • Loading branch information
kymjs committed Apr 6, 2022
1 parent dff11a7 commit ef25199
Show file tree
Hide file tree
Showing 102 changed files with 53 additions and 73 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ RxVolley is modified Volley. Removed the HttpClient, and support RxJava.

If you are building with Gradle, simply add the following line to the ```dependencies``` section of your ```build.gradle``` file:

>implementation 'com.kymjs.rxvolley:rxvolley:3.0.0'
latest version numbers: [![](https://jitpack.io/v/kymjs/RxVolley.svg)](https://jitpack.io/#kymjs/RxVolley)

>implementation 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
>
>// If use okhttp function
>implementation 'com.kymjs.rxvolley:okhttp3:3.0.0'
>implementation 'com.github.kymjs.rxvolley:okhttp3:3.0.0'
>//or okhttp2
>implementation 'com.kymjs.rxvolley:okhttp:3.0.0'
>implementation 'com.github.kymjs.rxvolley:okhttp:3.0.0'
>
>// If use image-loader function
>implementation 'com.kymjs.rxvolley:bitmapcore:3.0.0'
>implementation 'com.github.kymjs.rxvolley:image:3.0.0'

## Getting Started
Expand Down
23 changes: 16 additions & 7 deletions Readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,39 @@


## 依赖
最新RXVolley版本号为:[![](https://jitpack.io/v/kymjs/RxVolley.svg)](https://jitpack.io/#kymjs/RxVolley)

使用RxVolley,需要在你的`build.gradle`文件中加入
使用RxVolley,需要在你的根`build.gradle`文件中加入

```
implementation 'com.kymjs.rxvolley:rxvolley:3.0.0'
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```

对应的模块`build.gradle`中引入依赖:

```
implementation 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
```

如果你还想使用OKhttp来替代默认的```HttpUrlconnection```,需要加入

```
implementation 'com.kymjs.rxvolley:okhttp3:3.0.0'
implementation 'com.github.kymjs.rxvolley:okhttp3:3.0.0'
//或者 okhttp2(二选一)
implementation 'com.kymjs.rxvolley:okhttp:3.0.0'
implementation 'com.github.kymjs.rxvolley:okhttp:3.0.0'
```

如果你想使用RxVolley的图片加载功能(复用http模块可以有效减少apk大小),需要加入

```
implementation 'com.kymjs.rxvolley:bitmapcore:3.0.0'
implementation 'com.github.kymjs.rxvolley:image:3.0.0'
```

使用 RxVolley 做网络请求

## 简洁实现

```
Expand Down
1 change: 0 additions & 1 deletion RxVolley/rxvolley/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion RxVolley/settings.gradle

This file was deleted.

File renamed without changes.
7 changes: 5 additions & 2 deletions RxVolley/app/build.gradle → app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ dependencies {
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.kymjs.core:common:1.0.10'
implementation 'com.github.kymjs:common:2.0.0'
implementation 'com.google.code.gson:gson:2.8.8'
implementation project(':bitmapcore')
implementation project(':image')
implementation project(':okhttp3')
implementation project(':rxvolley')
// implementation 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
// implementation 'com.github.kymjs.rxvolley:okhttp3:3.0.0'
// implementation 'com.github.kymjs.rxvolley:image:3.0.0'

debugImplementation 'junit:junit:4.12'
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 6 additions & 15 deletions RxVolley/bitmapcore/build.gradle → image/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'

group = 'com.github.kymjs.rxvolley'
version = "3.0.0"

android {
compileSdkVersion 30
resourcePrefix "bitmapcore_"
Expand Down Expand Up @@ -28,23 +31,11 @@ android {
dependencies {
implementation 'io.reactivex.rxjava3:rxjava:3.1.0'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.kymjs.rxvolley:rxvolley:3.0.0'
// implementation project(':rxvolley')
implementation 'com.kymjs.core:common:1.0.10'
// compileOnly 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
compileOnly project(':rxvolley')
implementation 'com.github.kymjs:common:2.0.0'
}

apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.kymjs.rxvolley'
artifactId = 'bitmapcore'
version = "3.0.0"
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 5 additions & 14 deletions RxVolley/okhttp/build.gradle → okhttp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'

group = 'com.github.kymjs.rxvolley'
version = "3.0.0"

android {
compileSdkVersion 30
resourcePrefix "okhttp_"
Expand All @@ -26,23 +29,11 @@ android {
}

dependencies {
implementation 'com.kymjs.rxvolley:rxvolley:3.0.0'
// implementation project(':rxvolley')
// compileOnly 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
compileOnly project(':rxvolley')
implementation 'com.squareup.okhttp:okhttp:2.7.0'
}

apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.kymjs.core'
artifactId = 'okhttp'
version = "3.0.0"
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 6 additions & 16 deletions RxVolley/okhttp3/build.gradle → okhttp3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'

group = 'com.github.kymjs'
version = "3.0.0"

android {
compileSdkVersion 30
resourcePrefix "okhttp_"
Expand All @@ -26,23 +29,10 @@ android {
}

dependencies {
implementation 'com.kymjs.rxvolley:rxvolley:3.0.0'
// implementation project(':rxvolley')
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
// compileOnly 'com.github.kymjs.rxvolley:rxvolley:3.0.0'
compileOnly project(':rxvolley')
api 'com.squareup.okhttp3:okhttp:3.14.9'
}

apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.kymjs.rxvolley'
artifactId = 'okhttp3'
version = "3.0.0"
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 4 additions & 13 deletions RxVolley/rxvolley/build.gradle → rxvolley2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'

group = 'com.github.kymjs.rxvolley'
version = "3.0.0"

android {
compileSdkVersion 30
resourcePrefix "rxvolley_"
Expand Down Expand Up @@ -28,22 +31,10 @@ android {
dependencies {
implementation 'io.reactivex.rxjava3:rxjava:3.1.0'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.kymjs.core:common:1.0.10'
implementation 'com.github.kymjs:common:2.0.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
}

apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.kymjs.rxvolley'
artifactId = 'rxvolley'
version = "3.0.0"
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include ':app'
include ':rxvolley'
include ':image'
include ':okhttp'
include ':okhttp3'

0 comments on commit ef25199

Please sign in to comment.