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

feat: modify the authorization and the command, support visionOS #43

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

wzxha
Copy link
Contributor

@wzxha wzxha commented Mar 1, 2024

这个修改较大

Client 使用方式

从之前的 client.send() 修改为 client.authorize().send()
client.authorize() 返回 AliyunpanTokensend() 改为 AliyunpanToken 拓展方法

这样做的好处:

  1. 将 client 初始化和授权分离,使 client 更灵活,比如以往的方式在 qrCode 授权时会有生命周期问题。
  2. send 方法内自动重新授权的逻辑删除,为之后 Alamofire、URLSession 拓展建立基础。

VisionOS 支持

@wzxha wzxha linked an issue Mar 1, 2024 that may be closed by this pull request
@wzxha wzxha merged commit b2d0c77 into main Mar 1, 2024
4 checks passed
@wzxha wzxha deleted the feat/visionOS branch March 1, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

visionOS 支持
1 participant