Skip to content

Commit 81804e8

Browse files
author
Karl Rieb
committed
2.0.6 release.
1 parent f435971 commit 81804e8

File tree

127 files changed

+16774
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+16774
-513
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build/
99
intellij/
1010
.idea/
1111
*.iml
12-
local.properties
12+
gradle.properties
1313

1414
# Output file when rendering ReadMe.md locally.
1515
/ReadMe.html

ChangeLog.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2.0.6 (2016-06-20)
2+
---------------------------------------------
3+
- Update to latest API specs:
4+
- Files (DbxUserFilesRequests)
5+
- Add file properties endpoints.
6+
- Sharing (DbxUserSharingRequests)
7+
- Add endpoints for sharing files and managing shared file membership.
8+
- Change return type of removeFolderMember(..) endpoint to always be an async Job ID (LaunchEmptyResult.isAsyncJobId() will be true).
9+
- Add checkRemoveMemberJobStatus(..) for checking asynchronous removeFolderMember(..) requests.
10+
- Returns additional information compared to checkJobStatus(..)
11+
- Change return type of updateFolderMember(..) to return a MemberAccessLevelResult instead of void.
12+
- Add NO_EXPLICIT_ACCESS to UpdateFolderMemberError.
13+
- Fix Android Fake ID exploit where app certificate chains aren't properly validated.
14+
115
2.0.5 (2016-06-08)
216
---------------------------------------------
317
- Allow old locale formats for APIv2 requests.

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.0.5</version>
17+
<version>2.0.6</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.0.5'
26+
compile 'com.dropbox.core:dropbox-core-sdk:2.0.6'
2727
}
2828
```
2929

src/main/java/com/dropbox/core/android/AuthActivity.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.dropbox.core.android;
22

33
import java.security.SecureRandom;
4-
import java.security.SecureRandomSpi;
4+
import java.util.Arrays;
55
import java.util.List;
66
import java.util.Locale;
77

@@ -515,15 +515,13 @@ private boolean hasDropboxApp(Intent intent) {
515515
}
516516

517517
for (Signature signature : packageInfo.signatures) {
518-
for (String dbSignature : DROPBOX_APP_SIGNATURES) {
519-
if (dbSignature.equals(signature.toCharsString())) {
520-
return true;
521-
}
518+
if (!DROPBOX_APP_SIGNATURES.contains(signature.toCharsString())) {
519+
return false;
522520
}
523521
}
524522
}
525523

526-
return false;
524+
return true;
527525
}
528526

529527
private void startWebAuth(String state) {
@@ -547,7 +545,7 @@ private void startWebAuth(String state) {
547545
startActivity(intent);
548546
}
549547

550-
private static final String[] DROPBOX_APP_SIGNATURES = {
548+
private static final List<String> DROPBOX_APP_SIGNATURES = Arrays.asList(
551549
"308202223082018b02044bd207bd300d06092a864886f70d01010405003058310b3" +
552550
"009060355040613025553310b300906035504081302434131163014060355040713" +
553551
"0d53616e204672616e636973636f3110300e060355040a130744726f70626f78311" +
@@ -579,7 +577,7 @@ private void startWebAuth(String state) {
579577
"7bac97ae6d878064d47b3f9f8da654995b8ef4c385bc4fbfbb7a987f60783ef0348" +
580578
"760c0708acd4b7e63f0235c35a4fbcd5ec41b3b4cb295feaa7d5c27fa562a02562b" +
581579
"7e1f4776b85147be3e295714986c4a9a07183f48ea09ae4d3ea31b88d0016c65b93" +
582-
"526b9c45f2967c3d28dee1aff5a5b29b9c2c8639"};
580+
"526b9c45f2967c3d28dee1aff5a5b29b9c2c8639");
583581

584582
private String createStateNonce() {
585583
final int NONCE_BYTES = 16; // 128 bits of randomness.

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@
2727
* <p> If your app runs in Google App Engine, it is strongly recommended to use this Requestor to
2828
* ensure certificate validation is performed on all requests.
2929
*
30-
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor.
30+
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor:
31+
*
32+
* <pre>
33+
* DbxRequestConfig config = DbxRequestConfig.newBuilder("MyAppEngineApp/1.0")
34+
* .withHttpRequestor(new GoogleAppEngineRequestor())
35+
* .build();
36+
*
37+
* String accessToken = ...;
38+
* DbxClientV2 client = new DbxClientV2(config, accessToken);
39+
* </pre>
3140
*/
3241
public class GoogleAppEngineRequestor extends HttpRequestor {
3342
private final URLFetchService service;

src/main/java/com/dropbox/core/v2/async/LaunchResultBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public String toStringMultiline() {
178178
/**
179179
* For internal use only.
180180
*/
181-
static final class Serializer extends UnionSerializer<LaunchResultBase> {
181+
public static final class Serializer extends UnionSerializer<LaunchResultBase> {
182182
public static final Serializer INSTANCE = new Serializer();
183183

184184
@Override

0 commit comments

Comments
 (0)