- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
63 lines
1.8 KiB
Java
63 lines
1.8 KiB
Java
package androidx.emoji2.text;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.os.Build;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RequiresApi;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.Set;
|
|
|
|
/* loaded from: classes.dex */
|
|
class EmojiExclusions {
|
|
private EmojiExclusions() {
|
|
}
|
|
|
|
@NonNull
|
|
public static Set<int[]> getEmojiExclusions() {
|
|
if (Build.VERSION.SDK_INT >= 34) {
|
|
return EmojiExclusions_Api34.getExclusions();
|
|
}
|
|
return EmojiExclusions_Reflections.getExclusions();
|
|
}
|
|
|
|
@RequiresApi(34)
|
|
public static class EmojiExclusions_Api34 {
|
|
private EmojiExclusions_Api34() {
|
|
}
|
|
|
|
@NonNull
|
|
@DoNotInline
|
|
public static Set<int[]> getExclusions() {
|
|
return EmojiExclusions_Reflections.getExclusions();
|
|
}
|
|
}
|
|
|
|
public static class EmojiExclusions_Reflections {
|
|
private EmojiExclusions_Reflections() {
|
|
}
|
|
|
|
@NonNull
|
|
@SuppressLint({"BanUncheckedReflection"})
|
|
public static Set<int[]> getExclusions() {
|
|
try {
|
|
Object invoke = Class.forName("android.text.EmojiConsistency").getMethod("getEmojiConsistencySet", new Class[0]).invoke(null, new Object[0]);
|
|
if (invoke == null) {
|
|
return Collections.emptySet();
|
|
}
|
|
Set<int[]> set = (Set) invoke;
|
|
Iterator<int[]> it = set.iterator();
|
|
while (it.hasNext()) {
|
|
if (!(it.next() instanceof int[])) {
|
|
return Collections.emptySet();
|
|
}
|
|
}
|
|
return set;
|
|
} catch (Throwable unused) {
|
|
return Collections.emptySet();
|
|
}
|
|
}
|
|
}
|
|
}
|