Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin's android:authorities collide with other plugins, leading to app crash #83

Closed
ritz078 opened this issue Feb 1, 2019 · 2 comments · Fixed by #84
Closed

Plugin's android:authorities collide with other plugins, leading to app crash #83

ritz078 opened this issue Feb 1, 2019 · 2 comments · Fixed by #84

Comments

@ritz078
Copy link

ritz078 commented Feb 1, 2019

I am unable to use this module with rn-fetch-blob because of joltup/rn-fetch-blob#231 . I think each library needs to fix this.

Faced this issue when I was trying to upgrade react-native

@1uokun
Copy link
Contributor

1uokun commented Feb 7, 2019

I got your issue, If they don't try to change, we can only add a FileProvider.java class ourselves to avoid the Task :app:processDebugManifest FAILED.
just like this:

java/com.burnweb.rnsendintent/FileProvider.java

package com.burnweb.rnsendintent;

public class FileProvider extends android.support.v4.content.FileProvider {
}

AndroidManifest.xml

// 弃用 android:name="android.support.v4.content.FileProvider"

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.burnweb.rnsendintent">

    <application>
        <service
            android:name=".RNSendIntentModule"
            android:exported="true" />
        <provider
            android:name="com.burnweb.rnsendintent.FileProvider"
            android:authorities="${applicationId}.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">

            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />

        </provider>

    </application>
</manifest>

@lucasferreira
Copy link
Owner

Hi @1uokun,

Could you open some PR with your propose of fix?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants