Skip to content

Commit

Permalink
Add download or upload files plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yangKJ committed Oct 25, 2023
1 parent f2a14ed commit df7a6d3
Show file tree
Hide file tree
Showing 24 changed files with 2,055 additions and 1,804 deletions.
8 changes: 7 additions & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ PODS:
- RxNetworks/Plugins/AnimatedLoading (= 0.4.5)
- RxNetworks/Plugins/Cache (= 0.4.5)
- RxNetworks/Plugins/Debugging (= 0.4.5)
- RxNetworks/Plugins/Files (= 0.4.5)
- RxNetworks/Plugins/GZip (= 0.4.5)
- RxNetworks/Plugins/Header (= 0.4.5)
- RxNetworks/Plugins/Indicator (= 0.4.5)
- RxNetworks/Plugins/Loading (= 0.4.5)
- RxNetworks/Plugins/Shared (= 0.4.5)
- RxNetworks/Plugins/Warning (= 0.4.5)
Expand All @@ -38,10 +40,14 @@ PODS:
- RxNetworks/Core
- RxNetworks/Plugins/Debugging (0.4.5):
- RxNetworks/Core
- RxNetworks/Plugins/Files (0.4.5):
- RxNetworks/Core
- RxNetworks/Plugins/GZip (0.4.5):
- RxNetworks/Core
- RxNetworks/Plugins/Header (0.4.5):
- RxNetworks/Core
- RxNetworks/Plugins/Indicator (0.4.5):
- RxNetworks/Core
- RxNetworks/Plugins/Loading (0.4.5):
- MBProgressHUD
- RxNetworks/Core
Expand Down Expand Up @@ -85,7 +91,7 @@ SPEC CHECKSUMS:
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
Moya: 138f0573e53411fb3dc17016add0b748dfbd78ee
RxCocoa: 94f817b71c07517321eb4f9ad299112ca8af743b
RxNetworks: 31ad42bf4ae28410bcb15933e48299ae9e156b29
RxNetworks: e8ab3495f9626d3a537e58fcfe1c9ff9734d2593
RxRelay: 1de1523e604c72b6c68feadedd1af3b1b4d0ecbd
RxSwift: 5710a9e6b17f3c3d6e40d6e559b9fa1e813b2ef8

Expand Down
26 changes: 26 additions & 0 deletions Pods/Local Podspecs/RxNetworks.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,840 changes: 1,427 additions & 1,413 deletions Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ At the moment, the most important features of RxNetworks can be summarized as fo
- [x] Support data parsing with [HandyJSON](https://github.com/alibaba/HandyJSON).
- [x] Support configuration of general request and path, general parameters, etc.
- [x] Support simple customization of various network plugins for [Moya](https://github.com/Moya/Moya).
- [x] Support for injecting default plugins.
- [x] Support 8 plugins have been packaged for you to use.
- [x] Support uploading and downloading files/resources and so on.
- [x] Support for injecting default plugins with `NetworkConfig.basePlugins`.
- [x] Support 10 plugins have been packaged for you to use.

### Usages
How to use [USAGE](USAGE.md).
Expand All @@ -40,7 +41,8 @@ SharedAPI.loading("Condy").HTTPRequest(success: { _ in
### Plugins
This module is mainly based on moya package network related plugins.

- At present, 8 plugins have been packaged for you to use:
- At present, 10 plugins have been packaged for you to use:
- [HTTPHeader](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Header/NetworkHttpHeaderPlugin.swift): Network HTTP Header Plugin.
- [Cache](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Cache/NetworkCachePlugin.swift): Network Data Cache Plugin.
- [Loading](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Loading/NetworkLoadingPlugin.swift): Load animation plugin.
- [Indicator](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Indicator/NetworkIndicatorPlugin.swift): Indicator plugin.
Expand All @@ -49,6 +51,7 @@ This module is mainly based on moya package network related plugins.
- [GZip](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/GZip/NetworkGZipPlugin.swift): Network data unzip plugin.
- [Shared](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Shared/NetworkSharedPlugin.swift): Network sharing plugin.
- [AnimatedLoading](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/AnimatedLoading/AnimatedLoadingPlugin.swift): Animation loading plugin based on lottie.
- [Files](https://github.com/yangKJ/RxNetworks/blob/master/Sources/Plugins/Files/NetworkFilesPlugin.swift): Network Downloading Files And Uploading Resources Plugin.

🏠 Simple to use, implement the protocol method in the API protocol, and then add the plugin to it:

Expand Down Expand Up @@ -120,14 +123,6 @@ If you only want import cache plugin:
pod 'RxNetworks/Plugins/Cache'
```

OR can use exclusion method add module.

Ex: You don't need indicator plugin, It can be added in Podfile.

```
ENV["RXNETWORKS_PLUGINGS_EXCLUDE"] = "INDICATOR"
```

For other plugins and modules excluded, please read the [podspec](https://github.com/yangKJ/RxNetworks/blob/master/RxNetworks.podspec) file.

### Remarks
Expand Down

0 comments on commit df7a6d3

Please sign in to comment.