Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
🔖 SDK 2.0.5 Support Zotero
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed May 19, 2024
1 parent 7e5f2e5 commit dc6c34a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 21 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ implementation "com.squareup.okhttp3:logging-interceptor:3.12.13" //api19
implementation "com.google.code.gson:gson:2.8.9"
//主要
implementation "net.xdow:aliyundrive-sdk-openapi:2.0.4"
implementation "net.xdow:aliyundrive-sdk-webapi:2.0.4"
implementation "net.xdow:aliyundrive-sdk-openapi:2.0.5"
implementation "net.xdow:aliyundrive-sdk-webapi:2.0.5"
//可选
implementation "net.xdow:webdav:2.0.4"
implementation "net.xdow:webdav-jakarta:2.0.4"
implementation "net.xdow:webdav-javax:2.0.4"
implementation "net.xdow:aliyundrive-webdav-internal:2.0.4"
implementation "net.xdow:aliyundrive-android-core:2.0.4"
implementation "net.xdow:jap-http:2.0.4"
implementation "net.xdow:jap-http-jakarta-adapter:2.0.4"
implementation "net.xdow:jap-http-javax-adapter:2.0.4"
implementation "net.xdow:webdav:2.0.5"
implementation "net.xdow:webdav-jakarta:2.0.5"
implementation "net.xdow:webdav-javax:2.0.5"
implementation "net.xdow:aliyundrive-webdav-internal:2.0.5"
implementation "net.xdow:aliyundrive-android-core:2.0.5"
implementation "net.xdow:jap-http:2.0.5"
implementation "net.xdow:jap-http-jakarta-adapter:2.0.5"
implementation "net.xdow:jap-http-javax-adapter:2.0.5"
```
## SDK基础用法
```java
Expand Down Expand Up @@ -214,6 +214,7 @@ AliyunDrive.newAliyunDrive()
| MXPlayer | :rocket:直连模式 | :white_check_mark: | |
| jetAudio | :rocket:直连模式 | :white_check_mark: | 受jetAudio限制,端口号只能为80(http) 或 443(https),<br/>安卓端不可直接监听以上端口! |
| VLC | ~~:rocket:直连模式~~ | :white_check_mark: | |
| Zotero | :rocket:直连模式 | :white_check_mark: | |

- 所有客户端均默认支持代理模式
- ~~:rocket:直连模式~~: 由于阿里云盘目前直链有效期为15分钟, 部分播放器遇阿里云盘链接失效不会主动回webdav请求, 常见表现为播放停止, 无法拖动进度条, 中途直接切换下一集等等, 以上有标注的播放器均默认禁用直连模式, 普通连续下载文件不受影响
Expand Down
2 changes: 1 addition & 1 deletion aliyundrive-android-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
apply plugin: 'com.android.library'

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive Webdav Android Core'

repositories {
Expand Down
2 changes: 1 addition & 1 deletion aliyundrive-sdk-openapi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive OpenApi SDK'

java {
Expand Down
2 changes: 1 addition & 1 deletion aliyundrive-sdk-webapi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive WebApi SDK'

java {
Expand Down
2 changes: 1 addition & 1 deletion aliyundrive-webdav-internal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive Webdav internal'

java {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLDecoder;
import java.util.*;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
Expand Down Expand Up @@ -332,7 +333,7 @@ public AliyunDriveFileInfo uploadPre(String path, long size, InputStream inputSt
vTFile.setSize(0L);
resultTFile = vTFile;
LOGGER.info("文件上传成功。文件名:{} 文件大小: {} 已上传: {} 虚拟文件: {}", path, size, totalUploadedSize, vTFile);
} if (totalUploadedSize == size) {
} if (totalUploadedSize == size || path.endsWith("/zotero/zotero-test-file.prop")) {
AliyunDriveResponse.FileUploadCompleteInfo fileUploadCompleteInfo = uploadComplete(fileInfo, uploadId, sha1Sum);
uploadSuccess = true;
AliyunDriveFileInfo vTFile = virtualTFileService.get(parentInfo, fileId);
Expand Down Expand Up @@ -728,6 +729,9 @@ private AliyunDriveFileInfo getNodeIdByPath2(String path) {
if (info.getName().equals(name)) {
return info;
}
if (String.valueOf(name).contains("%") && info.getName().equals(URLDecoder.decode(name))) {
return info;
}
}
}
return getNodeIdByParentId(AFileReqInfo.from(tFile), name);
Expand Down
2 changes: 1 addition & 1 deletion jap-http-adapter/jap-http-jakarta-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'jap-http servlet interface jakarta adapter'

java {
Expand Down
2 changes: 1 addition & 1 deletion jap-http-adapter/jap-http-javax-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'jap-http servlet interface javax adapter'

java {
Expand Down
2 changes: 1 addition & 1 deletion jap-http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'jap-http servlet interface'

java {
Expand Down
2 changes: 1 addition & 1 deletion webdav-jakarta/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive Webdav jakarta implement'

java {
Expand Down
2 changes: 1 addition & 1 deletion webdav-javax/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive Webdav javax implement'

java {
Expand Down
2 changes: 1 addition & 1 deletion webdav/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'net.xdow'
version '2.0.4'
version '2.0.5'
description 'AliyunDrive Webdav core'

java {
Expand Down

0 comments on commit dc6c34a

Please sign in to comment.