ChannelManager.smali
.class public Lcom/sandboxol/center/router/manager/ChannelManager;
.super Ljava/lang/Object;
.source "ChannelManager.java"
# static fields
.field private static iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static facebookLogin(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
.registers 3
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->facebookLogin(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
:cond_b
return-void
.end method
.method private static getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
.registers 2
.line 1
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
if-nez v0, :cond_1a
.line 2
const-class v0, Lcom/sandboxol/center/router/manager/ChannelManager;
monitor-enter v0
.line 3
:try_start_7
sget-object v1, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
if-nez v1, :cond_15
const-string v1, "/channel/service"
.line 4
invoke-static {v1}, Lcom/sandboxol/center/router/RouteServiceManager;->provide(Ljava/lang/String;)Lcom/alibaba/android/arouter/facade/template/IProvider;
move-result-object v1
check-cast v1, Lcom/sandboxol/center/router/moduleApi/IChannelService;
sput-object v1, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
.line 5
:cond_15
monitor-exit v0
goto :goto_1a
:catchall_17
move-exception v1
monitor-exit v0
:try_end_19
.catchall {:try_start_7 .. :try_end_19} :catchall_17
throw v1
.line 6
:cond_1a
:goto_1a
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
return-object v0
.end method
.method public static googleLogin(Landroid/app/Activity;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->googleLogin(Landroid/app/Activity;)V
:cond_b
return-void
.end method
.method public static handleSignInResult(Landroid/content/Intent;Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
.registers 4
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->handleSignInResult(Landroid/content/Intent;Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
:cond_b
return-void
.end method
.method public static init(Landroid/content/Context;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->initThirdPartySdk(Landroid/content/Context;)V
:cond_b
return-void
.end method
.method public static initFirebaseFCM(Landroid/content/Context;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->initFirebaseFCM(Landroid/content/Context;)V
:cond_b
return-void
.end method
.method public static isBeta()Z
.registers 1
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_d
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->isBeta()Z
move-result v0
return v0
:cond_d
const/4 v0, 0x0
return v0
.end method
.method public static isHasGoogleService(Landroid/content/Context;)Z
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_d
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->isHasGoogleService(Landroid/content/Context;)Z
move-result p0
return p0
:cond_d
const/4 p0, 0x0
return p0
.end method
.method public static onActivityResult(IILandroid/content/Intent;)V
.registers 4
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onActivityResult(IILandroid/content/Intent;)V
:cond_b
return-void
.end method
.method public static onFacebookShare(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
.registers 5
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2, p3}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onFacebookShare(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
:cond_b
return-void
.end method
.method public static onGooglePayDestroy(Landroid/content/Context;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onGooglePayDestroy(Landroid/content/Context;)V
:cond_b
return-void
.end method
.method public static onGooglePayRegister(Landroid/app/Activity;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onGooglePayRegister(Landroid/app/Activity;)V
:cond_b
return-void
.end method
.method public static onGooglePayResume(Landroid/content/Context;)V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onGooglePayResume(Landroid/content/Context;)V
:cond_b
return-void
.end method
.method public static onGooglePlusShare(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
.registers 5
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2, p3}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onGooglePlusShare(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
:cond_b
return-void
.end method
.method public static onTwitterShare(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
.registers 5
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2, p3}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->onTwitterShare(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
:cond_b
return-void
.end method
.method public static startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.registers 5
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1, p2, p3}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_b
return-void
.end method
.method public static startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.registers 12
.line 5
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_10
.line 6
sget-object v1, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p4
invoke-interface/range {v1 .. v6}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_10
return-void
.end method
.method public static startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
.registers 14
.line 7
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_11
.line 8
sget-object v1, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p4
move v7, p5
invoke-interface/range {v1 .. v7}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
:cond_11
return-void
.end method
.method public static startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
.registers 12
.line 3
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_10
.line 4
sget-object v1, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move v6, p4
invoke-interface/range {v1 .. v6}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->startGooglePayActivity(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
:cond_10
return-void
.end method
.method public static twitterLogin(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
.registers 3
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/ChannelManager;->getChannelService()Lcom/sandboxol/center/router/moduleApi/IChannelService;
move-result-object v0
if-eqz v0, :cond_b
.line 2
sget-object v0, Lcom/sandboxol/center/router/manager/ChannelManager;->iChannelService:Lcom/sandboxol/center/router/moduleApi/IChannelService;
invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/router/moduleApi/IChannelService;->twitterLogin(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/login/interfaces/ILoginListener;)V
:cond_b
return-void
.end method