1707 lines
		
	
	
		
			55 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			1707 lines
		
	
	
		
			55 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| .super Ljava/lang/Object;
 | |
| .source "com.google.firebase:firebase-messaging@@23.0.0"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final INSTANCE_ID_SCOPE:Ljava/lang/String; = "FCM"
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final MAX_DELAY_SEC:J
 | |
| 
 | |
| .field private static store:Lcom/google/firebase/messaging/Store;
 | |
|     .annotation build Ljavax/annotation/concurrent/GuardedBy;
 | |
|         value = "FirebaseMessaging.class"
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static syncExecutor:Ljava/util/concurrent/ScheduledExecutorService;
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Ljavax/annotation/concurrent/GuardedBy;
 | |
|         value = "FirebaseMessaging.class"
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static transportFactory:Lcom/google/android/datatransport/TransportFactory;
 | |
|     .annotation build Landroid/annotation/SuppressLint;
 | |
|         value = {
 | |
|             "FirebaseUnknownNullness"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final autoInit:Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
| 
 | |
| .field private final context:Landroid/content/Context;
 | |
| 
 | |
| .field private final fileIoExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
| .field private final firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
| .field private final fis:Lcom/google/firebase/installations/FirebaseInstallationsApi;
 | |
| 
 | |
| .field private final gmsRpc:Lcom/google/firebase/messaging/GmsRpc;
 | |
| 
 | |
| .field private final iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final lifecycleCallbacks:Landroid/app/Application$ActivityLifecycleCallbacks;
 | |
| 
 | |
| .field private final metadata:Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
| .field private final requestDeduplicator:Lcom/google/firebase/messaging/RequestDeduplicator;
 | |
| 
 | |
| .field private syncScheduledOrRunning:Z
 | |
|     .annotation build Ljavax/annotation/concurrent/GuardedBy;
 | |
|         value = "this"
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final taskExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
| .field private final topicsSubscriberTask:Lcom/google/android/gms/tasks/Task;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Lcom/google/firebase/messaging/TopicsSubscriber;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static synthetic $r8$lambda$iw3kunv9-hQO8R-88V1J4aIyLI8(Lcom/google/firebase/messaging/FirebaseMessaging;Ljava/lang/String;)V
 | |
|     .locals 0
 | |
|     .param p0    # Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/firebase/messaging/FirebaseMessaging;->invokeOnTokenRefresh(Ljava/lang/String;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static bridge synthetic -$$Nest$fgetfirebaseApp(Lcom/google/firebase/messaging/FirebaseMessaging;)Lcom/google/firebase/FirebaseApp;
 | |
|     .locals 0
 | |
| 
 | |
|     iget-object p0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static bridge synthetic -$$Nest$mstartSyncIfNecessary(Lcom/google/firebase/messaging/FirebaseMessaging;)V
 | |
|     .locals 0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->startSyncIfNecessary()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     const-wide/16 v1, 0x8
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toSeconds(J)J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     sput-wide v0, Lcom/google/firebase/messaging/FirebaseMessaging;->MAX_DELAY_SEC:J
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lcom/google/android/datatransport/TransportFactory;Lcom/google/firebase/events/Subscriber;)V
 | |
|     .locals 9
 | |
|     .param p2    # Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p6    # Lcom/google/android/datatransport/TransportFactory;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lcom/google/firebase/FirebaseApp;",
 | |
|             "Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;",
 | |
|             "Lcom/google/firebase/inject/Provider<",
 | |
|             "Lcom/google/firebase/platforminfo/UserAgentPublisher;",
 | |
|             ">;",
 | |
|             "Lcom/google/firebase/inject/Provider<",
 | |
|             "Lcom/google/firebase/heartbeatinfo/HeartBeatInfo;",
 | |
|             ">;",
 | |
|             "Lcom/google/firebase/installations/FirebaseInstallationsApi;",
 | |
|             "Lcom/google/android/datatransport/TransportFactory;",
 | |
|             "Lcom/google/firebase/events/Subscriber;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v8, Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/FirebaseApp;->getApplicationContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {v8, v0}, Lcom/google/firebase/messaging/Metadata;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     move-object v0, p0
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     move-object v2, p2
 | |
| 
 | |
|     move-object v3, p3
 | |
| 
 | |
|     move-object v4, p4
 | |
| 
 | |
|     move-object v5, p5
 | |
| 
 | |
|     move-object v6, p6
 | |
| 
 | |
|     move-object/from16 v7, p7
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct/range {v0 .. v8}, Lcom/google/firebase/messaging/FirebaseMessaging;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lcom/google/android/datatransport/TransportFactory;Lcom/google/firebase/events/Subscriber;Lcom/google/firebase/messaging/Metadata;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lcom/google/android/datatransport/TransportFactory;Lcom/google/firebase/events/Subscriber;Lcom/google/firebase/messaging/Metadata;)V
 | |
|     .locals 10
 | |
|     .param p2    # Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p6    # Lcom/google/android/datatransport/TransportFactory;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lcom/google/firebase/FirebaseApp;",
 | |
|             "Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;",
 | |
|             "Lcom/google/firebase/inject/Provider<",
 | |
|             "Lcom/google/firebase/platforminfo/UserAgentPublisher;",
 | |
|             ">;",
 | |
|             "Lcom/google/firebase/inject/Provider<",
 | |
|             "Lcom/google/firebase/heartbeatinfo/HeartBeatInfo;",
 | |
|             ">;",
 | |
|             "Lcom/google/firebase/installations/FirebaseInstallationsApi;",
 | |
|             "Lcom/google/android/datatransport/TransportFactory;",
 | |
|             "Lcom/google/firebase/events/Subscriber;",
 | |
|             "Lcom/google/firebase/messaging/Metadata;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v7, Lcom/google/firebase/messaging/GmsRpc;
 | |
| 
 | |
|     move-object v0, v7
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     move-object/from16 v2, p8
 | |
| 
 | |
|     move-object v3, p3
 | |
| 
 | |
|     move-object v4, p4
 | |
| 
 | |
|     move-object v5, p5
 | |
| 
 | |
|     invoke-direct/range {v0 .. v5}, Lcom/google/firebase/messaging/GmsRpc;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/messaging/Metadata;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/inject/Provider;Lcom/google/firebase/installations/FirebaseInstallationsApi;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {}, Lcom/google/firebase/messaging/FcmExecutors;->newTaskExecutor()Ljava/util/concurrent/ExecutorService;
 | |
| 
 | |
|     move-result-object v8
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {}, Lcom/google/firebase/messaging/FcmExecutors;->newInitExecutor()Ljava/util/concurrent/ScheduledExecutorService;
 | |
| 
 | |
|     move-result-object v9
 | |
| 
 | |
|     move-object v0, p0
 | |
| 
 | |
|     move-object v2, p2
 | |
| 
 | |
|     move-object v3, p5
 | |
| 
 | |
|     move-object/from16 v4, p6
 | |
| 
 | |
|     move-object/from16 v5, p7
 | |
| 
 | |
|     move-object/from16 v6, p8
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct/range {v0 .. v9}, Lcom/google/firebase/messaging/FirebaseMessaging;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lcom/google/android/datatransport/TransportFactory;Lcom/google/firebase/events/Subscriber;Lcom/google/firebase/messaging/Metadata;Lcom/google/firebase/messaging/GmsRpc;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lcom/google/android/datatransport/TransportFactory;Lcom/google/firebase/events/Subscriber;Lcom/google/firebase/messaging/Metadata;Lcom/google/firebase/messaging/GmsRpc;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)V
 | |
|     .locals 1
 | |
|     .param p2    # Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p4    # Lcom/google/android/datatransport/TransportFactory;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 7
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     iput-boolean v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->syncScheduledOrRunning:Z
 | |
| 
 | |
|     sput-object p4, Lcom/google/firebase/messaging/FirebaseMessaging;->transportFactory:Lcom/google/android/datatransport/TransportFactory;
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->fis:Lcom/google/firebase/installations/FirebaseInstallationsApi;
 | |
| 
 | |
|     new-instance p3, Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
| 
 | |
|     invoke-direct {p3, p0, p5}, Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Lcom/google/firebase/events/Subscriber;)V
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->autoInit:Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
| 
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/FirebaseApp;->getApplicationContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 8
 | |
|     new-instance p4, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;
 | |
| 
 | |
|     invoke-direct {p4}, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;-><init>()V
 | |
| 
 | |
|     iput-object p4, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->lifecycleCallbacks:Landroid/app/Application$ActivityLifecycleCallbacks;
 | |
| 
 | |
|     iput-object p6, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->metadata:Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
|     iput-object p8, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->taskExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
|     iput-object p7, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->gmsRpc:Lcom/google/firebase/messaging/GmsRpc;
 | |
| 
 | |
|     new-instance p5, Lcom/google/firebase/messaging/RequestDeduplicator;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-direct {p5, p8}, Lcom/google/firebase/messaging/RequestDeduplicator;-><init>(Ljava/util/concurrent/Executor;)V
 | |
| 
 | |
|     iput-object p5, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->requestDeduplicator:Lcom/google/firebase/messaging/RequestDeduplicator;
 | |
| 
 | |
|     iput-object p9, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->fileIoExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/FirebaseApp;->getApplicationContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 11
 | |
|     instance-of p5, p1, Landroid/app/Application;
 | |
| 
 | |
|     if-eqz p5, :cond_0
 | |
| 
 | |
|     .line 12
 | |
|     check-cast p1, Landroid/app/Application;
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {p1, p4}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 14
 | |
|     :cond_0
 | |
|     invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/lang/String;->length()I
 | |
| 
 | |
|     move-result p4
 | |
| 
 | |
|     new-instance p5, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     add-int/lit8 p4, p4, 0x7d
 | |
| 
 | |
|     invoke-direct {p5, p4}, Ljava/lang/StringBuilder;-><init>(I)V
 | |
| 
 | |
|     const-string p4, "Context "
 | |
| 
 | |
|     invoke-virtual {p5, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p1, " was not an application, can\'t register for lifecycle callbacks. Some notification events may be dropped as a result."
 | |
| 
 | |
|     invoke-virtual {p5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string p4, "FirebaseMessaging"
 | |
| 
 | |
|     invoke-static {p4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz p2, :cond_1
 | |
| 
 | |
|     .line 15
 | |
|     new-instance p1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda4;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda4;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;)V
 | |
| 
 | |
|     invoke-interface {p2, p1}, Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;->addNewTokenListener(Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal$NewTokenListener;)V
 | |
| 
 | |
|     :cond_1
 | |
|     new-instance p1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda6;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda6;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;)V
 | |
| 
 | |
|     .line 16
 | |
|     invoke-interface {p9, p1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     .line 17
 | |
|     invoke-static {}, Lcom/google/firebase/messaging/FcmExecutors;->newTopicsSyncExecutor()Ljava/util/concurrent/ScheduledExecutorService;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 18
 | |
|     invoke-static {p0, p6, p7, p3, p1}, Lcom/google/firebase/messaging/TopicsSubscriber;->createInstance(Lcom/google/firebase/messaging/FirebaseMessaging;Lcom/google/firebase/messaging/Metadata;Lcom/google/firebase/messaging/GmsRpc;Landroid/content/Context;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->topicsSubscriberTask:Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     .line 19
 | |
|     new-instance p2, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda0;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda0;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;)V
 | |
| 
 | |
|     invoke-virtual {p1, p9, p2}, Lcom/google/android/gms/tasks/Task;->addOnSuccessListener(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/OnSuccessListener;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     new-instance p1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda7;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda7;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;)V
 | |
| 
 | |
|     .line 20
 | |
|     invoke-interface {p9, p1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static declared-synchronized getInstance()Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-static {}, Lcom/google/firebase/FirebaseApp;->getInstance()Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v1}, Lcom/google/firebase/messaging/FirebaseMessaging;->getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     move-result-object v1
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v1
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     throw v1
 | |
| .end method
 | |
| 
 | |
| .method public static declared-synchronized getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
|     .locals 2
 | |
|     .param p0    # Lcom/google/firebase/FirebaseApp;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/Keep;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0, v0}, Lcom/google/firebase/FirebaseApp;->get(Ljava/lang/Class;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     const-string v1, "Firebase Messaging component is not present"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method private static declared-synchronized getStore(Landroid/content/Context;)Lcom/google/firebase/messaging/Store;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->store:Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     new-instance v1, Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/firebase/messaging/Store;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     sput-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->store:Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     :cond_0
 | |
|     sget-object p0, Lcom/google/firebase/messaging/FirebaseMessaging;->store:Lcom/google/firebase/messaging/Store;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method private getSubtype()Ljava/lang/String;
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v1, "[DEFAULT]"
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const-string v0, ""
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/FirebaseApp;->getPersistenceKey()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static getTransportFactory()Lcom/google/android/datatransport/TransportFactory;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     sget-object v0, Lcom/google/firebase/messaging/FirebaseMessaging;->transportFactory:Lcom/google/android/datatransport/TransportFactory;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private invokeOnTokenRefresh(Ljava/lang/String;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v1, "[DEFAULT]"
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     const/4 v0, 0x3
 | |
| 
 | |
|     const-string v1, "FirebaseMessaging"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v2, "Invoking onNewToken for app: "
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/String;->length()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-eqz v3, :cond_0
 | |
| 
 | |
|     invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/String;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {v0, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     :cond_1
 | |
|     new-instance v0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.firebase.messaging.NEW_TOKEN"
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v1, "token"
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     new-instance p1, Lcom/google/firebase/messaging/FcmBroadcastProcessor;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-direct {p1, v1}, Lcom/google/firebase/messaging/FcmBroadcastProcessor;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1, v0}, Lcom/google/firebase/messaging/FcmBroadcastProcessor;->process(Landroid/content/Intent;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic lambda$subscribeToTopic$6(Ljava/lang/String;Lcom/google/firebase/messaging/TopicsSubscriber;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/Exception;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p0}, Lcom/google/firebase/messaging/TopicsSubscriber;->subscribeToTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic lambda$unsubscribeFromTopic$7(Ljava/lang/String;Lcom/google/firebase/messaging/TopicsSubscriber;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/Exception;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p0}, Lcom/google/firebase/messaging/TopicsSubscriber;->unsubscribeFromTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private declared-synchronized startSync()V
 | |
|     .locals 2
 | |
| 
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     iget-boolean v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->syncScheduledOrRunning:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const-wide/16 v0, 0x0
 | |
| 
 | |
|     invoke-virtual {p0, v0, v1}, Lcom/google/firebase/messaging/FirebaseMessaging;->syncWithDelaySecondsInternal(J)V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v0
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method private startSyncIfNecessary()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-interface {v0}, Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;->getToken()Ljava/lang/String;
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getTokenWithoutTriggeringSync()Lcom/google/firebase/messaging/Store$Token;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->tokenNeedsRefresh(Lcom/google/firebase/messaging/Store$Token;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->startSync()V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public blockingGetToken()Ljava/lang/String;
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     :try_start_0
 | |
|     invoke-interface {v0}, Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;->getTokenTask()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->await(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Ljava/lang/String;
 | |
|     :try_end_0
 | |
|     .catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_1
 | |
|     .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_1
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 2
 | |
|     :goto_0
 | |
|     new-instance v1, Ljava/io/IOException;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getTokenWithoutTriggeringSync()Lcom/google/firebase/messaging/Store$Token;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->tokenNeedsRefresh(Lcom/google/firebase/messaging/Store$Token;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v0, v0, Lcom/google/firebase/messaging/Store$Token;->token:Ljava/lang/String;
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :cond_1
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {v1}, Lcom/google/firebase/messaging/Metadata;->getDefaultSenderId(Lcom/google/firebase/FirebaseApp;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->requestDeduplicator:Lcom/google/firebase/messaging/RequestDeduplicator;
 | |
| 
 | |
|     new-instance v3, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda5;
 | |
| 
 | |
|     invoke-direct {v3, p0, v1, v0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda5;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ljava/lang/String;Lcom/google/firebase/messaging/Store$Token;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v2, v1, v3}, Lcom/google/firebase/messaging/RequestDeduplicator;->getOrStartGetTokenRequest(Ljava/lang/String;Lcom/google/firebase/messaging/RequestDeduplicator$GetTokenRequest;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 9
 | |
|     :try_start_1
 | |
|     invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->await(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Ljava/lang/String;
 | |
|     :try_end_1
 | |
|     .catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_3
 | |
|     .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_2
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :catch_2
 | |
|     move-exception v0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catch_3
 | |
|     move-exception v0
 | |
| 
 | |
|     :goto_1
 | |
|     new-instance v1, Ljava/io/IOException;
 | |
| 
 | |
|     .line 10
 | |
|     invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     throw v1
 | |
| .end method
 | |
| 
 | |
| .method public deleteToken()Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Ljava/lang/Void;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->fileIoExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
|     new-instance v2, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda8;
 | |
| 
 | |
|     invoke-direct {v2, p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda8;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getTokenWithoutTriggeringSync()Lcom/google/firebase/messaging/Store$Token;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {}, Lcom/google/firebase/messaging/FcmExecutors;->newNetworkIOExecutor()Ljava/util/concurrent/ExecutorService;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     new-instance v2, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda9;
 | |
| 
 | |
|     invoke-direct {v2, p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda9;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public deliveryMetricsExportToBigQueryEnabled()Z
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/firebase/messaging/MessagingAnalytics;->deliveryMetricsExportToBigQueryEnabled()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public enqueueTaskWithDelaySeconds(Ljava/lang/Runnable;J)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     :try_start_0
 | |
|     sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->syncExecutor:Ljava/util/concurrent/ScheduledExecutorService;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     new-instance v1, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
 | |
| 
 | |
|     new-instance v2, Lcom/google/android/gms/common/util/concurrent/NamedThreadFactory;
 | |
| 
 | |
|     const-string v3, "TAG"
 | |
| 
 | |
|     invoke-direct {v2, v3}, Lcom/google/android/gms/common/util/concurrent/NamedThreadFactory;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     invoke-direct {v1, v3, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
 | |
| 
 | |
|     sput-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->syncExecutor:Ljava/util/concurrent/ScheduledExecutorService;
 | |
| 
 | |
|     :cond_0
 | |
|     sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->syncExecutor:Ljava/util/concurrent/ScheduledExecutorService;
 | |
| 
 | |
|     sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {v1, p1, p2, p3, v2}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
 | |
| 
 | |
|     .line 3
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit v0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public getApplicationContext()Landroid/content/Context;
 | |
|     .locals 1
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getToken()Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Ljava/lang/String;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-interface {v0}, Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;->getTokenTask()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->fileIoExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
|     new-instance v2, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda10;
 | |
| 
 | |
|     invoke-direct {v2, p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda10;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTokenWithoutTriggeringSync()Lcom/google/firebase/messaging/Store$Token;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getStore(Landroid/content/Context;)Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getSubtype()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     invoke-static {v2}, Lcom/google/firebase/messaging/Metadata;->getDefaultSenderId(Lcom/google/firebase/FirebaseApp;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Lcom/google/firebase/messaging/Store;->getToken(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/messaging/Store$Token;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public isAutoInitEnabled()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->autoInit:Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;->isEnabled()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isGmsCorePresent()Z
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->metadata:Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/messaging/Metadata;->isGmscorePresent()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isNotificationDelegationEnabled()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/firebase/messaging/ProxyNotificationInitializer;->isProxyNotificationEnabled(Landroid/content/Context;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$blockingGetToken$8$com-google-firebase-messaging-FirebaseMessaging(Ljava/lang/String;Lcom/google/firebase/messaging/Store$Token;Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/Exception;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getStore(Landroid/content/Context;)Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getSubtype()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->metadata:Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
|     invoke-virtual {v2}, Lcom/google/firebase/messaging/Metadata;->getAppVersionCode()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1, p1, p3, v2}, Lcom/google/firebase/messaging/Store;->saveToken(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     iget-object p1, p2, Lcom/google/firebase/messaging/Store$Token;->token:Ljava/lang/String;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-direct {p0, p3}, Lcom/google/firebase/messaging/FirebaseMessaging;->invokeOnTokenRefresh(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-static {p3}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$blockingGetToken$9$com-google-firebase-messaging-FirebaseMessaging(Ljava/lang/String;Lcom/google/firebase/messaging/Store$Token;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->gmsRpc:Lcom/google/firebase/messaging/GmsRpc;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/messaging/GmsRpc;->getToken()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda11;->INSTANCE:Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda11;
 | |
| 
 | |
|     new-instance v2, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda1;
 | |
| 
 | |
|     invoke-direct {v2, p0, p1, p2}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda1;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ljava/lang/String;Lcom/google/firebase/messaging/Store$Token;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$deleteToken$4$com-google-firebase-messaging-FirebaseMessaging(Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->iid:Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     invoke-static {v1}, Lcom/google/firebase/messaging/Metadata;->getDefaultSenderId(Lcom/google/firebase/FirebaseApp;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const-string v2, "FCM"
 | |
| 
 | |
|     invoke-interface {v0, v1, v2}, Lcom/google/firebase/iid/internal/FirebaseInstanceIdInternal;->deleteToken(Ljava/lang/String;Ljava/lang/String;)V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$deleteToken$5$com-google-firebase-messaging-FirebaseMessaging(Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->gmsRpc:Lcom/google/firebase/messaging/GmsRpc;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/messaging/GmsRpc;->deleteToken()Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->await(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getStore(Landroid/content/Context;)Lcom/google/firebase/messaging/Store;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getSubtype()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->firebaseApp:Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     invoke-static {v2}, Lcom/google/firebase/messaging/Metadata;->getDefaultSenderId(Lcom/google/firebase/FirebaseApp;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Lcom/google/firebase/messaging/Store;->deleteToken(Ljava/lang/String;Ljava/lang/String;)V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$getToken$3$com-google-firebase-messaging-FirebaseMessaging(Lcom/google/android/gms/tasks/TaskCompletionSource;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->blockingGetToken()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$new$0$com-google-firebase-messaging-FirebaseMessaging()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->isAutoInitEnabled()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->startSyncIfNecessary()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$new$1$com-google-firebase-messaging-FirebaseMessaging(Lcom/google/firebase/messaging/TopicsSubscriber;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->isAutoInitEnabled()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/messaging/TopicsSubscriber;->startTopicsSyncIfNecessary()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic lambda$new$2$com-google-firebase-messaging-FirebaseMessaging()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/firebase/messaging/ProxyNotificationInitializer;->initialize(Landroid/content/Context;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public send(Lcom/google/firebase/messaging/RemoteMessage;)V
 | |
|     .locals 5
 | |
|     .param p1    # Lcom/google/firebase/messaging/RemoteMessage;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/messaging/RemoteMessage;->getTo()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.android.gcm.intent.SEND"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     new-instance v1, Landroid/content/Intent;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {v1}, Landroid/content/Intent;-><init>()V
 | |
| 
 | |
|     const-string v2, "com.google.example.invalidpackage"
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     const/high16 v3, 0x4000000
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v2, v4, v1, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const-string v2, "app"
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.android.gms"
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p1, v0}, Lcom/google/firebase/messaging/RemoteMessage;->populateSendMessageIntent(Landroid/content/Intent;)V
 | |
| 
 | |
|     iget-object p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     const-string v1, "com.google.android.gtalkservice.permission.GTALK_SERVICE"
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/content/Context;->sendOrderedBroadcast(Landroid/content/Intent;Ljava/lang/String;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 11
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "Missing \'to\'"
 | |
| 
 | |
|     .line 12
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public setAutoInitEnabled(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->autoInit:Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/firebase/messaging/FirebaseMessaging$AutoInit;->setEnabled(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setDeliveryMetricsExportToBigQuery(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/firebase/messaging/MessagingAnalytics;->setDeliveryMetricsExportToBigQuery(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setNotificationDelegationEnabled(Z)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(Z)",
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Ljava/lang/Void;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->fileIoExecutor:Ljava/util/concurrent/Executor;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, v1, p1}, Lcom/google/firebase/messaging/ProxyNotificationInitializer;->setEnableProxyNotification(Ljava/util/concurrent/Executor;Landroid/content/Context;Z)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public declared-synchronized setSyncScheduledOrRunning(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     monitor-enter p0
 | |
| 
 | |
|     :try_start_0
 | |
|     iput-boolean p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->syncScheduledOrRunning:Z
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public subscribeToTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 2
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/lang/String;",
 | |
|             ")",
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Ljava/lang/Void;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->topicsSubscriberTask:Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     new-instance v1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda2;
 | |
| 
 | |
|     invoke-direct {v1, p1}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda2;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public declared-synchronized syncWithDelaySecondsInternal(J)V
 | |
|     .locals 4
 | |
| 
 | |
|     monitor-enter p0
 | |
| 
 | |
|     const-wide/16 v0, 0x1e
 | |
| 
 | |
|     add-long v2, p1, p1
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     sget-wide v2, Lcom/google/firebase/messaging/FirebaseMessaging;->MAX_DELAY_SEC:J
 | |
| 
 | |
|     invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     new-instance v2, Lcom/google/firebase/messaging/SyncTask;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {v2, p0, v0, v1}, Lcom/google/firebase/messaging/SyncTask;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;J)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v2, p1, p2}, Lcom/google/firebase/messaging/FirebaseMessaging;->enqueueTaskWithDelaySeconds(Ljava/lang/Runnable;J)V
 | |
| 
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     iput-boolean p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->syncScheduledOrRunning:Z
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public tokenNeedsRefresh(Lcom/google/firebase/messaging/Store$Token;)Z
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/firebase/messaging/Store$Token;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->metadata:Lcom/google/firebase/messaging/Metadata;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/firebase/messaging/Metadata;->getAppVersionCode()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Lcom/google/firebase/messaging/Store$Token;->needsRefresh(Ljava/lang/String;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public unsubscribeFromTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
 | |
|     .locals 2
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/lang/String;",
 | |
|             ")",
 | |
|             "Lcom/google/android/gms/tasks/Task<",
 | |
|             "Ljava/lang/Void;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->topicsSubscriberTask:Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     new-instance v1, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda3;
 | |
| 
 | |
|     invoke-direct {v1, p1}, Lcom/google/firebase/messaging/FirebaseMessaging$$ExternalSyntheticLambda3;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 |