ShareMe is a package that uses native code to share content on iOS and Android devices in an easy, fast, and simple way.
Works on both platforms iOS
and Android
Two options are provided at the moment: ShareMe.system() and ShareMe.file()
`xmlns:tools="http://schemas.android.com/tools"`
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="your package...">
<provider android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"/>
</provider>
Create a xml file named file_paths.xml
in the app/src/main/res/xml
folder and paste this code in the file :
<paths>
<cache-path
name="cache"
path="." />
</paths>
<key>NSPhotoLibraryUsageDescription</key>
<string>Need gallery permissions</string>
((More coffee == more code) == faster updates)