Antizapret (#548)

* Refactor rule provider selection

* Add L11R/antizapret-sing-box-geo rules provider

---------

Co-authored-by: purofle <purofle@gmail.com>
This commit is contained in:
Artur Khusainov 2024-02-08 07:26:26 +03:00 committed by GitHub
parent 89ef91cebe
commit 04f8dd4ba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -261,6 +261,9 @@ class AssetsActivity : ThemedActivity() {
RuleAssetsProvider( RuleAssetsProvider(
"Chocolate4U/Iran-sing-box-rules" "Chocolate4U/Iran-sing-box-rules"
), ),
RuleAssetsProvider(
"L11R/antizapret-sing-box-geo"
),
) )
suspend fun updateAsset(file: File, versionFile: File, localVersion: String) { suspend fun updateAsset(file: File, versionFile: File, localVersion: String) {

View File

@ -364,6 +364,7 @@
<item>@string/route_rules_official</item> <item>@string/route_rules_official</item>
<item>Loyalsoldier (soffchen/sing-geosite)</item> <item>Loyalsoldier (soffchen/sing-geosite)</item>
<item>Chocolate4U/Iran-sing-box-rules</item> <item>Chocolate4U/Iran-sing-box-rules</item>
<item>L11R/Antizapret-sing-box-geo</item>
</string-array> </string-array>
<string-array name="balancer_type"> <string-array name="balancer_type">

View File

@ -127,7 +127,7 @@
<moe.matsuri.nb4a.ui.SimpleMenuPreference <moe.matsuri.nb4a.ui.SimpleMenuPreference
app:defaultValue="0" app:defaultValue="0"
app:entries="@array/rules_dat_provider" app:entries="@array/rules_dat_provider"
app:entryValues="@array/int_array_3" app:entryValues="@array/int_array_4"
app:icon="@drawable/ic_baseline_rule_folder_24" app:icon="@drawable/ic_baseline_rule_folder_24"
app:key="rulesProvider" app:key="rulesProvider"
app:title="@string/route_rules_provider" app:title="@string/route_rules_provider"