Skip to content

Commit

Permalink
Android: added separate content provider from camera
Browse files Browse the repository at this point in the history
added separate content provider for Android 30 camera
  • Loading branch information
scottrules44 committed Sep 29, 2021
1 parent 36cb17f commit bc3e00a
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 376 deletions.
24 changes: 15 additions & 9 deletions platform/android/sdk/AndroidManifest-New.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@
android:configChanges="keyboardHidden|screenSize|orientation"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />

<provider
android:name="com.ansca.corona.storage.FileContentProvider"
<provider android:name="com.ansca.corona.storage.FileContentProvider"
android:authorities="${applicationId}.files"
android:exported="true" />
android:exported="true">
</provider>
<provider android:name="com.ansca.corona.camera.FileProvider"
android:authorities="${applicationId}.photos"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>

<!-- Corona service used to perform background operations such as managing notifications. -->
<service android:name="com.ansca.corona.CoronaService" />

Expand Down Expand Up @@ -78,10 +87,7 @@
<action android:name="android.intent.action.GET_CONTENT" />
<data android:mimeType="image/*" />
</intent>
<!-- Needed for checking for Image Picker Intent in Android 11 -->
<intent>
<action android:name="android.intent.action.GET_CONTENT" />
<data android:mimeType="image/*" />
</intent>
</queries>
</manifest>
</manifest>


5 changes: 5 additions & 0 deletions platform/android/sdk/res-new/xml/file_paths.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Only handles cache dir -->
<paths>
<cache-path name="cache_files" path="." />
</paths>
Loading

0 comments on commit bc3e00a

Please sign in to comment.