mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
Add geo assets provider for Iran
This commit is contained in:
parent
95d3a31dcc
commit
1d245aba4d
@ -259,12 +259,14 @@ class AssetsActivity : ThemedActivity() {
|
||||
} else {
|
||||
repo = "SagerNet/sing-geosite"
|
||||
}
|
||||
} else {
|
||||
} else if (DataStore.rulesProvider == 1) {
|
||||
if (file.name == assetNames[0]) {
|
||||
repo = "soffchen/sing-geoip"
|
||||
} else {
|
||||
repo = "soffchen/sing-geosite"
|
||||
}
|
||||
} else {
|
||||
repo = "Chocolate4U/Iran-sing-box-rules"
|
||||
}
|
||||
|
||||
val client = Libcore.newHttpClient().apply {
|
||||
|
||||
@ -358,6 +358,7 @@
|
||||
<string-array name="rules_dat_provider">
|
||||
<item>@string/route_rules_official</item>
|
||||
<item>Loyalsoldier (soffchen/sing-geosite)</item>
|
||||
<item>Chocolate4U/Iran-sing-box-rules</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="balancer_type">
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
<moe.matsuri.nb4a.ui.SimpleMenuPreference
|
||||
app:defaultValue="0"
|
||||
app:entries="@array/rules_dat_provider"
|
||||
app:entryValues="@array/int_array_2"
|
||||
app:entryValues="@array/int_array_3"
|
||||
app:icon="@drawable/ic_baseline_rule_folder_24"
|
||||
app:key="rulesProvider"
|
||||
app:title="@string/route_rules_provider"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user