Skip to content

Commit 3719cfa

Browse files
committed
Update api specs and remove INSTANCE in OkHttp3Requestor for major version update.
1 parent 43efdce commit 3719cfa

File tree

5 files changed

+79
-18
lines changed

5 files changed

+79
-18
lines changed

ChangeLog.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,78 @@
1+
3.0.0 (2017-03-17)
2+
---------------------------------------------
3+
- Breaking changes:
4+
- static INSTANCE is removed from OkHttp3Requestor and OkHttpRequestor
5+
- copyBatch/moveBatch now takes RelocationBatchArg instead of List<RelocationPath>
6+
- Update to latest API specs:
7+
- Auth namespace:
8+
- Added user_suspended to AuthError.
9+
- Added TokenFromOAuth1Arg, TokenFromOAuth1Result and TokenFromOAuth1Error.
10+
- Added token/from_oauth1 rote.
11+
- Added AccessError and PaperAccessError.
12+
- Added InvalidAccountTypeError.
13+
- Files namespace:
14+
- Added PathRootError.
15+
- Added invalid_path_root to LookupError.
16+
- Added autorename to CreateFolderArg.
17+
- Added DeleteBatchArg, DeleteBatchResultEntry, DeleteResult, DeleteBatchResult, DeleteBatchError, DeleteBatchJobStatus and DeleteBatchLaunch.
18+
- Added delete_batch and delete_batch/check routes.
19+
- Added RelocationPath.
20+
- Added to allow_shared_folder and autorename to RelocationArg.
21+
- Added RelocationBatchArg, RelocationBatchResult, RelocationBatchJobStatus, RelocationResult,RelocationBatchError and RelocationBatchLaunch.
22+
- Added copy_batch and copy_batch/check routes.
23+
- Added move_batch and move_batch/check routes.
24+
- Sharing namespace: - Changed PathOrId validation pattern.
25+
- Changed path in ShareFolderArg from type files.Path to files.WritePath.
26+
- Added contains_app_folder, contains_team_folder and invalid_path_root to ShareFolderArg.
27+
- Added UploadSessionFinishBatchLaunch and made it new return type for upload_session/finish_batch.
28+
- Added Sha256HexHash alias.
29+
- Added content_hash to FileMetadata.
30+
- Added upload_api_rate_limit feature attribute to upload_session/start, upload_session/append_v2, upload_session/append, upload, upload_session/finish_batch.
31+
- Added duplicated_or_nested_paths to RelocationError and removed from RelocationBatchError.
32+
- Added properties api_group attribute and is_preview attribute to properties/*.
33+
- Added disable_viewer_info and enable_viewer_info to CommitInfoWithProperties.
34+
- Added link_metadata to SharedFileMetadata.
35+
- Added ViewerInfoPolicy union.
36+
- Added no_explicit_access to MemberSelector.
37+
- Deprecated change_file_member_access.
38+
- Added update_file_member route and UpdateFileMemberArgs struct.
39+
- Sharing namespace:
40+
- Added unsupported_link_type to SharedLinkError.
41+
- Added is_member to GroupInfo.
42+
- Added too_many_files to UnshareFolderError.
43+
- Added no_explicit_access to RelinquishFolderMembershipError.
44+
- Added viewer_info_policy, disable_viewer_info, enable_viewer_info to FolderPolicy.
45+
- Added team, is_inside_team_folder, path_lower to SharedLinkPolicy.
46+
- Added link_metadata, policy, shared_folder_id, time_invited to SharedFolderMetadata.
47+
- Added actions, link_settings, viewer_info_policy to ShareFolderArg and removed default values from policies in ShareFolderArg.
48+
- Added viewer_info_policy, link_settings to UpdateFolderPolicyArg.
49+
- Stone Cfg namespace:
50+
- Changed validation pattern for owner in Route.
51+
- Added feature route attribute.
52+
- Added attribute api_group, is_preview.
53+
- Removed attributes alpha_group, beta_group.
54+
- Team namespace:
55+
- Added team_license_limit to MembersRecoverError.
56+
- Removed beta_group attribute from members/recover.
57+
- Added group_name_already_used and group_name_invalid to GroupUpdateError.
58+
- Added joined_on, persistent_id to MemberProfile.
59+
- Added team_member_id, external_id to UserSelectorArg.
60+
- Added TeamMemberId, MemberExternalId, GroupExternalId, ResellerId aliases.
61+
- Added company_managed, system_managed to GroupManagementType.
62+
- Added TimeRange.
63+
- Added archive_in_progress to TeamFolderStatus, TeamFolderIdArg.
64+
- Added BaseTeamFolderError.
65+
- TeamFolderRenameError, TeamFolderArchiveError, BaseTeamFolderError, TeamFolderPermanentlyDeleteError now extend BaseTeamFolderError.
66+
- Added folder_name_reserved to TeamFolderRenameError.
67+
- Added GroupSelectorWithTeamGroupError.
68+
- GroupMemberSelectorError, GroupMembersSelectorError now extends GroupSelectorWithTeamGroupError.
69+
- Removed alpha from alpha/groups/*.
70+
- GroupDeleteError, GroupUpdateError, GroupMembersAddError now extends GroupSelectorWithTeamGroupError.
71+
- Added members_not_in_team, users_not_found to GroupMembersAddError.
72+
- Added joined_on to TeamMemberProfile.
73+
- Added member_persistent_id, duplicate_member_persistent_id, persistent_id_disabled, new_persistent_id, persistent_id_disabled, persistent_id_used_by_other_user to MemberSelectorError.
74+
- Fix the bug that when InputStream throws IOException, DbxUploader#uploadAndFinish() throws NetworkIOException
75+
176
2.1.1 (2016-08-01)
277
---------------------------------------------
378
- Fix "Required field ... missing" deserialization bug caused by certain backwards-compatible response changes from the server.

ReadMe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Java library to access [Dropbox's HTTP-based Core API v2](https://www.dropbox.
44

55
License: [MIT](License.txt)
66

7-
[Javadoc.](https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/)
7+
[Javadoc.](https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.0/)
88

99
## Setup
1010

@@ -14,7 +14,7 @@ If you're using Maven, then edit your project's "pom.xml" and add this to the `<
1414
<dependency>
1515
<groupId>com.dropbox.core</groupId>
1616
<artifactId>dropbox-core-sdk</artifactId>
17-
<version>2.1.2</version>
17+
<version>3.0.0</version>
1818
</dependency>
1919
```
2020

@@ -23,7 +23,7 @@ If you are using Gradle, then edit your project's "build.gradle" and add this to
2323
```groovy
2424
dependencies {
2525
// ...
26-
compile 'com.dropbox.core:dropbox-core-sdk:2.1.2'
26+
compile 'com.dropbox.core:dropbox-core-sdk:3.0.0'
2727
}
2828
```
2929

examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class DropboxClientFactory {
1515
public static void init(String accessToken) {
1616
if (sDbxClient == null) {
1717
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("examples-v2-demo")
18-
.withHttpRequestor(OkHttp3Requestor.INSTANCE)
18+
.withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient()))
1919
.build();
2020

2121
sDbxClient = new DbxClientV2(requestConfig, accessToken);

src/main/java/com/dropbox/core/http/OkHttp3Requestor.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
* v3</a>. You can only use this if your project includes the OkHttp v3 library.
2828
*/
2929
public class OkHttp3Requestor extends HttpRequestor {
30-
/**
31-
* @deprecated This field will be removed. Instead, do:
32-
* {@code new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient())}
33-
*/
34-
@Deprecated
35-
public static final OkHttp3Requestor INSTANCE = new OkHttp3Requestor(defaultOkHttpClient());
36-
3730
/**
3831
* Returns an {@code OkHttpClient} instance with the default settings for this SDK.
3932
*/

src/main/java/com/dropbox/core/http/OkHttpRequestor.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
* </p>
3232
*/
3333
public class OkHttpRequestor extends HttpRequestor {
34-
/**
35-
* @deprecated This field will be removed. Instead, do:
36-
* {@code new OkHttpRequestor(OkHttpRequestor.defaultOkHttpClient())}
37-
*/
38-
@Deprecated
39-
public static final OkHttpRequestor INSTANCE = new OkHttpRequestor(defaultOkHttpClient());
40-
4134
/**
4235
* Returns an {@code OkHttpClient} instance with the default settings for this SDK.
4336
*/

0 commit comments

Comments
 (0)