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

Fix conflicting file provider between build variants #5510

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</intent-filter>
</service>
<provider android:name="net.mullvad.mullvadvpn.provider.MullvadFileProvider"
android:authorities="net.mullvad.mullvadvpn.FileProvider"
android:authorities="${applicationId}.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.joda.time.format.ISODateTimeFormat
class MullvadFileProvider : FileProvider(R.xml.provider_paths) {
companion object {
fun uriForFile(context: Context, file: File): Uri {
return getUriForFile(context, "net.mullvad.mullvadvpn.FileProvider", file)
return getUriForFile(context, "${context.packageName}.FileProvider", file)
}
}
}
Expand Down