c.smali
.class public final Lwf/c;
.super Lj9/e;
.source "PushInitTask.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lwf/c$a;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0003\u0018\u0000 \u000e2\u00020\u0001:\u0001\u000eB\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\u000b\u001a\u00020\u000cH\u0002J\u0008\u0010\r\u001a\u00020\u000cH\u0016R\u001b\u0010\u0003\u001a\u00020\u00048BX\u0082\u0084\u0002\u00a2\u0006\u000c\n\u0004\u0008\u0007\u0010\u0008\u001a\u0004\u0008\u0005\u0010\u0006R\u000e\u0010\t\u001a\u00020\nX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f"
}
d2 = {
"Lcom/shopee/foody/driver/global/init/tasks/push/PushInitTask;",
"Lcom/shopee/android/base/initmanager/wrapper/SyncTaskWrapper;",
"()V",
"connectCountNotifier",
"Lcom/shopee/foody/driver/push/state/WssChannelConnectCountNotifier;",
"getConnectCountNotifier",
"()Lcom/shopee/foody/driver/push/state/WssChannelConnectCountNotifier;",
"connectCountNotifier$delegate",
"Lkotlin/Lazy;",
"reconnectNotifier",
"Lcom/shopee/foody/driver/push/state/WssChannelReconnectNotifier;",
"registerPushProcessor",
"",
"run",
"Companion",
"driver_indonesiaRelease"
}
k = 0x1
mv = {
0x1,
0x1,
0x10
}
.end annotation
# instance fields
.field public final e:Lkotlin/Lazy;
.field public final f:Lgj/c;
# direct methods
.method public static constructor <clinit>()V
.registers 2
new-instance v0, Lwf/c$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lwf/c$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>()V
.registers 3
const-string v0, "PushInitTask"
invoke-direct {p0, v0}, Lj9/e;-><init>(Ljava/lang/String;)V
sget-object v0, Lwf/c$b;->a:Lwf/c$b;
invoke-static {v0}, Lcom/shopee/hamster/base/extension/FastInitializedLazyKt;->fastLazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
iput-object v0, p0, Lwf/c;->e:Lkotlin/Lazy;
new-instance v0, Lgj/c;
sget-object v1, Lwf/c$c;->a:Lwf/c$c;
invoke-direct {v0, v1}, Lgj/c;-><init>(Lkotlin/jvm/functions/Function1;)V
iput-object v0, p0, Lwf/c;->f:Lgj/c;
return-void
.end method
# virtual methods
.method public final e()Lgj/b;
.registers 2
iget-object v0, p0, Lwf/c;->e:Lkotlin/Lazy;
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lgj/b;
return-object v0
.end method
.method public final f()V
.registers 4
sget-object v0, Lej/e;->d:Lej/e;
new-instance v1, Lpf/b;
invoke-direct {v1}, Lpf/b;-><init>()V
const/4 v2, 0x3
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
sget-object v1, Lsi/a;->c:Lsi/a;
const/4 v2, 0x1
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
sget-object v1, Lqi/c;->c:Lqi/c;
const/4 v2, 0x4
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
new-instance v1, Lti/d;
invoke-direct {v1}, Lti/d;-><init>()V
const/4 v2, 0x7
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
new-instance v1, Lri/d;
invoke-direct {v1}, Lri/d;-><init>()V
const/16 v2, 0x8
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
sget-object v1, Lxk/b;->a:Lxk/b;
const/4 v2, 0x5
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
sget-object v0, Lej/e;->d:Lej/e;
new-instance v1, Lyk/d;
invoke-direct {v1}, Lyk/d;-><init>()V
const/4 v2, 0x6
invoke-virtual {v0, v2, v1}, Lej/e;->a(ILej/c;)V
return-void
.end method
.method public run()V
.registers 7
const-class v0, Lcom/shopee/foody/push/service/IPushMessageService;
invoke-static {v0}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/shopee/foody/push/service/IPushMessageService;
const/4 v1, 0x0
if-eqz v0, :cond_57
sget-object v2, Ljd/b;->c:Ljd/b$a;
invoke-virtual {v2}, Ljd/b$a;->a()Landroid/content/Context;
move-result-object v2
invoke-virtual {v2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
const-string v3, "AppUtils.getContext().applicationContext"
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->init(Landroid/content/Context;)V
invoke-interface {v0}, Lcom/shopee/foody/push/service/IPushMessageService;->bindService()V
new-instance v2, Lwf/e;
invoke-direct {v2}, Lwf/e;-><init>()V
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->setPushMessageFilter(Lcom/shopee/foody/push/service/IPushMessageService$a;)V
sget-object v2, Lej/e;->d:Lej/e;
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->addPushMessageListener(Lcom/shopee/foody/push/service/IPushMessageService$b;)V
new-instance v2, Lwf/c$d;
invoke-direct {v2}, Lwf/c$d;-><init>()V
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->addPushConnectErrorListener(Lcom/shopee/foody/push/core/IPushConnectErrorListener;)V
new-instance v2, Lwf/c$e;
invoke-direct {v2, v0}, Lwf/c$e;-><init>(Lcom/shopee/foody/push/service/IPushMessageService;)V
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->addPushConnectionStateListener(Lcom/shopee/foody/push/core/IPushConnectionStateListener;)V
new-instance v2, Lgj/d;
const/4 v3, 0x2
new-array v3, v3, [Lgj/a;
invoke-virtual {p0}, Lwf/c;->e()Lgj/b;
move-result-object v4
aput-object v4, v3, v1
const/4 v4, 0x1
iget-object v5, p0, Lwf/c;->f:Lgj/c;
aput-object v5, v3, v4
invoke-static {v3}, Lkotlin/collections/CollectionsKt__CollectionsKt;->listOf([Ljava/lang/Object;)Ljava/util/List;
move-result-object v3
invoke-direct {v2, v3}, Lgj/d;-><init>(Ljava/util/List;)V
invoke-interface {v0, v2}, Lcom/shopee/foody/push/service/IPushMessageService;->addPushConnectionStateListener(Lcom/shopee/foody/push/core/IPushConnectionStateListener;)V
:cond_57
invoke-virtual {p0}, Lwf/c;->f()V
sget-object v0, Lqh/f;->f:Lqh/f;
new-instance v2, Lwf/c$f;
invoke-direct {v2}, Lwf/c$f;-><init>()V
invoke-virtual {v0, v2, v1}, Lqh/f;->a(Lph/f;Z)V
sget-object v0, Lqh/f;->f:Lqh/f;
new-instance v2, Lwf/c$g;
invoke-direct {v2}, Lwf/c$g;-><init>()V
invoke-virtual {v0, v2, v1}, Lqh/f;->a(Lph/e;Z)V
sget-object v0, Ljd/b;->c:Ljd/b$a;
invoke-virtual {v0}, Ljd/b$a;->b()Z
move-result v0
if-eqz v0, :cond_95
sget-object v0, Lqa/d;->e:Lqa/d$a;
sget-object v1, Lwf/c$h;->a:Lwf/c$h;
const-string v2, "PushInitTask"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
new-instance v0, Landroid/content/IntentFilter;
const-string v1, "com.shopee.foody.push"
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
sget-object v1, Ljd/b;->c:Ljd/b$a;
invoke-virtual {v1}, Ljd/b$a;->a()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Lck/a;->a:Lck/a;
invoke-virtual {v1, v2, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
:cond_95
return-void
.end method