.class public abstract Lcom/singular/sdk/internal/LicenseApiHelper; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/singular/sdk/internal/LicenseApiHelper$LicenseResultHandler; } .end annotation # static fields .field public static final logger:Lcom/singular/sdk/internal/SingularLog; # direct methods .method static constructor ()V .locals 1 const-class v0, Lcom/singular/sdk/internal/LicenseApiHelper; .line 9 invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lcom/singular/sdk/internal/SingularLog;->getLogger(Ljava/lang/String;)Lcom/singular/sdk/internal/SingularLog; move-result-object v0 sput-object v0, Lcom/singular/sdk/internal/LicenseApiHelper;->logger:Lcom/singular/sdk/internal/SingularLog; return-void .end method .method public static checkLicense(Landroid/content/Context;Lcom/singular/sdk/internal/LicenseApiHelper$LicenseResultHandler;)V .locals 1 .line 19 :try_start_0 new-instance v0, Lcom/singular/sdk/internal/LicenseChecker; invoke-direct {v0, p0, p1}, Lcom/singular/sdk/internal/LicenseChecker;->(Landroid/content/Context;Lcom/singular/sdk/internal/LicenseApiHelper$LicenseResultHandler;)V .line 20 invoke-virtual {v0}, Lcom/singular/sdk/internal/LicenseChecker;->checkAccess()V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p0 sget-object p1, Lcom/singular/sdk/internal/LicenseApiHelper;->logger:Lcom/singular/sdk/internal/SingularLog; const-string v0, "Error occurred while trying to run license check" .line 23 invoke-virtual {p1, v0, p0}, Lcom/singular/sdk/internal/SingularLog;->error(Ljava/lang/String;Ljava/lang/Throwable;)I :goto_0 return-void .end method