Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158
以下内容为反编译后的 PluginEntry.java 源代码,内容仅作参考
package com.github.shadowsocks.fmt;
import androidx.annotation.StringRes;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.free.vpn.proxy.hotspot.jf2;
import com.free.vpn.proxy.hotspot.zs4;
import com.github.shadowsocks.core.R;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0012\b\u0086\u0001\u0018\u0000 \u00182\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0002\u0018\u0019B+\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0001\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0007\u001a\u00020\b¢\u0006\u0002\u0010\tR\u0011\u0010\u0007\u001a\u00020\b¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u000fj\u0002\b\u0011j\u0002\b\u0012j\u0002\b\u0013j\u0002\b\u0014j\u0002\b\u0015j\u0002\b\u0016j\u0002\b\u0017¨\u0006\u001a"}, d2 = {"Lcom/github/shadowsocks/fmt/PluginEntry;", "", "pluginId", "", "nameId", "", "packageName", "downloadSource", "Lcom/github/shadowsocks/fmt/PluginEntry$DownloadSource;", "(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;Lcom/github/shadowsocks/fmt/PluginEntry$DownloadSource;)V", "getDownloadSource", "()Lcom/github/shadowsocks/fmt/PluginEntry$DownloadSource;", "getNameId", "()I", "getPackageName", "()Ljava/lang/String;", "getPluginId", "TrojanGo", "NaiveProxy", "PingTunnel", "RelayBaton", "Brook", "Hysteria", "ObfsLocal", "Companion", "DownloadSource", "shadowsocks_release"}, k = 1, mv = {1, 8, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_VERTICAL_CHAINSTYLE)
public final class PluginEntry {
public static final PluginEntry Brook;
public static final PluginEntry Hysteria;
public static final PluginEntry NaiveProxy;
public static final PluginEntry ObfsLocal;
public static final PluginEntry PingTunnel;
public static final PluginEntry RelayBaton;
private final DownloadSource downloadSource;
private final int nameId;
private final String packageName;
private final String pluginId;
public static final PluginEntry TrojanGo = new PluginEntry("TrojanGo", 0, "trojan-go-plugin", R.string.action_trojan_go, "com.github.shadowsocks.plugin.trojan_go", null, 8, null);
private static final PluginEntry[] $VALUES = $values();
public static final Companion INSTANCE = new Companion(null);
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002¨\u0006\b"}, d2 = {"com/github/shadowsocks/fmt/PluginEntry$Companion", "", "", "name", "Lcom/github/shadowsocks/fmt/PluginEntry;", "find", "<init>", "()V", "shadowsocks_release"}, k = 1, mv = {1, 8, 0})
public final class Companion {
private Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final PluginEntry find(String name) {
zs4.o(name, "name");
for (PluginEntry pluginEntry : PluginEntry.values()) {
if (zs4.h(name, pluginEntry.getPluginId())) {
return pluginEntry;
}
}
return null;
}
}
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\r\b\u0086\b\u0018\u00002\u00020\u0001B%\u0012\b\b\u0002\u0010\u0007\u001a\u00020\u0002\u0012\b\b\u0002\u0010\b\u001a\u00020\u0002\u0012\b\b\u0002\u0010\t\u001a\u00020\u0005¢\u0006\u0004\b\u0018\u0010\u0019J\t\u0010\u0003\u001a\u00020\u0002HÆ\u0003J\t\u0010\u0004\u001a\u00020\u0002HÆ\u0003J\t\u0010\u0006\u001a\u00020\u0005HÆ\u0003J'\u0010\u000b\u001a\u00020\n2\b\b\u0002\u0010\u0007\u001a\u00020\u00022\b\b\u0002\u0010\b\u001a\u00020\u00022\b\b\u0002\u0010\t\u001a\u00020\u0005HÆ\u0001J\t\u0010\f\u001a\u00020\u0005HÖ\u0001J\t\u0010\u000e\u001a\u00020\rHÖ\u0001J\u0013\u0010\u0010\u001a\u00020\u00022\b\u0010\u000f\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\u0017\u0010\u0007\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0007\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u0017\u0010\b\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\b\u0010\u0011\u001a\u0004\b\u0014\u0010\u0013R\u0017\u0010\t\u001a\u00020\u00058\u0006¢\u0006\f\n\u0004\b\t\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017¨\u0006\u001a"}, d2 = {"com/github/shadowsocks/fmt/PluginEntry$DownloadSource", "", "", "component1", "component2", "", "component3", "playStore", "fdroid", "downloadLink", "Lcom/github/shadowsocks/fmt/PluginEntry$DownloadSource;", "copy", "toString", "", "hashCode", "other", "equals", "Z", "getPlayStore", "()Z", "getFdroid", "Ljava/lang/String;", "getDownloadLink", "()Ljava/lang/String;", "<init>", "(ZZLjava/lang/String;)V", "shadowsocks_release"}, k = 1, mv = {1, 8, 0})
public final class DownloadSource {
private final String downloadLink;
private final boolean fdroid;
private final boolean playStore;
public DownloadSource() {
this(false, false, null, 7, null);
}
public static DownloadSource copy$default(DownloadSource downloadSource, boolean z, boolean z2, String str, int i, Object obj) {
if ((i & 1) != 0) {
z = downloadSource.playStore;
}
if ((i & 2) != 0) {
z2 = downloadSource.fdroid;
}
if ((i & 4) != 0) {
str = downloadSource.downloadLink;
}
return downloadSource.copy(z, z2, str);
}
public final boolean getPlayStore() {
return this.playStore;
}
public final boolean getFdroid() {
return this.fdroid;
}
public final String getDownloadLink() {
return this.downloadLink;
}
public final DownloadSource copy(boolean playStore, boolean fdroid, String downloadLink) {
zs4.o(downloadLink, "downloadLink");
return new DownloadSource(playStore, fdroid, downloadLink);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DownloadSource)) {
return false;
}
DownloadSource downloadSource = (DownloadSource) other;
return this.playStore == downloadSource.playStore && this.fdroid == downloadSource.fdroid && zs4.h(this.downloadLink, downloadSource.downloadLink);
}
public final String getDownloadLink() {
return this.downloadLink;
}
public final boolean getFdroid() {
return this.fdroid;
}
public final boolean getPlayStore() {
return this.playStore;
}
public int hashCode() {
boolean z = this.playStore;
?? r0 = z;
if (z) {
r0 = 1;
}
int i = r0 * 31;
boolean z2 = this.fdroid;
return this.downloadLink.hashCode() + ((i + (z2 ? 1 : z2 ? 1 : 0)) * 31);
}
public String toString() {
boolean z = this.playStore;
boolean z2 = this.fdroid;
String str = this.downloadLink;
StringBuilder sb = new StringBuilder("DownloadSource(playStore=");
sb.append(z);
sb.append(", fdroid=");
sb.append(z2);
sb.append(", downloadLink=");
return jf2.r(sb, str, ")");
}
public DownloadSource(boolean z, boolean z2, String str) {
zs4.o(str, "downloadLink");
this.playStore = z;
this.fdroid = z2;
this.downloadLink = str;
}
public DownloadSource(boolean z, boolean z2, String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? true : z, (i & 2) != 0 ? true : z2, (i & 4) != 0 ? "https://sagernet.org/download/" : str);
}
}
private static final PluginEntry[] $values() {
return new PluginEntry[]{TrojanGo, NaiveProxy, PingTunnel, RelayBaton, Brook, Hysteria, ObfsLocal};
}
static {
DownloadSource downloadSource = null;
int i = 8;
DefaultConstructorMarker defaultConstructorMarker = null;
NaiveProxy = new PluginEntry("NaiveProxy", 1, "naiveproxy", R.string.action_naive, "com.github.shadowsocks.plugin.naive", downloadSource, i, defaultConstructorMarker);
DownloadSource downloadSource2 = null;
int i2 = 8;
DefaultConstructorMarker defaultConstructorMarker2 = null;
PingTunnel = new PluginEntry("PingTunnel", 2, "pingtunnel-plugin", R.string.action_ping_tunnel, "com.github.shadowsocks.plugin.pingtunnel", downloadSource2, i2, defaultConstructorMarker2);
RelayBaton = new PluginEntry("RelayBaton", 3, "relaybaton-plugin", R.string.action_relay_baton, "com.github.shadowsocks.plugin.relaybaton", downloadSource, i, defaultConstructorMarker);
Brook = new PluginEntry("Brook", 4, "brook-plugin", R.string.action_brook, "com.github.shadowsocks.plugin.brook", downloadSource2, i2, defaultConstructorMarker2);
boolean z = false;
boolean z2 = false;
DefaultConstructorMarker defaultConstructorMarker3 = null;
Hysteria = new PluginEntry("Hysteria", 5, "hysteria-plugin", R.string.action_hysteria, "com.github.shadowsocks.plugin.hysteria", new DownloadSource(z, z2, null, 5, defaultConstructorMarker3));
ObfsLocal = new PluginEntry("ObfsLocal", 6, "shadowsocks-obfs-local", R.string.shadowsocks_plugin_simple_obfs, "com.github.shadowsocks.plugin.obfs_local", new DownloadSource(z, z2, "https://github.com/shadowsocks/simple-obfs-android/releases", 1, defaultConstructorMarker3));
}
private PluginEntry(String str, @StringRes int i, String str2, int i2, String str3, DownloadSource downloadSource) {
this.pluginId = str2;
this.nameId = i2;
this.packageName = str3;
this.downloadSource = downloadSource;
}
public static PluginEntry valueOf(String str) {
return (PluginEntry) Enum.valueOf(PluginEntry.class, str);
}
public static PluginEntry[] values() {
return (PluginEntry[]) $VALUES.clone();
}
public final DownloadSource getDownloadSource() {
return this.downloadSource;
}
public final int getNameId() {
return this.nameId;
}
public final String getPackageName() {
return this.packageName;
}
public final String getPluginId() {
return this.pluginId;
}
public PluginEntry(String str, int i, String str2, int i2, String str3, DownloadSource downloadSource, int i3, DefaultConstructorMarker defaultConstructorMarker) {
this(str, i, str2, i2, str3, (i3 & 8) != 0 ? new DownloadSource(false, false, null, 7, null) : downloadSource);
}
}