- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
1000 B
Java
32 lines
1000 B
Java
package com.facebook.internal;
|
|
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.text.StringsKt__StringsJVMKt;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class InternalSettings {
|
|
public static final InternalSettings INSTANCE = new InternalSettings();
|
|
private static final String UNITY_PREFIX = "Unity.";
|
|
private static volatile String customUserAgent;
|
|
|
|
public static final String getCustomUserAgent() {
|
|
return customUserAgent;
|
|
}
|
|
|
|
public static /* synthetic */ void isUnityApp$annotations() {
|
|
}
|
|
|
|
public static final void setCustomUserAgent(String value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
customUserAgent = value;
|
|
}
|
|
|
|
private InternalSettings() {
|
|
}
|
|
|
|
public static final boolean isUnityApp() {
|
|
String str = customUserAgent;
|
|
return Intrinsics.areEqual(str != null ? Boolean.valueOf(StringsKt__StringsJVMKt.startsWith$default(str, UNITY_PREFIX, false, 2, null)) : null, Boolean.TRUE);
|
|
}
|
|
}
|