Skip to content

Commit

Permalink
2.0.6 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Rieb committed Jun 20, 2016
1 parent f435971 commit 81804e8
Show file tree
Hide file tree
Showing 127 changed files with 16,774 additions and 513 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build/
intellij/
.idea/
*.iml
local.properties
gradle.properties

# Output file when rendering ReadMe.md locally.
/ReadMe.html
Expand Down
14 changes: 14 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2.0.6 (2016-06-20)
---------------------------------------------
- Update to latest API specs:
- Files (DbxUserFilesRequests)
- Add file properties endpoints.
- Sharing (DbxUserSharingRequests)
- Add endpoints for sharing files and managing shared file membership.
- Change return type of removeFolderMember(..) endpoint to always be an async Job ID (LaunchEmptyResult.isAsyncJobId() will be true).
- Add checkRemoveMemberJobStatus(..) for checking asynchronous removeFolderMember(..) requests.
- Returns additional information compared to checkJobStatus(..)
- Change return type of updateFolderMember(..) to return a MemberAccessLevelResult instead of void.
- Add NO_EXPLICIT_ACCESS to UpdateFolderMemberError.
- Fix Android Fake ID exploit where app certificate chains aren't properly validated.

2.0.5 (2016-06-08)
---------------------------------------------
- Allow old locale formats for APIv2 requests.
Expand Down
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you're using Maven, then edit your project's "pom.xml" and add this to the `<
<dependency>
<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>2.0.5</version>
<version>2.0.6</version>
</dependency>
```

Expand All @@ -23,7 +23,7 @@ If you are using Gradle, then edit your project's "build.gradle" and add this to
```groovy
dependencies {
// ...
compile 'com.dropbox.core:dropbox-core-sdk:2.0.5'
compile 'com.dropbox.core:dropbox-core-sdk:2.0.6'
}
```

Expand Down
14 changes: 6 additions & 8 deletions src/main/java/com/dropbox/core/android/AuthActivity.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.dropbox.core.android;

import java.security.SecureRandom;
import java.security.SecureRandomSpi;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;

Expand Down Expand Up @@ -515,15 +515,13 @@ private boolean hasDropboxApp(Intent intent) {
}

for (Signature signature : packageInfo.signatures) {
for (String dbSignature : DROPBOX_APP_SIGNATURES) {
if (dbSignature.equals(signature.toCharsString())) {
return true;
}
if (!DROPBOX_APP_SIGNATURES.contains(signature.toCharsString())) {
return false;
}
}
}

return false;
return true;
}

private void startWebAuth(String state) {
Expand All @@ -547,7 +545,7 @@ private void startWebAuth(String state) {
startActivity(intent);
}

private static final String[] DROPBOX_APP_SIGNATURES = {
private static final List<String> DROPBOX_APP_SIGNATURES = Arrays.asList(
"308202223082018b02044bd207bd300d06092a864886f70d01010405003058310b3" +
"009060355040613025553310b300906035504081302434131163014060355040713" +
"0d53616e204672616e636973636f3110300e060355040a130744726f70626f78311" +
Expand Down Expand Up @@ -579,7 +577,7 @@ private void startWebAuth(String state) {
"7bac97ae6d878064d47b3f9f8da654995b8ef4c385bc4fbfbb7a987f60783ef0348" +
"760c0708acd4b7e63f0235c35a4fbcd5ec41b3b4cb295feaa7d5c27fa562a02562b" +
"7e1f4776b85147be3e295714986c4a9a07183f48ea09ae4d3ea31b88d0016c65b93" +
"526b9c45f2967c3d28dee1aff5a5b29b9c2c8639"};
"526b9c45f2967c3d28dee1aff5a5b29b9c2c8639");

private String createStateNonce() {
final int NONCE_BYTES = 16; // 128 bits of randomness.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@
* <p> If your app runs in Google App Engine, it is strongly recommended to use this Requestor to
* ensure certificate validation is performed on all requests.
*
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor.
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor:
*
* <pre>
* DbxRequestConfig config = DbxRequestConfig.newBuilder("MyAppEngineApp/1.0")
* .withHttpRequestor(new GoogleAppEngineRequestor())
* .build();
*
* String accessToken = ...;
* DbxClientV2 client = new DbxClientV2(config, accessToken);
* </pre>
*/
public class GoogleAppEngineRequestor extends HttpRequestor {
private final URLFetchService service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public String toStringMultiline() {
/**
* For internal use only.
*/
static final class Serializer extends UnionSerializer<LaunchResultBase> {
public static final class Serializer extends UnionSerializer<LaunchResultBase> {
public static final Serializer INSTANCE = new Serializer();

@Override
Expand Down
Loading

0 comments on commit 81804e8

Please sign in to comment.