.class public Lcom/ali/auth/third/login/LoginLifecycleAdapter;
.super Ljava/lang/Object;
.source "LoginLifecycleAdapter.java"


# static fields
.field public static final TAG:Ljava/lang/String; = "Member.LoginLifecycleAdapter"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static init()V
    .locals 6

    const-string v0, "Member.LoginLifecycleAdapter"

    const-string v1, "LoginLifecycle init "

    .line 22
    invoke-static {v0, v1}, Lcom/ali/auth/third/core/trace/SDKLogger;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    const-class v0, Lcom/ali/auth/third/core/service/RpcService;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/ali/auth/third/core/context/KernelContext;->getService(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ali/auth/third/core/service/RpcService;

    sput-object v0, Lcom/ali/auth/third/login/context/LoginContext;->rpcService:Lcom/ali/auth/third/core/service/RpcService;

    .line 24
    const-class v0, Lcom/ali/auth/third/core/service/CredentialService;

    invoke-static {v0, v1}, Lcom/ali/auth/third/core/context/KernelContext;->getService(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ali/auth/third/core/service/CredentialService;

    sput-object v0, Lcom/ali/auth/third/login/context/LoginContext;->credentialService:Lcom/ali/auth/third/core/service/CredentialService;

    .line 25
    const-class v0, Ljava/util/concurrent/ExecutorService;

    invoke-static {v0, v1}, Lcom/ali/auth/third/core/context/KernelContext;->getService(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/ExecutorService;

    sput-object v0, Lcom/ali/auth/third/login/context/LoginContext;->executorService:Ljava/util/concurrent/ExecutorService;

    .line 26
    const-class v0, Lcom/ali/auth/third/core/service/StorageService;

    invoke-static {v0, v1}, Lcom/ali/auth/third/core/context/KernelContext;->getService(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ali/auth/third/core/service/StorageService;

    sput-object v0, Lcom/ali/auth/third/login/context/LoginContext;->storageService:Lcom/ali/auth/third/core/service/StorageService;

    .line 28
    new-instance v0, Lcom/ali/auth/third/login/handler/LoginActivityResultHandler;

    invoke-direct {v0}, Lcom/ali/auth/third/login/handler/LoginActivityResultHandler;-><init>()V

    const/4 v1, 0x1

    .line 33
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/ui/support/ActivityResultHandler;

    const/4 v4, 0x0

    aput-object v3, v2, v4

    const-string v3, "requestCodeKey"

    sget v5, Lcom/ali/auth/third/login/RequestCode;->OPEN_H5_LOGIN:I

    .line 34
    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v3

    .line 33
    invoke-static {v2, v0, v3}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    .line 36
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/ui/support/ActivityResultHandler;

    aput-object v3, v2, v4

    const-string v3, "requestCodeKey"

    sget v5, Lcom/ali/auth/third/login/RequestCode;->OPEN_TAOBAO:I

    .line 37
    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v3

    .line 36
    invoke-static {v2, v0, v3}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    .line 40
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/ui/support/ActivityResultHandler;

    aput-object v3, v2, v4

    const-string v3, "requestCodeKey"

    sget v5, Lcom/ali/auth/third/login/RequestCode;->OPEN_DOUBLE_CHECK:I

    .line 41
    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v3

    .line 40
    invoke-static {v2, v0, v3}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    .line 44
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/ui/support/ActivityResultHandler;

    aput-object v3, v2, v4

    const-string v3, "requestCodeKey"

    sget v5, Lcom/ali/auth/third/login/RequestCode;->OPEN_QR_LOGIN:I

    .line 45
    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v3

    .line 44
    invoke-static {v2, v0, v3}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    .line 47
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/ui/support/ActivityResultHandler;

    aput-object v3, v2, v4

    const-string v3, "requestCodeKey"

    sget v5, Lcom/ali/auth/third/login/RequestCode;->OPEN_QR_LOGIN_CONFIRM:I

    .line 48
    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v3

    .line 47
    invoke-static {v2, v0, v3}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    const-string v0, "$isv_scope$"

    const-string v2, "true"

    .line 51
    invoke-static {v0, v2}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v0

    .line 52
    new-instance v2, Lcom/ali/auth/third/login/LoginServiceImpl;

    invoke-direct {v2}, Lcom/ali/auth/third/login/LoginServiceImpl;-><init>()V

    .line 53
    new-array v1, v1, [Ljava/lang/Class;

    const-class v3, Lcom/ali/auth/third/login/LoginService;

    aput-object v3, v1, v4

    invoke-static {v1, v2, v0}, Lcom/ali/auth/third/core/context/KernelContext;->registerService([Ljava/lang/Class;Ljava/lang/Object;Ljava/util/Map;)Lcom/ali/auth/third/core/registry/ServiceRegistration;

    .line 55
    invoke-static {}, Lcom/ali/auth/third/core/context/KernelContext;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ali/auth/third/login/util/LoginStatus;->init(Landroid/content/Context;)V

    return-void
.end method
