EMMA v1.26.1版本的 MD5 值为:9dfbdbfb0c69a58d83736bb8daf25d47
以下内容为反编译后的 UtilsKt.java 源代码,内容仅作参考
package com.doublesymmetry.kotlinaudio.utils;
import android.net.Uri;
import com.facebook.common.util.UriUtil;
import com.facebook.react.modules.systeminfo.AndroidInfoHelpers;
import com.google.android.exoplayer2.upstream.RawResourceDataSource;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0010\u0010\u0000\u001a\u00020\u00012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003¨\u0006\u0004"}, d2 = {"isUriLocal", "", "uri", "Landroid/net/Uri;", "kotlin-audio_release"}, k = 2, mv = {1, 5, 1}, xi = 48)
public final class UtilsKt {
public static final boolean isUriLocal(Uri uri) {
if (uri == null) {
return false;
}
String scheme = uri.getScheme();
String host = uri.getHost();
return scheme == null || Intrinsics.areEqual(scheme, "file") || Intrinsics.areEqual(scheme, UriUtil.QUALIFIED_RESOURCE_SCHEME) || Intrinsics.areEqual(scheme, "content") || Intrinsics.areEqual(scheme, RawResourceDataSource.RAW_RESOURCE_SCHEME) || Intrinsics.areEqual(scheme, UriUtil.LOCAL_RESOURCE_SCHEME) || host == null || Intrinsics.areEqual(host, AndroidInfoHelpers.DEVICE_LOCALHOST) || Intrinsics.areEqual(host, "127.0.0.1") || Intrinsics.areEqual(host, "[::1]");
}
}