Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检测计费网络状态来限制 BT 上传 #1082

Merged
merged 14 commits into from
Oct 21, 2024
Merged

Conversation

StageGuard
Copy link
Member

添加 “计费网络限制上传” 选项

开启选项后,在以下网络环境会限制 BT 上传为 1KB/s

  • Android 移动数据
  • Windows 设定 Wi-Fi 为计费网络或使用移动数据

close #179,

image

@Him188 Him188 added the s: torrent 子系统: BT label Oct 19, 2024
@Him188 Him188 enabled auto-merge (squash) October 19, 2024 13:10
@Him188 Him188 added this to the 4.0.0 milestone Oct 19, 2024
@Him188
Copy link
Member

Him188 commented Oct 20, 2024

e: file:///D:/a/ani/ani/app/shared/application/src/commonMain/kotlin/platform/CommonKoinModule.kt:174:51 Unresolved reference 'IO'.

should enable ios and import

@Him188 Him188 merged commit 81c864d into main Oct 21, 2024
6 checks passed
@Him188 Him188 deleted the metered-network-check branch October 21, 2024 12:31
StageGuard added a commit that referenced this pull request Oct 22, 2024
* observe state of metered network.

* use registerNetworkCallback

* observe state of metered network.

* explicitly fallback on macos

* show option only when supported

* fix

* don't hold context

* 在调试设置中增加计费网络信息

* Add AndroidMeteredNetworkDetector logs

* Add NoopMeteredNetworkDetector

* fix ios package name

---------

Co-authored-by: Him188 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s: torrent 子系统: BT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

自动在计费网络下关闭上传
2 participants