@@ -72,52 +72,15 @@ fun ModuleSettingsScreen() {
72
72
modifier = Modifier .padding(bottom = 16 .dp)
73
73
)
74
74
75
- // 小标题 + 分界线
76
- SectionTitle (" Fake Location" )
77
75
78
- // 文本 + 切换键
79
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_lerist_fakelocation__vip" )
80
- SettingItemWithSwitch (" 去除APP黑名单" , " 如上所述" , " com_lerist_fakelocation__black_app" )
81
- SettingItemWithSwitch (" 去除服务器验证" , " 防止定位突然关闭" , " com_lerist_fakelocation__verify" )
82
-
83
- SectionTitle (" 彩云天气" )
84
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_nowcasting_activity__isvip" )
85
-
86
- SectionTitle (" 滴滴清单" )
87
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," cn_ticktick_task__isvip" )
88
-
89
- SectionTitle (" 倒数日" )
90
- SettingItemWithSwitch (" 破解内购" , " 开启之后直接去购买会员,别付款直接返回" ," com_clover_daysmatter__pay" )
91
-
92
- SectionTitle (" ES文件管理器" )
93
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_estrongs_android_pop__isvip" )
94
-
95
- SectionTitle (" nfc tool" )
96
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_geektoy_nfctool__isvip" )
97
-
98
- SectionTitle (" 一木记帐" )
99
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_wangc_bill__isvip" )
100
-
101
- SectionTitle (" 365日历" )
102
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_when_coco__isvip" )
103
-
104
- SectionTitle (" 堆糖" )
105
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_duitang_main__isvip" )
106
-
107
- SectionTitle (" 番茄小说" )
108
- SettingItemWithSwitch (" 启用去广告" , " 仅去广告" ," com_dragon_read__isvip" )
109
-
110
- SectionTitle (" 一叶日历" )
111
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," me_mapleaf_calendar__isvip" )
112
-
113
- SectionTitle (" 钱迹" )
114
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_mutangtech_qianji__isvip" )
115
-
116
- SectionTitle (" 小熊录屏" )
117
- SettingItemWithSwitch (" 启用本地VIP" , " 仅本地生效" ," com_duapps_recorder__isvip" )
118
-
119
- SectionTitle (" 小黑屋" )
120
- SettingItemWithSwitch (" 启用激活码破解" , " 开启后去激活码随便输入一个支付宝订单号即可" ," web1n_stopapp__vip" ,)
76
+ // 使用 for 循环遍历 Map
77
+ Config ().settingsMap.forEach { (sectionTitle, settings) ->
78
+ SectionTitle (title = sectionTitle);
79
+ settings.forEach { setting ->
80
+ val (name, id, description) = setting
81
+ SettingItemWithSwitch (label = name, description = description, id = id)
82
+ }
83
+ }
121
84
}
122
85
}
123
86
0 commit comments