Skip to content

Commit d4d8dce

Browse files
author
Kannan Goundan
committed
ReadMe: Instructions on how to update submodules.
1 parent ffa0578 commit d4d8dce

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

ReadMe.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,20 @@ Once you have an access token, create a [`DbxClientV2`](https://dropbox.github.i
5656

5757
You only need to perform the authorization process once per user. Once you have an access token for a user, save it somewhere persistent, like in a database. The next time that user visits your app's, you can skip the authorization process and go straight to creating a `DbxClientV2` and making API calls.
5858

59+
## Building from source
60+
61+
```
62+
git clone https://github.com/dropbox/dropbox-sdk-java.git
63+
cd dropbox-sdk-java
64+
./update-submodules # also do this after every "git checkout"
65+
./gradlew build
66+
```
67+
68+
The output will be in "build/".
69+
5970
## Running the examples
6071

61-
1. Download this repository.
72+
1. Follow the instructions in the "Build from source" section above.
6273
2. Save your Dropbox API key in a file called "test.app". See: [Get a Dropbox API key](#get-a-dropbox-api-key), above.
6374
3. Compile and install the SDK into your local maven repo: `./gradlew install`
6475
4. To compile all the examples: `(cd examples/ && ./gradlew classes`
@@ -168,4 +179,4 @@ Versions 2.0.0-2.0.3 of this SDK require SDK-specific ProGuard rules when shrink
168179
-dontwarn javax.servlet.**
169180
```
170181

171-
**IMPORTANT: If you are running version 2.0.x before 2.0.3, you should update to the latest Dropbox SDK version to avoid a deserialization bug that can cause Android apps that use ProGuard to crash.**
182+
**IMPORTANT: If you are running version 2.0.x before 2.0.3, you should update to the latest Dropbox SDK version to avoid a deserialization bug that can cause Android apps that use ProGuard to crash.**

update-submodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
git submodule sync
5+
git submodule update --init
6+
git submodule foreach --recursive "git submodule sync ; git submodule update --init"

0 commit comments

Comments
 (0)