296 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			296 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/firebase/auth/OAuthProvider;
 | |
| .super Lcom/google/firebase/auth/FederatedAuthProvider;
 | |
| .source "com.google.firebase:firebase-auth@@21.0.1"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/firebase/auth/OAuthProvider$CredentialBuilder;,
 | |
|         Lcom/google/firebase/auth/OAuthProvider$Builder;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final zza:Landroid/os/Bundle;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public synthetic constructor <init>(Landroid/os/Bundle;Lcom/google/firebase/auth/zzab;)V
 | |
|     .locals 0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/firebase/auth/FederatedAuthProvider;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/firebase/auth/OAuthProvider;->zza:Landroid/os/Bundle;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static getCredential(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/auth/AuthCredential;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2, v0, v0}, Lcom/google/firebase/auth/zze;->zzc(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/auth/zze;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static newBuilder(Ljava/lang/String;)Lcom/google/firebase/auth/OAuthProvider$Builder;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/firebase/auth/FirebaseAuth;->getInstance()Lcom/google/firebase/auth/FirebaseAuth;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {p0, v0}, Lcom/google/firebase/auth/OAuthProvider;->newBuilder(Ljava/lang/String;Lcom/google/firebase/auth/FirebaseAuth;)Lcom/google/firebase/auth/OAuthProvider$Builder;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static newBuilder(Ljava/lang/String;Lcom/google/firebase/auth/FirebaseAuth;)Lcom/google/firebase/auth/OAuthProvider$Builder;
 | |
|     .locals 2
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Lcom/google/firebase/auth/FirebaseAuth;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     const-string v0, "facebook.com"
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1}, Lcom/google/firebase/auth/FirebaseAuth;->getApp()Lcom/google/firebase/FirebaseApp;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/gms/internal/firebase-auth-api/zzvr;->zzg(Lcom/google/firebase/FirebaseApp;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     new-instance p0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p1, "Sign in with Facebook is not supported via this method; the Facebook TOS dictate that you must use the Facebook Android SDK for Facebook login."
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     new-instance v0, Lcom/google/firebase/auth/OAuthProvider$Builder;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 7
 | |
|     invoke-direct {v0, p0, p1, v1}, Lcom/google/firebase/auth/OAuthProvider$Builder;-><init>(Ljava/lang/String;Lcom/google/firebase/auth/FirebaseAuth;Lcom/google/firebase/auth/zzab;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newCredentialBuilder(Ljava/lang/String;)Lcom/google/firebase/auth/OAuthProvider$CredentialBuilder;
 | |
|     .locals 2
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     new-instance v0, Lcom/google/firebase/auth/OAuthProvider$CredentialBuilder;
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-direct {v0, p0, v1}, Lcom/google/firebase/auth/OAuthProvider$CredentialBuilder;-><init>(Ljava/lang/String;Lcom/google/firebase/auth/zzab;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public getProviderId()Ljava/lang/String;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/firebase/auth/OAuthProvider;->zza:Landroid/os/Bundle;
 | |
| 
 | |
|     const-string v1, "com.google.firebase.auth.KEY_PROVIDER_ID"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public final zza(Landroid/app/Activity;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/app/Activity;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     new-instance v0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.firebase.auth.internal.NONGMSCORE_LINK"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     const-class v1, Lcom/google/firebase/auth/internal/GenericIdpActivity;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/auth/OAuthProvider;->zza:Landroid/os/Bundle;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final zzb(Landroid/app/Activity;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/app/Activity;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     new-instance v0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.firebase.auth.internal.NONGMSCORE_REAUTHENTICATE"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     const-class v1, Lcom/google/firebase/auth/internal/GenericIdpActivity;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/auth/OAuthProvider;->zza:Landroid/os/Bundle;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final zzc(Landroid/app/Activity;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/app/Activity;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     new-instance v0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v1, "com.google.firebase.auth.internal.NONGMSCORE_SIGN_IN"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     const-class v1, Lcom/google/firebase/auth/internal/GenericIdpActivity;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/firebase/auth/OAuthProvider;->zza:Landroid/os/Bundle;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |