package com.bytedance.android.livesdk;

import android.content.Context;
import android.net.Uri;
import android.os.Build;
import androidx.core.content.FileProvider;
import com.bytedance.covode.number.Covode;
import java.io.File;

public class TTLiveFileProvider extends FileProvider {
    static {
        Covode.recordClassIndex(11236);
    }

    public static Uri getUri(Context context, String str, File file) {
        return FileProvider.getUriForFile(context, str, file);
    }

    public static Uri getUriForDifVersion(Context context, String str, File file) {
        if (Build.VERSION.SDK_INT >= 24) {
            return FileProvider.getUriForFile(context, str, file);
        }
        return Uri.fromFile(file);
    }
}
