Skip to content

Commit b70fd04

Browse files
Merge pull request #538 from dropbox/jfein/version-bump
Prepare for release 7.0.0
2 parents 00269a4 + 775dcaf commit b70fd04

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
7.0.0 (2024-03-19)
2+
---------------------------------------------
3+
- [#537](https://github.com/dropbox/dropbox-sdk-java/pull/537) Remove cert pinning from the SDK
4+
- [#539](https://github.com/dropbox/dropbox-sdk-java/pull/539) Exclude pycache from task input key on StoneTask
5+
16
6.1.0 (2024-03-19)
27
---------------------------------------------
38
- [#527](https://github.com/dropbox/dropbox-sdk-java/pull/527) Adds nullability annotations to data models for improved interop with Kotlin

README.md

Lines changed: 42 additions & 4 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>6.1.0</version>
27+
<version>7.0.0</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:6.1.0'
36+
implementation 'com.dropbox.core:dropbox-core-sdk:7.0.0'
3737
}
3838
```
3939

@@ -268,8 +268,8 @@ Edit your project's "build.gradle" and add the following to the dependencies sec
268268
```
269269
dependencies {
270270
// ...
271-
implementation 'com.dropbox.core:dropbox-core-sdk:6.1.0'
272-
implementation 'com.dropbox.core:dropbox-android-sdk:6.1.0'
271+
implementation 'com.dropbox.core:dropbox-core-sdk:7.0.0'
272+
implementation 'com.dropbox.core:dropbox-android-sdk:7.0.0'
273273
}
274274
```
275275
If you leverage jettifier and see the following errors then please add `android.jetifier.ignorelist = jackson-core,fastdoubleparser` to your `gradle.properties` file.
@@ -399,3 +399,41 @@ The only ProGuard rules necessary are for the SDK's required and optional depend
399399
-dontwarn javax.servlet.**
400400
-dontwarn org.apache.**
401401
```
402+
403+
### How do I enable certificate pinning?
404+
405+
As of version 7.0.0, the SDK no longer provides certificate pinning by default. We provide hooks for you to run each of your requests with
406+
your own `SSLSocketFactory` or `CertificatePinner`. To provide this to your calls, you can use any of the requestors provided.
407+
408+
*Note*: If you were previously using `SSLConfig`, this is no longer available. You can view the source in [git history](https://github.com/dropbox/dropbox-sdk-java/blob/0f765cb69940ac047682cf117af7a94a1f66b6eb/core/src/main/java/com/dropbox/core/http/SSLConfig.java)
409+
but we no longer provide any default certificate pinning or any other configuration.
410+
411+
#### Using `StandardHttpRequestor`
412+
413+
```java
414+
StandardHttpRequestor.Config customConfig = StandardHttpRequestor.Config.DEFAULT_INSTANCE.copy()
415+
.withSslSocketFactory(mySslSocketFactory)
416+
.build();
417+
StandardHttpRequestor requestor = new StandardHttpRequestor(customConfig);
418+
```
419+
420+
#### Using `OkHttp3Requestor`
421+
422+
See: [CertificatePinner](https://square.github.io/okhttp/3.x/okhttp/okhttp3/CertificatePinner.html)
423+
424+
```java
425+
okhttp3.OkHttpClient httpClient = OkHttp3Requestor.defaultOkHttpClientBuilder()
426+
.certificatePinner(myCertificatePinner)
427+
.build();
428+
```
429+
430+
#### Using `OkHttpRequestor`
431+
432+
See: [CertificatePinner](https://square.github.io/okhttp/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html)
433+
434+
```java
435+
OkHttpClient httpClient = OkHttpRequestor.defaultOkHttpClient().clone()
436+
.setCertificatePinner(myCertificatePinner)
437+
.build();
438+
```
439+

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=6.2.0-SNAPSHOT
3+
VERSION_NAME=7.0.0
44

55
POM_URL = https://github.com/dropbox/dropbox-sdk-java/
66
POM_SCM_URL = https://github.com/dropbox/dropbox-sdk-java/

0 commit comments

Comments
 (0)