Skip to content

Commit

Permalink
Merge pull request #8 from guilhermeagostinelli/docs-improvement
Browse files Browse the repository at this point in the history
Update usage instructions and add incompatibility notice
  • Loading branch information
ShekarMudaliyar committed Apr 11, 2020
2 parents 377e612 + d371255 commit 964bdb5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion README.md
Expand Up @@ -13,14 +13,29 @@ With this plugin you can share on instagram stories and facebook stories and als

### Android Configuration

#### Paste the following attribute in the `manifest` tag in the `android/app/src/main/AndroidManifest.xml`:

```
`xmlns:tools="http://schemas.android.com/tools"`
```

##### For example:

```
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="your package...">
```

#### Add this piece of code in the `manifest/application` in the `android/app/src/main/AndroidManifest.xml`:

```
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.com.shekarmudaliyar.social_share"
android:exported="false"
android:grantUriPermissions="true">
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
Expand Down Expand Up @@ -169,6 +184,10 @@ SocialShare.checkInstalledAppsForShare();

![copy demo](demogifs/copy.gif)

# Known issues

On Android 6, Share to Instagram Stories may not open Instagram app or load the specified image.

# Buy me a :coffee: !!

((More coffee == more code) == more fast updates)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: social_share
description: Wide variety of sharing options you'll need to share directly to certain well-known apps.
version: 2.0.3
version: 2.0.4
authors:
- <sskshekar10@gmail.com>
homepage: https://github.com/ShekarMudaliyar/social_share
Expand Down

0 comments on commit 964bdb5

Please sign in to comment.