Skip to content

Commit

Permalink
Merge branch 'master' of YangSen-qn:qiniu/android-sdk
Browse files Browse the repository at this point in the history
# Conflicts:
#	library/src/main/java/com/qiniu/android/common/AutoZone.java
#	library/src/main/java/com/qiniu/android/common/Config.java
#	library/src/main/java/com/qiniu/android/common/Zone.java
#	library/src/main/java/com/qiniu/android/common/ZoneInfo.java
#	library/src/main/java/com/qiniu/android/http/ResponseInfo.java
#	library/src/main/java/com/qiniu/android/http/dns/DnsPrefetchTransaction.java
#	library/src/main/java/com/qiniu/android/http/dns/DnsPrefetcher.java
#	library/src/main/java/com/qiniu/android/http/serverRegion/UploadDomainRegion.java
#	library/src/main/java/com/qiniu/android/storage/Configuration.java
  • Loading branch information
YangSen-qn committed May 24, 2024
2 parents 0b32ed1 + 37e573e commit 78cea59
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Android SDK Version Check
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
linux:
name: Version Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Check
run: |
set -e
grep -qF "## ${RELEASE_VERSION}" CHANGELOG.md
grep -qF "${RELEASE_VERSION}" README.md
grep -qF "public static final String VERSION = \"${RELEASE_VERSION}\";" library/src/main/java/com/qiniu/android/common/Constants.java
4 changes: 3 additions & 1 deletion library/src/main/java/com/qiniu/android/common/AutoZone.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ private String makeCacheKey(Configuration configuration, String akAndBucket) {

private RequestTransaction createUploadRequestTransaction(Configuration configuration, UpToken token) {
List<String> hosts = getUcServerList();

if (configuration == null) {
configuration = new Configuration.Builder().build();
}
RequestTransaction transaction = new RequestTransaction(configuration, null,
hosts, ZoneInfo.EmptyRegionId, null, token);
transactions.add(transaction);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void initData(IUploadRegion targetRegion,
IUploadRegion currentRegion) {

this.requestState = new UploadRequestState();
this.requestState.setCouldUseHttp3(config.requestClient != null);
this.requestState.setCouldUseHttp3(config != null && config.requestClient != null);
this.requestInfo = new UploadRequestInfo();
this.requestInfo.targetRegionId = targetRegion.getZoneInfo().getRegionId();
this.requestInfo.currentRegionId = currentRegion.getZoneInfo().getRegionId();
Expand Down

0 comments on commit 78cea59

Please sign in to comment.