APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Module_home
版本号:1.0.1
包名称:com.cs.plainbook

MD5 校验值:bf016c0e37d9835314ac80254e378e59

反编译源代码说明

MyApplication.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.library.base;

import android.content.Context;
import android.os.Vibrator;
import androidx.multidex.MultiDex;
import androidx.multidex.MultiDexApplication;
import com.alibaba.android.arouter.launcher.ARouter;
import com.google.android.gms.ads.MobileAds;
import com.google.android.gms.ads.initialization.InitializationStatus;
import com.google.android.gms.ads.initialization.OnInitializationCompleteListener;
import com.library.base.bean.LoginInfo;
import com.library.base.googleads.AppOpenManager;
import com.library.base.utils.SPHelper;
import com.library.base.utils.UIUtils;

public class MyApplication extends MultiDexApplication {
    public static String STORE_URL = "https://play.google.com/store/apps/details?id=com.cs.plainbook";
    private static AppOpenManager appOpenManager = null;
    private static MyApplication instance = null;
    public static boolean isLogin = false;
    private static LoginInfo loginInfo;
    public Vibrator mVibrator;
    private int type = 0;

    public int getType() {
        return this.type;
    }

    public void setType(int i) {
        this.type = i;
    }

    public static AppOpenManager getAppOpenManager() {
        return appOpenManager;
    }

    public static LoginInfo getLoginInfo() {
        if (loginInfo == null) {
            loginInfo = SPHelper.getUserInfo(getInstance());
        }
        return loginInfo;
    }

    public static void setLoginInfo(LoginInfo loginInfo2) {
        loginInfo = loginInfo2;
    }

    public static MyApplication getApp() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        initRouter(this);
        this.mVibrator = (Vibrator) getApplicationContext().getSystemService("vibrator");
        initAD();
    }

    private void initAD() {
        MobileAds.initialize(this, new OnInitializationCompleteListener() {
            @Override
            public void onInitializationComplete(InitializationStatus initializationStatus) {
            }
        });
        appOpenManager = new AppOpenManager(this);
    }

    @Override
    public void attachBaseContext(Context context) {
        super.attachBaseContext(context);
        MultiDex.install(this);
    }

    public static Context getInstance() {
        return instance;
    }

    private void initRouter(MyApplication myApplication) {
        if (UIUtils.isApkInDebug(instance)) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(myApplication);
    }
}