Skip to content

Commit 5fe5fcf

Browse files
committed
Prepare for release 5.4.1
1 parent 6752bb2 commit 5fe5fcf

File tree

9 files changed

+25
-26
lines changed

9 files changed

+25
-26
lines changed

.github/workflows/ci-examples.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: [ master ]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [ 5.3.0 ]
1212

1313
jobs:
1414
build:
@@ -17,27 +17,33 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20+
2021
- name: Set up JDK 11
2122
uses: actions/setup-java@v2
2223
with:
2324
java-version: '11'
2425
distribution: 'zulu'
2526
- uses: actions/checkout@v2
27+
2628
- name: Set up Python
2729
uses: actions/setup-python@v3
2830
with:
2931
python-version: '3.9.10'
3032
- run: python -m pip install ply && pip install six
33+
3134
- name: Grant execute permissions
3235
run: chmod +x gradlew && chmod +x update-submodules
3336
&& chmod +x generate-ci-auth-file && chmod +x scripts/run-examples
37+
3438
- name: Set up submodules
3539
run: ./update-submodules
40+
3641
- name: Obtain access token
3742
env:
3843
APP_KEY: ${{ secrets.APP_KEY }}
3944
APP_SECRET: ${{ secrets.APP_SECRET }}
4045
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
4146
run: ./generate-ci-auth-file
47+
4248
- name: Run Examples
4349
run: ./scripts/run-examples $(find `pwd` -name auth_output)

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: [ master ]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [ 5.3.0 ]
1212

1313
jobs:
1414
build:

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 5.4.1 (2022-09-27)
2+
---------------------------------------------
3+
- Republished `5.3.0` as `5.4.1` due to the premature publishing of `5.4.0`.
4+
- No other changes.
5+
6+
## 5.4.0 (2022-09-26)
7+
---------------------------------------------
8+
- ⚠️ Published prematurely. Please stay on `5.3.0` or update to `5.4.1` (which is just a republished version of `5.3.0`)
9+
110
## 5.3.0 (2022-07-20) [Milestone](https://github.com/dropbox/dropbox-sdk-java/milestone/1?closed=1)
211
---------------------------------------------
312
- Update dropbox-api-spec to point to more recent version (July 13, 2022) [#400](https://github.com/dropbox/dropbox-sdk-java/pull/400)

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you're using Maven, then edit your project's "pom.xml" and add this to the `<
2424
<dependency>
2525
<groupId>com.dropbox.core</groupId>
2626
<artifactId>dropbox-core-sdk</artifactId>
27-
<version>5.2.0</version>
27+
<version>5.4.1</version>
2828
</dependency>
2929
```
3030

@@ -33,7 +33,7 @@ If you are using Gradle, then edit your project's "build.gradle" and add this to
3333
```groovy
3434
dependencies {
3535
// ...
36-
implementation 'com.dropbox.core:dropbox-core-sdk:5.2.0'
36+
implementation 'com.dropbox.core:dropbox-core-sdk:5.4.1'
3737
}
3838
```
3939

examples/DropboxAndroid/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ android {
4747
}
4848

4949
dependencies {
50-
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '+', changing: true
50+
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '5.3.0'
5151

5252
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
5353
implementation 'androidx.core:core-ktx:1.7.0'

examples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ subprojects {
1414
}
1515

1616
dependencies {
17-
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '+', changing: true
17+
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '5.3.0'
1818
}
1919

2020
compileJava {

examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.dropbox.core.v2.files.UploadErrorException;
1616
import com.dropbox.core.v2.files.UploadSessionCursor;
1717
import com.dropbox.core.v2.files.UploadSessionFinishErrorException;
18-
import com.dropbox.core.v2.files.UploadSessionLookupErrorException;
1918
import com.dropbox.core.v2.files.WriteMode;
2019

2120
import java.io.File;
@@ -42,7 +41,7 @@ public class Main {
4241
* eliminates unnecessary round-trips to the servers.
4342
*
4443
* @param dbxClient Dropbox user authenticated client
45-
* @param localFIle local file to upload
44+
* @param localFile local file to upload
4645
* @param dropboxPath Where to upload the file to within Dropbox
4746
*/
4847
private static void uploadFile(DbxClientV2 dbxClient, File localFile, String dropboxPath) {
@@ -74,7 +73,7 @@ private static void uploadFile(DbxClientV2 dbxClient, File localFile, String dro
7473
* to re-upload all the bytes).
7574
*
7675
* @param dbxClient Dropbox user authenticated client
77-
* @param localFIle local file to upload
76+
* @param localFile local file to upload
7877
* @param dropboxPath Where to upload the file to within Dropbox
7978
*/
8079
private static void chunkedUploadFile(DbxClientV2 dbxClient, File localFile, String dropboxPath) {
@@ -158,21 +157,6 @@ public void onProgress(long l) {
158157
thrown = ex;
159158
// network issue with Dropbox (maybe a timeout?) try again
160159
continue;
161-
} catch (UploadSessionLookupErrorException ex) {
162-
if (ex.errorValue.isIncorrectOffset()) {
163-
thrown = ex;
164-
// server offset into the stream doesn't match our offset (uploaded). Seek to
165-
// the expected offset according to the server and try again.
166-
uploaded = ex.errorValue
167-
.getIncorrectOffsetValue()
168-
.getCorrectOffset();
169-
continue;
170-
} else {
171-
// Some other error occurred, give up.
172-
System.err.println("Error uploading to Dropbox: " + ex.getMessage());
173-
System.exit(1);
174-
return;
175-
}
176160
} catch (UploadSessionFinishErrorException ex) {
177161
if (ex.errorValue.isLookupFailed() && ex.errorValue.getLookupFailedValue().isIncorrectOffset()) {
178162
thrown = ex;

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# POM
22
GROUP = com.dropbox.core
3-
VERSION_NAME=5.3.0
3+
VERSION_NAME=5.4.1
44

55
POM_ARTIFACT_ID = dropbox-core-sdk
66
POM_NAME = Dropbox SDK Java

src/main/java/com/dropbox/core/DbxSdkVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public class DbxSdkVersion
1212
// https://github.com/dropbox/dropbox-sdk-java/issues/357
1313
private static String loadVersion()
1414
{
15-
return "5.3.0";
15+
return "5.4.1";
1616
}
1717
}

0 commit comments

Comments
 (0)