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

[Android] Store image/audio/video in FileProvider due to Android 11 updates #215

Closed
wants to merge 9 commits into from
2 changes: 1 addition & 1 deletion src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Licensed to the Apache Software Foundation (ASF) under one
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import androidx.core.content.FileProvider;
breautek marked this conversation as resolved.
Show resolved Hide resolved
import android.support.v4.content.FileProvider;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace this with AndroidX

import org.apache.cordova.BuildHelper;

public class Capture extends CordovaPlugin {
Expand Down
2 changes: 1 addition & 1 deletion src/android/FileProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Licensed to the Apache Software Foundation (ASF) under one
*/
package org.apache.cordova.mediacapture;

public class FileProvider extends androidx.core.content.FileProvider {}
breautek marked this conversation as resolved.
Show resolved Hide resolved
public class FileProvider extends android.support.v4.content.FileProvider {}