🚀 OShin New CI Build!
feat(about): Add new referenced projects
This commit updates the Referenced Projects section in the About page.
New Projects Added:
- Oxygen-Customizer: by DHD2280 (GPL-3.0)
- Capsule: by Kyant0 (Apache-2.0)
🔗 查看本次提交
feat(about): Add new referenced projects
This commit updates the Referenced Projects section in the About page.
New Projects Added:
- Oxygen-Customizer: by DHD2280 (GPL-3.0)
- Capsule: by Kyant0 (Apache-2.0)
🔗 查看本次提交
GitHub
feat(about): Add new referenced projects · suqi8/OShin@07ac326
This commit updates the "Referenced Projects" section in the "About" page.
**New Projects Added:**
- **Oxygen-Customizer:** by DHD2280 (GPL-3.0)
- **Capsule:** ...
**New Projects Added:**
- **Oxygen-Customizer:** by DHD2280 (GPL-3.0)
- **Capsule:** ...
🚀 OShin New CI Build!
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCornerShape
This commit updates the Miuix KMP library to version and replaces all usages of with from the Miuix KMP library. Additionally, the Umeng Common SDK is updated to version .
Key Changes:
- Dependency Updates ():
- version changed from to .
- version changed from to .
- Shape Replacement:
- :
- replaced with for button and card shadows.
- :
- replaced with for the dropdown popup shape.
- :
- replaced with for the switch track clip shape.
- :
- Replaced with for card background and clipping.
- The in now uses with specifically for touch feedback compatibility.
- Updated press feedback logic in to use the new modifier from Miuix KMP utils, along with and . Removed manual pointer input handling for press and long-press, opting for .
- Minor Code Adjustments:
- : Added to the composable.
- :
- Reordered modifiers in : now comes before .
- Imports for and Miuix KMP utils related to old press feedback (, ) were removed, and new ones (, , , , ) were added.
These changes are primarily aimed at leveraging the updated Miuix KMP library components and improving UI consistency and touch feedback handling.
🔗 查看本次提交
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCornerShape
This commit updates the Miuix KMP library to version and replaces all usages of with from the Miuix KMP library. Additionally, the Umeng Common SDK is updated to version .
Key Changes:
- Dependency Updates ():
- version changed from to .
- version changed from to .
- Shape Replacement:
- :
- replaced with for button and card shadows.
- :
- replaced with for the dropdown popup shape.
- :
- replaced with for the switch track clip shape.
- :
- Replaced with for card background and clipping.
- The in now uses with specifically for touch feedback compatibility.
- Updated press feedback logic in to use the new modifier from Miuix KMP utils, along with and . Removed manual pointer input handling for press and long-press, opting for .
- Minor Code Adjustments:
- : Added to the composable.
- :
- Reordered modifiers in : now comes before .
- Imports for and Miuix KMP utils related to old press feedback (, ) were removed, and new ones (, , , , ) were added.
These changes are primarily aimed at leveraging the updated Miuix KMP library components and improving UI consistency and touch feedback handling.
🔗 查看本次提交
GitHub
Refactor(UI): Update Miuix KMP dependency and replace SmoothRoundedCo… · suqi8/OShin@b5a365b
…rnerShape
This commit updates the Miuix KMP library to version `0.5.1` and replaces all usages of `SmoothRoundedCornerShape` with `G2RoundedCornerShape` from the Miuix KMP library. Additionally, ...
This commit updates the Miuix KMP library to version `0.5.1` and replaces all usages of `SmoothRoundedCornerShape` with `G2RoundedCornerShape` from the Miuix KMP library. Additionally, ...
🍌2
🚀 OShin New CI Build!
Refactor(HardwareIndicator): Major overhaul for stability, performance, and UI consistency
This commit introduces a significant refactor of the Hardware Indicator feature for SystemUI. The changes focus on improving resource management, performance, code structure, and the user interface for configuring the indicators.
Key Changes in (Hook Logic):
- Resource Management & Lifecycle:
- Hooks and of the view.
- Resources (TextViews, Runnables, Listeners) for each indicator are now managed in a data class and stored in a map, keyed by the instance.
- function added to explicitly release all resources (remove callbacks, unregister listeners/receivers) when the is detached, preventing memory leaks.
- Performance & Threading:
- Introduced a (single-threaded ) to perform file I/O (reading battery/CPU temperature) off the main thread.
- UI updates are posted back to the main thread using a .
- Preference values are read using initialization for .
- Code Structure & Readability:
- Renamed to .
- Consolidated logic for creating consumption and temperature indicators into and .
- Unified indicator update logic:
- now handles styling updates (font size, bold, alignment) by re-reading prefs.
- handles fetching data in the background and updating the text on the UI thread.
- centralizes the formatting of all hardware data.
- now returns a for better control over starting/stopping updates.
- now manages both the (for color/visibility sync) and a (for configuration changes like dark mode) for all active indicators associated with a .
- More robust error handling for file reading and receiver unregistration.
- Functionality & Bug Fixes:
- Indicators (power, temperature) are now correctly added and removed from the 's parent .
- The insertion position of indicators is calculated more reliably.
- Color and visibility of indicators now consistently sync with the main view.
- Initial color of indicators is set when created.
- Padding and margin adjustments for better visual spacing.
- Uses for method hooking, replacing direct calls.
- Configuration Keys Renamed (Internal):
- Many preference keys used for storing indicator settings have been renamed for clarity and consistency (e.g., to , to ).
Key Changes in (Settings UI):
- State Management:
- Uses with and to manage UI state, directly reflecting preference values.
- object is remembered to avoid repeated calls to .
- UI Structure & Options:
- The list of available content for display () now includes CPU and Battery Temperature, making it consistent for both power and temperature indicators.
- Hide Unit settings are now grouped under a common section for all unit types (Power, Current, Voltage, Battery Temp, CPU Temp).
- Preference keys in , , updated to match the renamed keys in the hook.
- Clarity and Consistency:
- Variable names updated for better readability (e.g., state variable to ).
- More consistent use of to show/hide sections based on whether an indicator is enabled.
Overall Impact:
This refactor makes the Hardware Indicator feature more robust, less prone to resource leaks, and improves its performance by moving I/O operations to a background thread. The settings UI is now more aligned with the underlying preference keys and provides a more consistent user experience.
🔗 查看本次提交
Refactor(HardwareIndicator): Major overhaul for stability, performance, and UI consistency
This commit introduces a significant refactor of the Hardware Indicator feature for SystemUI. The changes focus on improving resource management, performance, code structure, and the user interface for configuring the indicators.
Key Changes in (Hook Logic):
- Resource Management & Lifecycle:
- Hooks and of the view.
- Resources (TextViews, Runnables, Listeners) for each indicator are now managed in a data class and stored in a map, keyed by the instance.
- function added to explicitly release all resources (remove callbacks, unregister listeners/receivers) when the is detached, preventing memory leaks.
- Performance & Threading:
- Introduced a (single-threaded ) to perform file I/O (reading battery/CPU temperature) off the main thread.
- UI updates are posted back to the main thread using a .
- Preference values are read using initialization for .
- Code Structure & Readability:
- Renamed to .
- Consolidated logic for creating consumption and temperature indicators into and .
- Unified indicator update logic:
- now handles styling updates (font size, bold, alignment) by re-reading prefs.
- handles fetching data in the background and updating the text on the UI thread.
- centralizes the formatting of all hardware data.
- now returns a for better control over starting/stopping updates.
- now manages both the (for color/visibility sync) and a (for configuration changes like dark mode) for all active indicators associated with a .
- More robust error handling for file reading and receiver unregistration.
- Functionality & Bug Fixes:
- Indicators (power, temperature) are now correctly added and removed from the 's parent .
- The insertion position of indicators is calculated more reliably.
- Color and visibility of indicators now consistently sync with the main view.
- Initial color of indicators is set when created.
- Padding and margin adjustments for better visual spacing.
- Uses for method hooking, replacing direct calls.
- Configuration Keys Renamed (Internal):
- Many preference keys used for storing indicator settings have been renamed for clarity and consistency (e.g., to , to ).
Key Changes in (Settings UI):
- State Management:
- Uses with and to manage UI state, directly reflecting preference values.
- object is remembered to avoid repeated calls to .
- UI Structure & Options:
- The list of available content for display () now includes CPU and Battery Temperature, making it consistent for both power and temperature indicators.
- Hide Unit settings are now grouped under a common section for all unit types (Power, Current, Voltage, Battery Temp, CPU Temp).
- Preference keys in , , updated to match the renamed keys in the hook.
- Clarity and Consistency:
- Variable names updated for better readability (e.g., state variable to ).
- More consistent use of to show/hide sections based on whether an indicator is enabled.
Overall Impact:
This refactor makes the Hardware Indicator feature more robust, less prone to resource leaks, and improves its performance by moving I/O operations to a background thread. The settings UI is now more aligned with the underlying preference keys and provides a more consistent user experience.
🔗 查看本次提交
GitHub
Refactor(HardwareIndicator): Major overhaul for stability, performanc… · suqi8/OShin@cf88684
…e, and UI consistency
This commit introduces a significant refactor of the Hardware Indicator feature for SystemUI. The changes focus on improving resource management, performance, code structure...
This commit introduces a significant refactor of the Hardware Indicator feature for SystemUI. The changes focus on improving resource management, performance, code structure...
🚀 OShin New CI Build!
Refactor(SystemUI): Reorganize Hardware Indicator Settings and Add Global Options
This commit refactors the Hardware Indicator settings page for SystemUI () to improve structure and introduce global settings for data sources and unit display.
Key Changes:
- :
- Added new string resources for section titles:
- (外观与更新)
- (数据源设置)
- (单位隐藏)
- :
- Introduced Composable:
- A new reusable composable function has been created to encapsulate the common settings for both Power and Temperature indicators. This includes options for:
- Dual row display
- First and second line content
- Bold text
- Alignment
- Update interval
- Font size
- This refactoring significantly reduces code duplication for indicator-specific settings.
- State management for these settings (dual row, line content, alignment) is now handled within using and /, initialized from .
- Reorganized Settings Structure:
- The settings page is now divided into more logical sections:
- Power Indicator: Toggle and its specific settings (now using ).
- Temperature Indicator: Toggle and its specific settings (now using ).
- Global Data Source Settings:
- Moved Dual Cell and Absolute Value (for power) options to this global section.
- Moved Show CPU Temp Data and Change CPU Temp Source options to this global section.
- Global Unit Display Settings:
- Settings to hide units for Power, Current, Voltage, Battery Temperature, and CPU Temperature are now grouped under this global section.
- Removed Redundant State Variables:
- Local and variables for alignment, dual row, and line content specific to power and temperature indicators in the main composable were removed, as this is now handled by the composable.
- UI Flow:
- The blocks for power and temperature indicators now conditionally render the composable.
- New components are used to label the Data Source Settings and Unit Display Settings sections.
This reorganization makes the settings page more modular, easier to understand, and simplifies the management of individual indicator configurations.
🔗 查看本次提交
Refactor(SystemUI): Reorganize Hardware Indicator Settings and Add Global Options
This commit refactors the Hardware Indicator settings page for SystemUI () to improve structure and introduce global settings for data sources and unit display.
Key Changes:
- :
- Added new string resources for section titles:
- (外观与更新)
- (数据源设置)
- (单位隐藏)
- :
- Introduced Composable:
- A new reusable composable function has been created to encapsulate the common settings for both Power and Temperature indicators. This includes options for:
- Dual row display
- First and second line content
- Bold text
- Alignment
- Update interval
- Font size
- This refactoring significantly reduces code duplication for indicator-specific settings.
- State management for these settings (dual row, line content, alignment) is now handled within using and /, initialized from .
- Reorganized Settings Structure:
- The settings page is now divided into more logical sections:
- Power Indicator: Toggle and its specific settings (now using ).
- Temperature Indicator: Toggle and its specific settings (now using ).
- Global Data Source Settings:
- Moved Dual Cell and Absolute Value (for power) options to this global section.
- Moved Show CPU Temp Data and Change CPU Temp Source options to this global section.
- Global Unit Display Settings:
- Settings to hide units for Power, Current, Voltage, Battery Temperature, and CPU Temperature are now grouped under this global section.
- Removed Redundant State Variables:
- Local and variables for alignment, dual row, and line content specific to power and temperature indicators in the main composable were removed, as this is now handled by the composable.
- UI Flow:
- The blocks for power and temperature indicators now conditionally render the composable.
- New components are used to label the Data Source Settings and Unit Display Settings sections.
This reorganization makes the settings page more modular, easier to understand, and simplifies the management of individual indicator configurations.
🔗 查看本次提交
GitHub
Refactor(SystemUI): Reorganize Hardware Indicator Settings and Add Gl… · suqi8/OShin@3cd8e33
…obal Options
This commit refactors the Hardware Indicator settings page for SystemUI (`hardware_indicator.kt`) to improve structure and introduce global settings for data sources and unit display...
This commit refactors the Hardware Indicator settings page for SystemUI (`hardware_indicator.kt`) to improve structure and introduce global settings for data sources and unit display...
🚀 OShin New CI Build!
feat(hardware): Add CPU freq, CPU usage, RAM usage indicators
This commit enhances the hardware indicator feature by adding new data points: CPU frequency, CPU usage, and RAM usage. It also introduces settings to customize their display and data sources.
Key Changes:
- (Hook Logic):
- New Data Fetching:
- : Reads current CPU frequency for a specified core from .
- : Calculates RAM usage percentage based on and from .
- : Calculates CPU usage percentage by comparing total and idle CPU times from between updates. Stores last total and idle times in .
- : Refactored from existing logic to read CPU temperature from .
- Data Formatting & Display:
- updated to include formatted strings for CPU frequency (MHz), CPU usage (%), and RAM usage (%).
- now fetches and passes these new data points to .
- Preferences for hiding units of new indicators (, , ) are respected.
- Resource Passing:
- and now accept to access and for CPU usage calculation.
- (Settings UI):
- New Data Source Settings:
- Change CPU frequency data source ( for ): Allows users to specify which CPU core's frequency to display.
- Show CPU frequency data (): Opens a dialog displaying current frequencies for all available CPU cores.
- composable: Implements the dialog using and to list core names and their frequencies obtained via .
- : Reads frequency data from for all cores.
- data class added.
- New Unit Display Settings:
- Switches () added under Unit Display Settings to toggle visibility of units for:
- CPU Frequency ()
- CPU Usage ()
- RAM Usage ()
- UI Adjustments:
- Updated list to include titles for the new indicators.
- Minor padding adjustments for elements.
- :
- Added new string resources for:
- CPU Frequency, CPU Usage, RAM Usage labels.
- Settings titles and summaries for changing CPU frequency source and showing CPU frequency data.
This update provides users with more comprehensive hardware monitoring capabilities directly in the status bar.
🔗 查看本次提交
feat(hardware): Add CPU freq, CPU usage, RAM usage indicators
This commit enhances the hardware indicator feature by adding new data points: CPU frequency, CPU usage, and RAM usage. It also introduces settings to customize their display and data sources.
Key Changes:
- (Hook Logic):
- New Data Fetching:
- : Reads current CPU frequency for a specified core from .
- : Calculates RAM usage percentage based on and from .
- : Calculates CPU usage percentage by comparing total and idle CPU times from between updates. Stores last total and idle times in .
- : Refactored from existing logic to read CPU temperature from .
- Data Formatting & Display:
- updated to include formatted strings for CPU frequency (MHz), CPU usage (%), and RAM usage (%).
- now fetches and passes these new data points to .
- Preferences for hiding units of new indicators (, , ) are respected.
- Resource Passing:
- and now accept to access and for CPU usage calculation.
- (Settings UI):
- New Data Source Settings:
- Change CPU frequency data source ( for ): Allows users to specify which CPU core's frequency to display.
- Show CPU frequency data (): Opens a dialog displaying current frequencies for all available CPU cores.
- composable: Implements the dialog using and to list core names and their frequencies obtained via .
- : Reads frequency data from for all cores.
- data class added.
- New Unit Display Settings:
- Switches () added under Unit Display Settings to toggle visibility of units for:
- CPU Frequency ()
- CPU Usage ()
- RAM Usage ()
- UI Adjustments:
- Updated list to include titles for the new indicators.
- Minor padding adjustments for elements.
- :
- Added new string resources for:
- CPU Frequency, CPU Usage, RAM Usage labels.
- Settings titles and summaries for changing CPU frequency source and showing CPU frequency data.
This update provides users with more comprehensive hardware monitoring capabilities directly in the status bar.
🔗 查看本次提交
GitHub
feat(hardware): Add CPU freq, CPU usage, RAM usage indicators · suqi8/OShin@fc53efb
This commit enhances the hardware indicator feature by adding new data points: CPU frequency, CPU usage, and RAM usage. It also introduces settings to customize their display and data sources.
**K...
**K...
🚀 OShin New CI Build!
Refactor(HardwareIndicator): Correct dual-cell power calculation
This commit adjusts the power calculation logic in for devices with dual-cell batteries.
Previously, the voltage was multiplied by 2 for dual-cell configurations. This change moves the multiplication factor to the current calculation instead.
- Old Calculation:
-
-
- New Calculation:
-
-
The battery wattage is still calculated as . This change ensures the power calculation accurately reflects dual-cell battery architecture.
🔗 查看本次提交
Refactor(HardwareIndicator): Correct dual-cell power calculation
This commit adjusts the power calculation logic in for devices with dual-cell batteries.
Previously, the voltage was multiplied by 2 for dual-cell configurations. This change moves the multiplication factor to the current calculation instead.
- Old Calculation:
-
-
- New Calculation:
-
-
The battery wattage is still calculated as . This change ensures the power calculation accurately reflects dual-cell battery architecture.
🔗 查看本次提交
GitHub
Refactor(HardwareIndicator): Correct dual-cell power calculation · suqi8/OShin@60464dd
This commit adjusts the power calculation logic in `HardwareIndicator.kt` for devices with dual-cell batteries.
Previously, the voltage was multiplied by 2 for dual-cell configurations. This chang...
Previously, the voltage was multiplied by 2 for dual-cell configurations. This chang...
🚀 OShin New CI Build!
Refactor(UI): Minor UI adjustments in About and Main screens
This commit introduces small UI changes:
- About Screen ():
- The Check Update button has been commented out, effectively removing it from the UI.
- Main Screen ():
- The bottom navigation bar () is now conditionally displayed using . It will be hidden when the of the is 3 (presumably the About or a similar settings-like page).
🔗 查看本次提交
Refactor(UI): Minor UI adjustments in About and Main screens
This commit introduces small UI changes:
- About Screen ():
- The Check Update button has been commented out, effectively removing it from the UI.
- Main Screen ():
- The bottom navigation bar () is now conditionally displayed using . It will be hidden when the of the is 3 (presumably the About or a similar settings-like page).
🔗 查看本次提交
GitHub
Refactor(UI): Minor UI adjustments in About and Main screens · suqi8/OShin@89781b4
This commit introduces small UI changes:
- **About Screen (`Main_About.kt`):**
- The "Check Update" button has been commented out, effectively removing it from the UI.
- **Mai...
- **About Screen (`Main_About.kt`):**
- The "Check Update" button has been commented out, effectively removing it from the UI.
- **Mai...
🚀 OShin New CI Build!
feat(UI): Implement auto-hiding BottomBar on scroll
This commit introduces an auto-hiding behavior for the bottom navigation bar in . The BottomBar now dynamically hides when the user scrolls down on the current page and reappears when scrolling up or when the Pager's current page changes.
Key Changes in :
- Auto-Hide Logic:
- A new state controls the visibility of the BottomBar.
- :
- Monitors .
- If the offset is close to the top (>= -5), the BottomBar is always visible.
- Calculates the scroll delta and hides the BottomBar if scrolling down past a (50 pixels).
- Shows the BottomBar if scrolling up past the .
- :
- Ensures is reset to whenever the Pager's page changes.
- BottomBar :
- The parameter of the wrapping the BottomBar is now tied to .
- and animations are used for smooth transitions.
- Access:
- Simplified the retrieval of by directly indexing with .
- Minor Fix:
- Corrected a typo in within the block (changed to ).
Key Changes in :
- Dual Cell Current Calculation:
- Modified the calculation for when is true. Instead of multiplying by 2, is now directly multiplied by 2 before being converted to Amperes. This ensures the correct current value is used for wattage calculation.
🔗 查看本次提交
feat(UI): Implement auto-hiding BottomBar on scroll
This commit introduces an auto-hiding behavior for the bottom navigation bar in . The BottomBar now dynamically hides when the user scrolls down on the current page and reappears when scrolling up or when the Pager's current page changes.
Key Changes in :
- Auto-Hide Logic:
- A new state controls the visibility of the BottomBar.
- :
- Monitors .
- If the offset is close to the top (>= -5), the BottomBar is always visible.
- Calculates the scroll delta and hides the BottomBar if scrolling down past a (50 pixels).
- Shows the BottomBar if scrolling up past the .
- :
- Ensures is reset to whenever the Pager's page changes.
- BottomBar :
- The parameter of the wrapping the BottomBar is now tied to .
- and animations are used for smooth transitions.
- Access:
- Simplified the retrieval of by directly indexing with .
- Minor Fix:
- Corrected a typo in within the block (changed to ).
Key Changes in :
- Dual Cell Current Calculation:
- Modified the calculation for when is true. Instead of multiplying by 2, is now directly multiplied by 2 before being converted to Amperes. This ensures the correct current value is used for wattage calculation.
🔗 查看本次提交
GitHub
feat(UI): Implement auto-hiding BottomBar on scroll · suqi8/OShin@09bf7de
This commit introduces an auto-hiding behavior for the bottom navigation bar in `MainActivity`. The BottomBar now dynamically hides when the user scrolls down on the current page and reappears when...
🍌1
🚀 OShin New CI Build!
feat(SystemUI): Add Show Real Battery feature and UI refactor
This commit introduces a new feature to display the real battery level in the status bar by reading from if available. It also includes minor UI code formatting improvements in .
Key Changes:
- (New Hook):
- Created a new named .
- Hooks the method of .
- If the showrealbattery preference is enabled:
- When a intent is received, it attempts to read the battery level from .
- If successful, it overrides the and extras in the intent with the value read from the system file.
- This effectively shows a potentially more accurate battery percentage in the status bar for devices that provide this information.
- (Hook Registration):
- The new hook is now loaded via .
- (SystemUI Settings):
- Added a new (toggle switch) to the SystemUI settings screen:
- Title: Show real battery (from ).
- Summary: Only show real battery in status bar... (from ).
- Preference key: showrealbattery.
- Category: systemui.
- :
- Added new string resources:
- : 显示真实电量 (Show real battery)
- : 仅在状态栏显示真实电量,其他应用读取的电量不受影响 (Only show real battery in status bar, battery level read by other apps is not affected)
- :
- Added Show real battery to the list of available features, linking it to the systemui category.
- (UI Refinements):
- Applied minor code formatting changes, primarily involving adding chains on new lines for better readability in various composables (e.g., , , , , , ). This does not change functionality but improves code style.
🔗 查看本次提交
feat(SystemUI): Add Show Real Battery feature and UI refactor
This commit introduces a new feature to display the real battery level in the status bar by reading from if available. It also includes minor UI code formatting improvements in .
Key Changes:
- (New Hook):
- Created a new named .
- Hooks the method of .
- If the showrealbattery preference is enabled:
- When a intent is received, it attempts to read the battery level from .
- If successful, it overrides the and extras in the intent with the value read from the system file.
- This effectively shows a potentially more accurate battery percentage in the status bar for devices that provide this information.
- (Hook Registration):
- The new hook is now loaded via .
- (SystemUI Settings):
- Added a new (toggle switch) to the SystemUI settings screen:
- Title: Show real battery (from ).
- Summary: Only show real battery in status bar... (from ).
- Preference key: showrealbattery.
- Category: systemui.
- :
- Added new string resources:
- : 显示真实电量 (Show real battery)
- : 仅在状态栏显示真实电量,其他应用读取的电量不受影响 (Only show real battery in status bar, battery level read by other apps is not affected)
- :
- Added Show real battery to the list of available features, linking it to the systemui category.
- (UI Refinements):
- Applied minor code formatting changes, primarily involving adding chains on new lines for better readability in various composables (e.g., , , , , , ). This does not change functionality but improves code style.
🔗 查看本次提交
GitHub
feat(SystemUI): Add "Show Real Battery" feature and UI refactor · suqi8/OShin@c0f0113
This commit introduces a new feature to display the "real" battery level in the status bar by reading from `/sys/class/oplus_chg/battery/chip_soc` if available. It also includes m...
❤2
🚀 OShin New CI Build!
Refactor(VerifyDialog): Simplify verification process to text-only input
This commit streamlines the verification dialog in by removing the molecule-based graphical verification option and relying solely on text input for validation.
Key Changes:
- Removed Molecule Verification:
- The composable and its related logic, including , , data classes, , , and , have been removed.
- The enum and the UI for switching between verification modes are also removed.
- Simplified Text Verification:
- The now directly uses .
- The verification prompt has been updated to ask for the module download address.
- The summary text in has been updated to reflect the text-only verification.
- The 验证 (Verify) button in is now a using instead of a standard .
- Version Check Update:
- The version check for displaying the dialog now compares against the major and minor version parts (e.g., 1.0) of instead of the full version string.
- is calculated from for this comparison.
- Accepted URLs for Verification:
- The verification logic in now accepts two GitHub URLs as valid:
-
-
- Minor UI Adjustments:
- Removed the 请输入模块下载地址进行验证。 text from as it's now part of the summary.
- Adjusted spacing.
The dialog now only presents a text field where users must input the module's download URL. The verification succeeds if the input contains either of the specified GitHub repository paths.
🔗 查看本次提交
Refactor(VerifyDialog): Simplify verification process to text-only input
This commit streamlines the verification dialog in by removing the molecule-based graphical verification option and relying solely on text input for validation.
Key Changes:
- Removed Molecule Verification:
- The composable and its related logic, including , , data classes, , , and , have been removed.
- The enum and the UI for switching between verification modes are also removed.
- Simplified Text Verification:
- The now directly uses .
- The verification prompt has been updated to ask for the module download address.
- The summary text in has been updated to reflect the text-only verification.
- The 验证 (Verify) button in is now a using instead of a standard .
- Version Check Update:
- The version check for displaying the dialog now compares against the major and minor version parts (e.g., 1.0) of instead of the full version string.
- is calculated from for this comparison.
- Accepted URLs for Verification:
- The verification logic in now accepts two GitHub URLs as valid:
-
-
- Minor UI Adjustments:
- Removed the 请输入模块下载地址进行验证。 text from as it's now part of the summary.
- Adjusted spacing.
The dialog now only presents a text field where users must input the module's download URL. The verification succeeds if the input contains either of the specified GitHub repository paths.
🔗 查看本次提交
GitHub
Refactor(VerifyDialog): Simplify verification process to text-only input · suqi8/OShin@675a946
This commit streamlines the verification dialog in `MainActivity.kt` by removing the molecule-based graphical verification option and relying solely on text input for validation.
**Key Changes:**
...
**Key Changes:**
...