Files
rr3-apk/smali_classes4/com/vungle/ads/VungleAdSize$Companion.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

298 lines
6.6 KiB
Smali

.class public final Lcom/vungle/ads/VungleAdSize$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vungle/ads/VungleAdSize;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 16
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Lcom/vungle/ads/VungleAdSize$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final getAdSizeWithWidth(Landroid/content/Context;I)Lcom/vungle/ads/VungleAdSize;
.locals 2
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 38
sget-object v0, Lcom/vungle/ads/internal/util/ViewUtility;->INSTANCE:Lcom/vungle/ads/internal/util/ViewUtility;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Lcom/vungle/ads/internal/util/ViewUtility;->getDeviceWidthAndHeightWithOrientation(Landroid/content/Context;I)Lkotlin/Pair;
move-result-object p1
invoke-virtual {p1}, Lkotlin/Pair;->component2()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
move-result p1
if-gez p2, :cond_0
move p2, v1
.line 43
:cond_0
new-instance v0, Lcom/vungle/ads/VungleAdSize;
invoke-direct {v0, p2, p1}, Lcom/vungle/ads/VungleAdSize;-><init>(II)V
.line 44
invoke-virtual {v0}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result p1
const/4 p2, 0x1
if-nez p1, :cond_1
.line 45
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveWidth$vungle_ads_release(Z)V
.line 47
:cond_1
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveHeight$vungle_ads_release(Z)V
return-object v0
.end method
.method public final getAdSizeWithWidthAndHeight(II)Lcom/vungle/ads/VungleAdSize;
.locals 1
const/4 v0, 0x0
if-gez p1, :cond_0
move p1, v0
:cond_0
if-gez p2, :cond_1
move p2, v0
.line 77
:cond_1
new-instance v0, Lcom/vungle/ads/VungleAdSize;
invoke-direct {v0, p1, p2}, Lcom/vungle/ads/VungleAdSize;-><init>(II)V
.line 78
invoke-virtual {v0}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result p1
const/4 p2, 0x1
if-nez p1, :cond_2
.line 79
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveWidth$vungle_ads_release(Z)V
.line 81
:cond_2
invoke-virtual {v0}, Lcom/vungle/ads/VungleAdSize;->getHeight()I
move-result p1
if-nez p1, :cond_3
.line 82
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveHeight$vungle_ads_release(Z)V
:cond_3
return-object v0
.end method
.method public final getAdSizeWithWidthAndMaxHeight(II)Lcom/vungle/ads/VungleAdSize;
.locals 1
const/4 v0, 0x0
if-gez p1, :cond_0
move p1, v0
:cond_0
if-gez p2, :cond_1
move p2, v0
.line 60
:cond_1
new-instance v0, Lcom/vungle/ads/VungleAdSize;
invoke-direct {v0, p1, p2}, Lcom/vungle/ads/VungleAdSize;-><init>(II)V
.line 61
invoke-virtual {v0}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result p1
const/4 p2, 0x1
if-nez p1, :cond_2
.line 62
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveWidth$vungle_ads_release(Z)V
.line 64
:cond_2
invoke-virtual {v0, p2}, Lcom/vungle/ads/VungleAdSize;->setAdaptiveHeight$vungle_ads_release(Z)V
return-object v0
.end method
.method public final getValidAdSizeFromSize(IILjava/lang/String;)Lcom/vungle/ads/VungleAdSize;
.locals 1
const-string v0, "placementId"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 92
sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager;
invoke-virtual {v0, p3}, Lcom/vungle/ads/internal/ConfigManager;->getPlacement(Ljava/lang/String;)Lcom/vungle/ads/internal/model/Placement;
move-result-object p3
if-eqz p3, :cond_1
invoke-virtual {p3}, Lcom/vungle/ads/internal/model/Placement;->isInline()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 p3, 0x0
:goto_0
if-eqz p3, :cond_1
.line 93
sget-object p3, Lcom/vungle/ads/VungleAdSize;->Companion:Lcom/vungle/ads/VungleAdSize$Companion;
invoke-virtual {p3, p1, p2}, Lcom/vungle/ads/VungleAdSize$Companion;->getAdSizeWithWidthAndHeight(II)Lcom/vungle/ads/VungleAdSize;
move-result-object p1
return-object p1
.line 96
:cond_1
sget-object p3, Lcom/vungle/ads/VungleAdSize;->MREC:Lcom/vungle/ads/VungleAdSize;
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result v0
if-lt p1, v0, :cond_2
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getHeight()I
move-result v0
if-lt p2, v0, :cond_2
return-object p3
.line 98
:cond_2
sget-object p3, Lcom/vungle/ads/VungleAdSize;->BANNER_LEADERBOARD:Lcom/vungle/ads/VungleAdSize;
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result v0
if-lt p1, v0, :cond_3
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getHeight()I
move-result v0
if-lt p2, v0, :cond_3
return-object p3
.line 100
:cond_3
sget-object p3, Lcom/vungle/ads/VungleAdSize;->BANNER:Lcom/vungle/ads/VungleAdSize;
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result v0
if-lt p1, v0, :cond_4
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getHeight()I
move-result v0
if-lt p2, v0, :cond_4
return-object p3
.line 102
:cond_4
sget-object p3, Lcom/vungle/ads/VungleAdSize;->BANNER_SHORT:Lcom/vungle/ads/VungleAdSize;
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getWidth()I
move-result v0
if-lt p1, v0, :cond_5
invoke-virtual {p3}, Lcom/vungle/ads/VungleAdSize;->getHeight()I
move-result v0
if-lt p2, v0, :cond_5
return-object p3
.line 106
:cond_5
invoke-virtual {p0, p1, p2}, Lcom/vungle/ads/VungleAdSize$Companion;->getAdSizeWithWidthAndHeight(II)Lcom/vungle/ads/VungleAdSize;
move-result-object p1
return-object p1
.end method