-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the usage-quickeditor.md docs * Add docs for the migration to version 2.3
- Loading branch information
1 parent
e0d81b8
commit 88e0fa9
Showing
2 changed files
with
83 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Migration from 2.x to 2.3.0 | ||
|
||
## GravatarOAuthActivity | ||
|
||
In version 2.3.0, the `GravatarOAuthActivity` was introduced to handle OAuth authentication with Gravatar. | ||
This means you no longer need to set up your Activity with the `launchMode=singleTask` to handle the `onNewIntent` method for OAuth redirection. | ||
|
||
The Quick Editor will still work if you won't change it but it's highly recommended to migrate to the new `GravatarOAuthActivity` as this behavior will be removed in the future. | ||
|
||
### Steps to Migrate | ||
|
||
1. **Remove the extra config from you own Activity**: | ||
If you have previously added this to you AndroidManifest.xml: | ||
|
||
```xml | ||
<activity | ||
android:name=".YourActivity" | ||
android:launchMode="singleTask" | ||
...> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data | ||
android:scheme="https" | ||
android:host="yourhost.com" | ||
android:pathPrefix="/redirect-url" | ||
/> | ||
</intent-filter> | ||
</activity> | ||
``` | ||
|
||
You can remove the `android:launchMode="singleTask"` and the `<intent-filter>` block. | ||
|
||
2. **Add `GravatarOAuthActivity`**: | ||
Ensure that the `GravatarOAuthActivity` is declared in your `AndroidManifest.xml`: | ||
|
||
```xml | ||
<activity | ||
android:name="com.gravatar.quickeditor.ui.oauth.GravatarOAuthActivity" | ||
tools:node="merge"> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data | ||
android:scheme="https" | ||
android:host="yourhost.com" | ||
android:pathPrefix="/redirect-url" | ||
/> | ||
</intent-filter> | ||
</activity> | ||
``` |