Commit Graph
56 Commits
Author SHA1 Message Date
LoveSy ffdb5cb511 Migrate DenyList screen to Jetpack Compose with miuix
Replace the DenyList screen's data-binding XML layouts and RecyclerView
system with a Compose UI using LazyColumn, Card, Checkbox, and Switch.

DenyListViewModel now uses StateFlow with combine for reactive filtering
instead of the custom filterList/ObservableHost pattern. App and process
state is tracked via Compose mutableStateOf for efficient recomposition.

Remove DenyListRvItem.kt and all associated XML layouts (fragment_deny_md2,
item_hide_md2, item_hide_process_md2).

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy 47f1a33585 Move Settings to bottom navigation bar
Add Settings as a fifth tab in the bottom nav bar instead of a toolbar
icon in the Home screen. Add a global nav action for the settings
destination and remove the old Home-to-Settings fragment action.

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy 20d6d70ff6 Fix Settings crash when update channel is default (-1)
Config.Value.DEFAULT_CHANNEL is -1, which is out of bounds for the
SuperDropdown items list. Coerce to valid range on initialization.

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy 397a906905 Migrate Settings screen to Jetpack Compose with miuix
Replace the Settings screen's data-binding XML layouts and RecyclerView
item system with a declarative Compose UI using miuix components:
SuperSwitch for toggles, SuperDropdown for selectors, SuperArrow for
navigation items, and SuperDialog for text input dialogs.

SettingsViewModel now exposes DenyList state via StateFlow and provides
action methods instead of the old Handler/BaseSettingsItem pattern.

Remove BaseSettingsItem.kt, SettingsItems.kt, and all associated XML
layouts (fragment_settings_md2, item_settings, item_settings_section,
dialog_settings_app_name, dialog_settings_download_path,
dialog_settings_update_channel).

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy a9ade79617 Fix HomeFragment to observe ViewModel events
Implement ViewModelHolder in HomeFragment so that ViewEvents
(navigation, permissions, snackbar) are properly dispatched.

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy 70a0dafb21 Migrate Home screen to Jetpack Compose with miuix
Replace the Home screen's data-binding XML layouts with a Compose UI
using miuix components. HomeViewModel now uses StateFlow instead of
@Bindable/ObservableHost for UI state. HomeFragment hosts the new
HomeScreen composable via ComposeView.

Remove old XML layouts (fragment_home_md2, include_home_magisk,
include_home_manager, item_developer, item_icon_link) and the
DeveloperItem RvItem class that are no longer needed.

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy e6c4268694 Add MagiskTheme composable wrapping MiuixTheme
Create MagiskTheme that wraps MiuixTheme with light/dark color scheme
based on the existing Config.darkTheme preference setting.

Made-with: Cursor
2026-03-16 02:48:20 -07:00
LoveSy 9107bb6af3 Add Compose and miuix dependencies
Add Jetpack Compose BOM, activity-compose, lifecycle-runtime-compose,
lifecycle-viewmodel-compose, and miuix library dependencies.
Enable the Compose compiler plugin alongside existing data binding.

Made-with: Cursor
2026-03-16 02:48:16 -07:00
topjohnwu 925ed577e7 Move plugins to its own section in version catalog 2026-03-16 02:46:57 -07:00
topjohnwu 4dd6e3c252 Minor changes for app 2026-02-05 00:56:10 -08:00
topjohnwu 18c1347bd3 Update to AGP 9.0 2026-01-19 23:29:02 +08:00
Wang Han 470acc93c9 Remove clickable attribute from item_module_md2.xml 2025-10-19 14:02:02 -07:00
Wang Han 0edb80b10f Set module card as non clickable
It's so easy to mis-click card.
2025-10-19 14:02:02 -07:00
Wang Han ca2e40593f Make fetchUpdate safe 2025-10-02 04:03:44 -07:00
Thonsi 1b0ddec66e Remove unused code 2025-09-29 02:33:02 -07:00
topjohnwu 959430e030 Fix systemless hosts installation 2025-08-05 09:44:51 -07:00
topjohnwu d4b83b6a44 Fix app compilation 2025-07-03 02:42:08 -07:00
vvb2060 e5d36d1d24 app: support config restrict policy 2025-07-03 02:42:08 -07:00
topjohnwu 04008949b8 Deprecate canary channel 2025-06-20 00:22:17 -07:00
topjohnwu 4c89c7e2b3 Directly use MagiskJson 2025-05-19 10:40:58 -07:00
topjohnwu adbea7e313 Improve update check code 2025-05-19 10:23:15 -07:00
vvb2060 76962f965e app: use github api to check updates 2025-05-19 10:23:15 -07:00
topjohnwu 5a762f0a8e Move all gradle files into folder app
Decouple java and native projects
2025-05-13 17:04:41 -07:00
Steven Xu 83e66767ff refactor: use empty navOptions 2025-04-02 09:13:32 -07:00
Steven Xu 7dc010749b feat: remove animation settings button transition 2025-04-02 09:13:32 -07:00
Steven Xu 8e8d013b1b feat: remove log overscroll 2025-04-02 09:13:32 -07:00
Steven Xu bba0373808 feat: remove navigation transition when clicking buttons on the bottom bar 2025-04-02 09:13:32 -07:00
Wang Han 46980819c0 Expose safe mode option on 28+ 2025-01-31 12:20:02 +08:00
Wang Han 53e401fa2d Perform authentication if needed for AutomaticResponse setting 2024-12-27 16:00:02 -08:00
topjohnwu 51cf196bf7 Always use root to hide/restore app 2024-12-18 17:22:31 -08:00
topjohnwu 082330808f Fix building APK 2024-11-19 20:25:10 -08:00
topjohnwu 024da05888 Move several stuff into buildSrc 2024-11-09 20:08:12 -08:00
vvb2060 613f2d31c5 app: auto close action fragment only when focus lost 2024-11-04 11:11:41 -08:00
topjohnwu f4502f8be8 Add our own API desugaring
Fix #8452
2024-10-29 12:13:22 -07:00
vvb2060 a5cad532ff ui: fix lock screen orientation 2024-10-12 01:16:24 -07:00
topjohnwu e1b847fbc5 Find boot image with MagiskInstaller
Fix #8211
2024-10-07 16:52:35 -07:00
LoveSy 45d91c9658 Upgrade Gradle 2024-09-15 00:14:15 -07:00
topjohnwu abaff72304 Enable core library desugaring
Fix #8343
2024-09-09 01:59:32 -07:00
LoveSy 60894e458f Automatically close action fragment when action exits successfully 2024-09-08 01:12:30 -07:00
LoveSy fbebb6ac10 Add action.sh for user to manually trigger modules' functionality from app 2024-09-08 01:12:30 -07:00
vvb2060 dcd3bc58a3 app: target api 35 2024-09-05 21:50:46 -07:00
topjohnwu 5604074eba Fix module auto install
Fix #8208
2024-08-20 01:09:25 -07:00
topjohnwu 5f27a62221 Use gradle version catalog 2024-08-18 13:12:23 -07:00
topjohnwu 021ae891a9 Update dependencies 2024-07-24 16:53:15 -07:00
LoveSy 93bcf2cd25 Correct debug symbol configuration 2024-07-20 20:29:58 -07:00
topjohnwu ddae568741 Move SplashActivity logic into core module 2024-07-11 22:08:01 -07:00
topjohnwu fcb7ebb090 Cleanup resources 2024-07-11 17:58:52 -07:00
topjohnwu 881d3b5221 App migration minor refactoring 2024-07-11 16:28:56 -07:00
topjohnwu fe9ec3bc6d Move app initialization routine into core module 2024-07-11 16:10:49 -07:00
topjohnwu 480198dcd0 Improve package migration 2024-07-11 15:50:40 -07:00