- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
305 lines
8.0 KiB
Smali
305 lines
8.0 KiB
Smali
.class public final Lcom/vungle/ads/NativeAdOptionsView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vungle/ads/NativeAdOptionsView$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final AD_OPTIONS_VIEW_SIZE:I = 0x14
|
|
|
|
.field public static final Companion:Lcom/vungle/ads/NativeAdOptionsView$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field private icon:Landroid/widget/ImageView;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/vungle/ads/NativeAdOptionsView$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/vungle/ads/NativeAdOptionsView$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/vungle/ads/NativeAdOptionsView;->Companion:Lcom/vungle/ads/NativeAdOptionsView$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 15
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 16
|
|
invoke-direct {p0, p1}, Lcom/vungle/ads/NativeAdOptionsView;->initView(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 20
|
|
invoke-direct {p0, p1}, Lcom/vungle/ads/NativeAdOptionsView;->initView(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 23
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 28
|
|
invoke-direct {p0, p1}, Lcom/vungle/ads/NativeAdOptionsView;->initView(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final initView(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
.line 32
|
|
new-instance v0, Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/vungle/ads/NativeAdOptionsView;->icon:Landroid/widget/ImageView;
|
|
|
|
.line 33
|
|
sget-object v0, Lcom/vungle/ads/internal/util/ViewUtility;->INSTANCE:Lcom/vungle/ads/internal/util/ViewUtility;
|
|
|
|
const/16 v1, 0x14
|
|
|
|
invoke-virtual {v0, p1, v1}, Lcom/vungle/ads/internal/util/ViewUtility;->dpToPixels(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
.line 34
|
|
new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, p1, p1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
iget-object p1, p0, Lcom/vungle/ads/NativeAdOptionsView;->icon:Landroid/widget/ImageView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "icon"
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 35
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
move-object p1, v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object p1, p0, Lcom/vungle/ads/NativeAdOptionsView;->icon:Landroid/widget/ImageView;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
.line 36
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v1, p1
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final destroy()V
|
|
.locals 2
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->removeAllViews()V
|
|
|
|
.line 61
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 62
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "null cannot be cast to non-null type android.view.ViewGroup"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getPrivacyIcon$vungle_ads_release()Landroid/widget/ImageView;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/vungle/ads/NativeAdOptionsView;->icon:Landroid/widget/ImageView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "icon"
|
|
|
|
.line 39
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final renderTo(Landroid/widget/FrameLayout;I)V
|
|
.locals 3
|
|
.param p2 # I
|
|
.annotation runtime Lcom/vungle/ads/NativeAd$AdOptionsPosition;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "rootView"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 42
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 43
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "null cannot be cast to non-null type android.view.ViewGroup"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
.line 45
|
|
:cond_0
|
|
invoke-virtual {p1, p0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
.line 46
|
|
sget-object v0, Lcom/vungle/ads/internal/util/ViewUtility;->INSTANCE:Lcom/vungle/ads/internal/util/ViewUtility;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "context"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v2, 0x14
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/vungle/ads/internal/util/ViewUtility;->dpToPixels(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
.line 47
|
|
new-instance v1, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
invoke-direct {v1, v0, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const v2, 0x800035
|
|
|
|
if-eq p2, v0, :cond_3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p2, v0, :cond_2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p2, v0, :cond_1
|
|
|
|
iput v2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const p2, 0x800055
|
|
|
|
iput p2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const p2, 0x800053
|
|
|
|
iput p2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iput v2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const p2, 0x800033
|
|
|
|
iput p2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
.line 55
|
|
:goto_0
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/view/View;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|