c8-20251031_002439|052_show_api_helper3
本文最后由方少年更新于2025 年 11 月 10 日,已超过20天没有更新。如果文章内容或图片资源失效,请留言反馈,将会及时处理,谢谢!
[source] c8-20251031_002439|052_show_api_helper3.txt
TIME: 2025-10-31 00:42:34
CMD : Get-Content 'D:\work\challenge8_apktool\smali\com\example\seven\ApiHelper3.smali'
---- OUTPUT ----
.class public Lcom/example/seven/ApiHelper3;
.super Ljava/lang/Object;
.source "ApiHelper3.java"
# static fields
.field private static INSTANCE:Lretrofit2/Retrofit;
# direct methods
.method static constructor
.locals 1
const-string v0, "native-lib"
.line 11
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
return-void
.end method
.method public constructor
.locals 0
.line 6
invoke-direct {p0}, Ljava/lang/Object;->
return-void
.end method
.method public static native baseUrlFromJNI3()Ljava/lang/String;
.end method
.method public static getInstance()Lretrofit2/Retrofit;
.locals 2
.line 15
sget-object v0, Lcom/example/seven/ApiHelper3;->INSTANCE:Lretrofit2/Retrofit;
if-nez v0, :cond_0
.line 16
new-instance v0, Lretrofit2/Retrofit$Builder;
invoke-direct {v0}, Lretrofit2/Retrofit$Builder;->
invoke-static {}, Lcom/example/seven/ApiHelper3;->baseUrlFromJNI3()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lretrofit2/Retrofit$Builder;->baseUrl(Ljava/lang/String;)Lretrofit2/Retrofit$Builder;
move-result-object v0
.line 17
invoke-static {}, Lretrofit2/converter/gson/GsonConverterFactory;->create()Lretrofit2/converter/gson/GsonConverterFactory;
move-result-object v1
invoke-virtual {v0, v1}, Lretrofit2/Retrofit$Builder;->addConverterFactory(Lretrofit2/Converter$Factory;)Lretrofit2/Retrofit$Builder;
move-result-object v0
.line 18
invoke-virtual {v0}, Lretrofit2/Retrofit$Builder;->build()Lretrofit2/Retrofit;
move-result-object v0
sput-object v0, Lcom/example/seven/ApiHelper3;->INSTANCE:Lretrofit2/Retrofit;
.line 20
:cond_0
sget-object v0, Lcom/example/seven/ApiHelper3;->INSTANCE:Lretrofit2/Retrofit;
return-object v0
.end method
---- END (Status=True) ----
文章标题:c8-20251031_002439|052_show_api_helper3
文章链接:https://www.fangshaonian.cn/archives/58/
最后编辑:2025 年 11 月 10 日 18:23 By 方少年
许可协议: 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)