Skip to content

Commit c256b3a

Browse files
Add File provider config to demo app for testing
1 parent e81d2a5 commit c256b3a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

demo-app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@
5353
android:scheme="wp-oauth-test" />
5454
</intent-filter>
5555
</activity>
56+
<provider
57+
android:name=".DemoFileProvider"
58+
android:authorities="${applicationId}.fileprovider"
59+
android:grantUriPermissions="true"
60+
android:exported="false">
61+
<meta-data
62+
android:name="android.support.FILE_PROVIDER_PATHS"
63+
android:resource="@xml/filepaths" />
64+
</provider>
5665
</application>
5766

5867
</manifest>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.gravatar.demoapp
2+
3+
import androidx.core.content.FileProvider
4+
5+
internal class DemoFileProvider : FileProvider(R.xml.filepaths)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<paths>
3+
<cache-path
4+
name="demoapp_images"
5+
path="demoapp/" />
6+
</paths>

0 commit comments

Comments
 (0)