package cn.jiguang.ap; import android.content.Context; import cn.jiguang.aq.c; public class b { private static volatile b i; private static final Object j = new Object(); private boolean a; private boolean b; private boolean c; private boolean d; private boolean e; private boolean f; private boolean g; private boolean h; private b() { this.a = false; this.b = false; this.c = false; this.d = false; this.e = false; this.f = false; this.g = false; this.h = false; this.a = d(); this.b = e(); this.c = f(); this.d = g(); this.e = h(); this.f = j(); this.g = i(); this.h = k(); } public static b a() { if (i == null) { synchronized (j) { if (i == null) { i = new b(); } } } return i; } private boolean d() { boolean z; try { Class.forName("cn.jpush.android.api.JPushInterface"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJpushSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJpushSDK:" + z); return z; } private boolean e() { boolean z; try { Class.forName("cn.jpush.im.android.api.JMessageClient"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJMessageSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJMessageSDK:" + z); return z; } private boolean f() { boolean z; try { Class.forName("cn.jiguang.analytics.android.api.JAnalyticsInterface"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJanalyticsSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJanalyticsSDK:" + z); return z; } private boolean g() { boolean z; try { Class.forName("cn.jiguang.share.android.api.JShareInterface"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJshareSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJshareSDK:" + z); return z; } private boolean h() { boolean z; try { Class.forName("cn.jiguang.adsdk.api.JSSPInterface"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJSspSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJSspSDK:" + z); return z; } private boolean i() { boolean z; try { Class.forName("cn.jiguang.h.a"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJCommonSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJCommonSDK:" + z); return z; } private boolean j() { boolean z; try { Class.forName("cn.jiguang.verifysdk.api.JVerificationInterface"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJVerificationSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJVerificationSDK:" + z); return z; } private boolean k() { boolean z; try { Class.forName("cn.jiguang.jmlinksdk.core.JMlinkInterfaceImpl"); z = true; } catch (ClassNotFoundException e2) { c.a("JClientsHelper", "isPluginJMLinkSDK:" + e2.getMessage()); z = false; } c.a("JClientsHelper", "isPluginJMLinkSDK:" + z); return z; } public boolean a(Context context) { return this.b || this.a; } public boolean b() { return this.b; } public boolean c() { return this.a; } }