Browse Source

Solve the conflict between FileProvider and other libraries

罗坤 5 years ago
parent
commit
24683eb416

+ 2
- 2
android/src/main/AndroidManifest.xml View File

24
     <application android:label="@string/app_name">
24
     <application android:label="@string/app_name">
25
 
25
 
26
         <provider
26
         <provider
27
-            android:name="android.support.v4.content.FileProvider"
27
+            android:name="com.RNFetchBlob.Utils.FileProvider"
28
             android:authorities="${applicationId}.provider"
28
             android:authorities="${applicationId}.provider"
29
             android:exported="false"
29
             android:exported="false"
30
             android:grantUriPermissions="true">
30
             android:grantUriPermissions="true">
34
         </provider>
34
         </provider>
35
     </application>
35
     </application>
36
 
36
 
37
-</manifest>
37
+</manifest>

+ 4
- 0
android/src/main/java/com/RNFetchBlob/Utils/FileProvider.java View File

1
+package com.RNFetchBlob.Utils;
2
+
3
+public class FileProvider extends android.support.v4.content.FileProvider {
4
+}