Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release 7.0.0 #538

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
7.0.0 (2024-03-19)
---------------------------------------------
- [#537](https://github.com/dropbox/dropbox-sdk-java/pull/537) Remove cert pinning from the SDK

6.1.0 (2024-03-19)
---------------------------------------------
- [#527](https://github.com/dropbox/dropbox-sdk-java/pull/527) Adds nullability annotations to data models for improved interop with Kotlin
Expand Down
42 changes: 38 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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>6.1.0</version>
<version>7.0.0</version>
</dependency>
```

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

Expand Down Expand Up @@ -268,8 +268,8 @@ Edit your project's "build.gradle" and add the following to the dependencies sec
```
dependencies {
// ...
implementation 'com.dropbox.core:dropbox-core-sdk:6.1.0'
implementation 'com.dropbox.core:dropbox-android-sdk:6.1.0'
implementation 'com.dropbox.core:dropbox-core-sdk:7.0.0'
implementation 'com.dropbox.core:dropbox-android-sdk:7.0.0'
}
```
If you leverage jettifier and see the following errors then please add `android.jetifier.ignorelist = jackson-core,fastdoubleparser` to your `gradle.properties` file.
Expand Down Expand Up @@ -399,3 +399,37 @@ The only ProGuard rules necessary are for the SDK's required and optional depend
-dontwarn javax.servlet.**
-dontwarn org.apache.**
```

### How do I enable certificate pinning?

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
your own `SSLSocketFactory` or `CertificatePinner`. To provide this to your calls, you can use any of the requestors provided

#### Using `StandardHttpRequestor`

```java
StandardHttpRequestor.Config customConfig = StandardHttpRequestor.Config.DEFAULT_INSTANCE.copy()
.withSslSocketFactory(mySslSocketFactory)
.build();
```

#### Using `OkHttp3Requestor`

See: [CertificatePinner](https://square.github.io/okhttp/3.x/okhttp/okhttp3/CertificatePinner.html)

```java
OkHttp3Requestor.Config customConfig = OkHttp3Requestor.Config.DEFAULT_INSTANCE.copy()
.withCertificatePinner(myCertificatePinner)
.build();
```

#### Using `OkHttpRequestor`

See: [CertificatePinner](https://square.github.io/okhttp/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html)

```java
OkHttpRequestor.Config customConfig = OkHttpRequestor.Config.DEFAULT_INSTANCE.copy()
.withCertificatePinner(myCertificatePinner)
.build();
```

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# POM
GROUP = com.dropbox.core
VERSION_NAME=6.2.0-SNAPSHOT
VERSION_NAME=7.0.0

POM_URL = https://github.com/dropbox/dropbox-sdk-java/
POM_SCM_URL = https://github.com/dropbox/dropbox-sdk-java/
Expand Down
Loading