Exemplo n.º 1
0
    private HttpRequest b(HttpRequest httprequest, adk adk1)
    {
        Object obj;
        HttpRequest httprequest1;
        httprequest1 = httprequest.e("app[identifier]", adk1.b).e("app[name]", adk1.f).e("app[display_version]", adk1.c).e("app[build_version]", adk1.d).a("app[source]", Integer.valueOf(adk1.g)).e("app[minimum_sdk_version]", adk1.h).e("app[built_sdk_version]", adk1.i);
        if (!CommonUtils.c(adk1.e))
        {
            httprequest1.e("app[instance_identifier]", adk1.e);
        }
        if (adk1.j == null)
        {
            break MISSING_BLOCK_LABEL_193;
        }
        obj = null;
        httprequest = null;
        java.io.InputStream inputstream = kit.getContext().getResources().openRawResource(adk1.j.b);
        httprequest = inputstream;
        obj = inputstream;
        httprequest1.e("app[icon][hash]", adk1.j.a).a("app[icon][data]", "icon.png", "application/octet-stream", inputstream).a("app[icon][width]", Integer.valueOf(adk1.j.c)).a("app[icon][height]", Integer.valueOf(adk1.j.d));
        CommonUtils.a(inputstream, "Failed to close app icon InputStream.");
_L2:
        if (adk1.k != null)
        {
            for (httprequest = adk1.k.iterator(); httprequest.hasNext(); httprequest1.e(b(((aaf) (adk1))), adk1.c()))
            {
                adk1 = (aaf)httprequest.next();
                httprequest1.e(a(adk1), adk1.b());
            }

        }
        break MISSING_BLOCK_LABEL_321;
        android.content.res.Resources.NotFoundException notfoundexception;
        notfoundexception;
        obj = httprequest;
        zw.h().e("Fabric", (new StringBuilder()).append("Failed to find app icon with resource ID: ").append(adk1.j.b).toString(), notfoundexception);
        CommonUtils.a(httprequest, "Failed to close app icon InputStream.");
        if (true) goto _L2; else goto _L1
Exemplo n.º 2
0
 private boolean isLoggingEnabled()
 {
     return CommonUtils.a(context, "com.crashlytics.CollectCustomLogs", true);
 }