package jadx.core.utils.android;

import jadx.api.JadxDecompiler;
import jadx.api.JavaClass;

public class ApplicationParams {

	private final String applicationLabel;
	private final Integer minSdkVersion;
	private final Integer targetSdkVersion;
	private final Integer compileSdkVersion;
	private final Integer versionCode;
	private final String versionName;
	private final String mainActivity;
	private final String application;

	public ApplicationParams(String applicationLabel, Integer minSdkVersion, Integer targetSdkVersion, Integer compileSdkVersion,
			Integer versionCode, String versionName, String mainActivity, String application) {
		this.applicationLabel = applicationLabel;
		this.minSdkVersion = minSdkVersion;
		this.targetSdkVersion = targetSdkVersion;
		this.compileSdkVersion = compileSdkVersion;
		this.versionCode = versionCode;
		this.versionName = versionName;
		this.mainActivity = mainActivity;
		this.application = application;
	}

	public String getApplicationName() {
		return applicationLabel;
	}

	public Integer getMinSdkVersion() {
		return minSdkVersion;
	}

	public Integer getTargetSdkVersion() {
		return targetSdkVersion;
	}

	public Integer getCompileSdkVersion() {
		return compileSdkVersion;
	}

	public Integer getVersionCode() {
		return versionCode;
	}

	public String getVersionName() {
		return versionName;
	}

	public String getMainActivity() {
		return mainActivity;
	}

	public JavaClass getMainActivityJavaClass(JadxDecompiler decompiler) {
		return decompiler.searchJavaClassByAliasFullName(mainActivity);
	}

	public String getApplication() {
		return application;
	}

	public JavaClass getApplicationJavaClass(JadxDecompiler decompiler) {
		return decompiler.searchJavaClassByAliasFullName(application);
	}
}
