~xdavidwu/saf-cephfs

e237b8c81c236366dff640e85b4d41bc7efead8d — Pinghao Wu 2 months ago 36221cf
sdk compatibility fixes

bump min due to openProxyFileDescriptor
2 files changed, 7 insertions(+), 2 deletions(-)

M build.gradle
M src/main/java/org/safcephfs/MetadataReader.java
M build.gradle => build.gradle +1 -1
@@ 22,7 22,7 @@ android {
	ndkVersion '27.0.12077973'

	defaultConfig {
		minSdkVersion 24
		minSdkVersion 26
		targetSdkVersion 33
		externalNativeBuild {
			cmake {

M src/main/java/org/safcephfs/MetadataReader.java => src/main/java/org/safcephfs/MetadataReader.java +6 -1
@@ 23,6 23,7 @@ package org.safcephfs;

import android.media.ExifInterface;
import android.provider.DocumentsContract;
import android.os.Build;
import android.os.Bundle;

import java.io.IOException;


@@ 217,7 218,11 @@ public final class MetadataReader {
     * for the supplied mimetype.
     */
    public static boolean isSupportedMimeType(String mimeType) {
        return ExifInterface.isSupportedMimeType(mimeType);
        if (Build.VERSION.SDK_INT >= 30) {
            return ExifInterface.isSupportedMimeType(mimeType);
        } else {
            return JPG_MIME_TYPE.equals(mimeType) || JPEG_MIME_TYPE.equals(mimeType);
        }
    }

    /**