Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Nov 22, 2023
1 parent 5450b62 commit 3e224ae
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import android.widget.ScrollView;
import android.widget.TextView;

import androidx.annotation.RequiresApi;

import com.github.shadowsocks.plugin.PluginConfiguration;
import com.github.shadowsocks.plugin.PluginContract;
import com.github.shadowsocks.plugin.PluginList;
Expand Down Expand Up @@ -58,7 +56,6 @@
import kotlin.Unit;
import tw.nekomimi.nekogram.proxynext.ShadowsocksBean;
import tw.nekomimi.nekogram.proxynext.SingProxyManager;
import tw.nekomimi.nekogram.proxynext.VMessBean;
import tw.nekomimi.nekogram.ui.BottomBuilder;
import tw.nekomimi.nekogram.ui.PopupBuilder;
import tw.nekomimi.nekogram.utils.AlertUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ object ProxyConfig {
@JvmStatic
fun parseSingBoxConfig(url: String): SingProxyBean? {
try {
if (url.startsWith(VMESS_PROTOCOL) || url.startsWith(VMESS1_PROTOCOL)) {
return VMessBean().parseFromLink(url)
} else if (url.startsWith(SS_PROTOCOL)) {
if (url.startsWith(SS_PROTOCOL)) {
return ShadowsocksBean().parseFromLink(url)
} else if (url.startsWith(SSR_PROTOCOL)) {
return ShadowsocksRBean().parseFromLink(url)
} else if (url.startsWith(TROJAN_PROTOCOL)) {
return TrojanBean().parseFromLink(url)
}
return null
} catch (ex: Exception) {
Expand All @@ -38,9 +32,6 @@ object ProxyConfig {
try {
val boxConfig = when (outbound.opt("type")) {
"shadowsocks" -> ShadowsocksBean().parseFromStorage(outbound)
"shadowsocksr" -> ShadowsocksRBean().parseFromStorage(outbound)
"vmess" -> VMessBean().parseFromStorage(outbound)
"trojan" -> TrojanBean().parseFromStorage(outbound)
else -> null
}
return boxConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ data class ShadowsocksBean(
TODO("Not yet implemented")
}

override fun generateSingConfig(): JSONObject {
TODO("Not yet implemented")
}

override fun generateLink(): String {
TODO("Not yet implemented")
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ object ProxyUtil {
proxy["name"] as String
).toString())
}
else -> {
// ignored
}
}
}
}
Expand Down

0 comments on commit 3e224ae

Please sign in to comment.