You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-20Lines changed: 56 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,35 +264,71 @@ To run individual tests, use the `--tests` gradle test filter:
264
264
265
265
## Usage on Android
266
266
267
-
Android support *** CALL OUT METHODS USED TO AUTHENTICATE ***
267
+
The Android code in this SDK is written in Kotlin (as of 5.4.x) and Kotlin is now a runtime dependency. If you do not already have Kotlin in your project, you will need to add `implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")` to your dependencies block in order to avoid a runtime exception.
268
268
269
-
### Required Dependencies For Android
270
-
The Android code in this SDK is written in Kotlin and is now a runtime dependency. If you do not already have Kotlin in your project, you will need to add `implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")` to your dependencies block.
269
+
At this point in time, the Android code is bundled with the main Java artifact, but will be published as a separate artifact at some point in the future.
271
270
272
-
The last published version without Kotlin is `5.3.0`. All future Android code will be written in Kotlin.
271
+
If the [official Dropbox App](https://play.google.com/store/apps/details?id=com.dropbox.android)is installed, it will attempt to use it to do authorization. If it is not, a web authentication flow is launched in-browser.
273
272
274
-
### `AndroidManifest.xml`
273
+
Use the methods in the [`Auth`](https://github.com/dropbox/dropbox-sdk-java/blob/main/dropbox-sdk-android/src/main/java/com/dropbox/core/android/Auth.kt) to start an authentication sessions.
🚨[There is a known issue regarding apps with `targetSdk=33` regarding app-to-app authentication when the Dropbox App is installed](https://github.com/dropbox/dropbox-sdk-java/pull/471) 🚨
319
+
A fix is being worked on and will be released in an upcoming version of the Dropbox Mobile App.
294
320
295
-
We are working on pulling out this Android-specific code into its own android library with an `AndroidManifest.xml` that can be merged with your existing manifest, but in the meantime, this will work.
321
+
##### Add Dropbox `package` to `queries`
322
+
Additionally, you need to allow `queries` from the Dropbox official app for verification during the app-to-app authentication flow.
0 commit comments