Apache License 2.0

项目介绍

JessYanCoding/ProgressManager 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 2.7k 个 Star、287 次 Fork。

仓库全名
JessYanCoding/ProgressManager
开源许可证
Apache License 2.0
Star 数
2.7k
Fork 数
287
未关闭 Issue
8

README 摘要

ProgressManager Listen the progress of downloading and uploading in Okhttp (compatible Retrofit and Glide). 中文说明 Overview Introduction ProgressManager a line of code to listen App all the links and upload the progress of the network, including Glide picture loading progress, to achieve the principle of similar EventBus, you can be in anywhere in App, the number of listeners to Url address as an identifier,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ProgressManager 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 2.7k 个 Star。

ProgressManager 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ProgressManager 的源码?

可以直接克隆仓库:git clone https://github.com/JessYanCoding/ProgressManager.git,默认分支为 master;安装与运行步骤见仓库 README。

ProgressManager 最近还在维护吗?

仓库最近一次更新为 2022年7月27日,当前有 8 个未关闭 Issue;Star 数为 2.7k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

⏳ Listen the progress of downloading and uploading in Okhttp, compatible Retrofit and Glide (一行代码即可监听 App 中所有网络链接的上传以及下载进度, 包括 Glide 的图片加载进度).

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
3338
价值分
1720
活跃状态
活跃

语言占比

Java

Release

README

ProgressManager

Jcenter Build Status Android Arsenal API License Author QQ-Group

Listen the progress of downloading and uploading in Okhttp (compatible Retrofit and Glide).

中文说明

Overview

gif

Introduction

ProgressManager a line of code to listen App all the links and upload the progress of the network, including Glide picture loading progress, to achieve the principle of similar EventBus, you can be in anywhere in App, the number of listeners to Url address as an identifier, registered to the framework, when this Url address haves to download or upload the action, the framework will take the initiative to call All listeners registered with this Url address are synchronized to multiple modules.

Feature

  • Easy to use, just a line of code to listen progress.
  • Multi-platform support, support Okhttp , Retrofit , Glide ,Use Okhttp native Api , there is no compatibility problem.
  • Low coupling, the actual request and the progress of the receiver does not exist directly or indirectly, that can be anywhere in App to receive progress information.
  • Low intrusion, use this framework you do not need to change the code before uploading or downloading, ie using or not using this framework does not affect the original code.
  • Multi-end synchronization, the same data source upload or download progress can specify a number of different receivers, less to use EventBus achieve multiple port synchronization update progress.
  • Support multi-file upload.
  • Support URL redirection.
  • Automatic management of the listener, less to manually cancel the trouble of the listener.
  • The default run in the main line layer, less to switch the thread of trouble.
  • Lightweight framework, does not contain any three-party library, very small size.

Download

 implementation 'me.jessyan:progressmanager:1.5.0'

Usage

Step 1

 // When building OkHttpClient, the OkHttpClient.Builder() is passed to the with() method to initialize the configuration
 OkHttpClient = ProgressManager.getInstance().with(new OkHttpClient.Builder())
                .build();

Step 2

 // Glide load
 ProgressManager.getInstance().addResponseListener(IMAGE_URL, getGlideListener());


 // Okhttp/Retofit download
 ProgressManager.getInstance().addResponseListener(DOWNLOAD_URL, getDownloadListener());


 // Okhttp/Retofit upload
 ProgressManager.getInstance().addRequestListener(UPLOAD_URL, getUploadListener());

ProGuard

 -keep class me.jessyan.progressmanager.** { *; }
 -keep interface me.jessyan.progressmanager.** { *; }

About Me

License

 Copyright 2017, jessyan

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

评论

暂无评论