package com.appsflyer.internal;

import com.appsflyer.AFLogger;
import com.facebook.appevents.codeless.internal.UnityReflection;

public final class ah implements b {

    /* renamed from: ˊ  reason: contains not printable characters */
    public b f2013 = this;

    public interface b {
        /* renamed from: ˎ  reason: contains not printable characters */
        Class<?> m1193(String str) throws ClassNotFoundException;
    }

    public enum d {
        UNITY("android_unity", UnityReflection.UNITY_PLAYER_CLASS),
        REACT_NATIVE("android_reactNative", "com.facebook.react.ReactApplication"),
        CORDOVA("android_cordova", "org.apache.cordova.CordovaActivity"),
        SEGMENT("android_segment", "com.segment.analytics.integrations.Integration"),
        COCOS2DX("android_cocos2dx", "org.cocos2dx.lib.Cocos2dxActivity"),
        DEFAULT("android_native", "android_native"),
        ADOBE_EX("android_adobe_ex", "com.appsflyer.adobeextension"),
        FLUTTER("android_flutter", "io.flutter.plugin.common.MethodChannel.MethodCallHandler");
        

        /* renamed from: ʼ  reason: contains not printable characters */
        public String f2023;

        /* renamed from: ॱॱ  reason: contains not printable characters */
        public String f2024;

        /* access modifiers changed from: public */
        d(String str, String str2) {
            this.f2023 = str;
            this.f2024 = str2;
        }
    }

    @Override // com.appsflyer.internal.ah.b
    /* renamed from: ˎ  reason: contains not printable characters */
    public final Class<?> m1191(String str) throws ClassNotFoundException {
        return Class.forName(str);
    }

    /* renamed from: ॱ  reason: contains not printable characters */
    public final String m1192() {
        d[] values = d.values();
        for (d dVar : values) {
            if (m1190(dVar.f2024)) {
                return dVar.f2023;
            }
        }
        return d.DEFAULT.f2023;
    }

    /* renamed from: ॱ  reason: contains not printable characters */
    private boolean m1190(String str) {
        try {
            this.f2013.m1193(str);
            StringBuilder sb = new StringBuilder("Class: ");
            sb.append(str);
            sb.append(" is found.");
            AFLogger.afRDLog(sb.toString());
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        } catch (Throwable th) {
            AFLogger.afErrorLog(th.getMessage(), th);
            return false;
        }
    }
}
