WowTube v1.0.3版本的 MD5 值为:9f1445ee4562ea454c2d18c9f499fee8

以下内容为反编译后的 u0.java 源代码,内容仅作参考


package com.chartboost.sdk.impl;

import com.chartboost.sdk.Libraries.CBLogging;
import org.json.JSONObject;
public class u0 {
    @ci.e
    private final com.chartboost.sdk.c f13564a;

    public u0(@ci.e com.chartboost.sdk.c cVar) {
        this.f13564a = cVar;
    }

    public void a(@ci.e y0 y0Var) {
        b("onBackground", y0Var);
    }

    public void b(@ci.e y0 y0Var) {
        b("onForeground", y0Var);
    }

    public void c(@ci.e y0 y0Var) {
        b("videoEnded", y0Var);
    }

    public void d(@ci.e y0 y0Var) {
        b("videoFailed", y0Var);
    }

    private final String c() {
        String str;
        com.chartboost.sdk.Model.c b = b();
        return (b == null || (str = b.f13032l) == null) ? "" : str;
    }

    public void a(@ci.e y0 y0Var, float f10) {
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("seconds", Float.valueOf(f10));
        String jSONObject2 = jSONObject.toString();
        ch.k0.d(jSONObject2, "json.toString()");
        a("playbackTime", jSONObject2, y0Var);
    }

    public void b(@ci.e y0 y0Var, float f10) {
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("totalDuration", Float.valueOf(f10));
        String jSONObject2 = jSONObject.toString();
        ch.k0.d(jSONObject2, "json.toString()");
        a("videoStarted", jSONObject2, y0Var);
    }

    private final void a(String str, String str2, y0 y0Var) {
        a("javascript:Chartboost.EventHandler.handleNativeEvent(\"" + str + "\", " + str2 + ')', y0Var);
    }

    private final void b(String str, y0 y0Var) {
        a("javascript:Chartboost.EventHandler.handleNativeEvent(\"" + str + "\")", y0Var);
    }

    private final void a(String str, y0 y0Var) {
        try {
            if (y0Var != null) {
                CBLogging.a("CBTemplateProxy", ch.k0.a("Calling native to javascript: ", (Object) str));
                y0Var.loadUrl(str);
            } else {
                m1.d(new com.chartboost.sdk.Tracking.a("show_webview_error", "Webview is null", a(), c()));
                CBLogging.c("CBTemplateProxy", "Calling native to javascript webview is null");
            }
        } catch (Exception e10) {
            m1.d(new com.chartboost.sdk.Tracking.a("show_webview_crash", "Cannot open url", a(), c()));
            CBLogging.c("CBTemplateProxy", ch.k0.a("Calling native to javascript. Cannot open url: ", (Object) e10));
        }
    }

    private final com.chartboost.sdk.Model.c b() {
        f2 a10;
        com.chartboost.sdk.c cVar = this.f13564a;
        if (cVar == null || (a10 = cVar.a()) == null) {
            return null;
        }
        return a10.c();
    }

    private final String a() {
        com.chartboost.sdk.Model.c b = b();
        if (b != null) {
            c cVar = b.f13023c;
            String str = cVar == null ? null : cVar.b;
            if (str != null) {
                return str;
            }
        }
        return "";
    }
}