OShin | O神「自动构建 CI Build」
1.5K subscribers
2 photos
771 files
678 links
OPPO/OneOlus 系统辅助应用

Channel/频道
@OPatchA
Chat/聊天
@OPatchB
Download Telegram
🚀 **OShin New CI Build!**

Refactor(Settings): Add layout simplification options and conditional UI

This commit introduces several new settings to provide users with more control over the application's layout and appearance, aiming to simplify the user experience and declutter the interface. These changes are propagated throughout the app using .

### Key Changes:

* **New Simplification Settings:**
* Three new boolean preferences have been added to the settings screen ():
* **Module Simplified Mode** (): Hides the Switch Style button and the App not found notice on the Modules page.
* **Hide Digression Card** (): Hides the By the way (Community) card on the About page.
* **Hide Home Page** (): Removes the Home tab entirely from the main bottom navigation, making the Modules page the default starting screen.
* Corresponding strings have been added to .

* **State Management (, , ):**
* now manages the state for these new options (, , ).
* New s (, , ) are provided in to make these settings accessible throughout the composable tree.

* **Conditional UI Rendering:**
* ****: The bottom navigation bar and the now conditionally render the Home page and its corresponding tab based on the value.
* ****: The App not found notice and the Switch Style text are now only shown if Module Simplified Mode is disabled.
* ****: The By the way card is conditionally rendered based on the value, even when simple mode is not fully enabled.

* **Dialog Style Fallback:**
* ****: The app restart confirmation dialog now displays a standard instead of the custom glass effect dialog if the Disable top bar glass setting is enabled. This ensures a consistent UI style when glass effects are turned off.

* **Minor UI Fixes:**
* ****: The is now conditionally rendered to prevent overlapping with the 's built-in title when the glass effect is disabled.
* ****: Added missing padding to the app icon in the restart dialog list for better alignment.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/dfffaff40e9d612ea5bcbd5bb5c6fe52d14ac51a)
🚀 **OShin New CI Build!**

Fix(About): Correct visibility logic for By the way section

This commit corrects a logical error in the file that controls the visibility of the By the way section, which contains the .

The condition has been changed from to .

This ensures the section is correctly displayed when either Simplified Mode is disabled or when the Digression content is explicitly configured to be visible, aligning with the intended behavior.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/627e317fa57d2608186e84c2dcb4ed72ebf53904)
🚀 **OShin New CI Build!**

Fix(About): Correct visibility logic for community card

This commit fixes a bug in the About screen where the By the way section and the community card were incorrectly displayed when simple mode was enabled.

The logical condition has been changed from (OR) to (AND). This ensures that the section is only shown when both simple mode is disabled and the digression section is not hidden, restoring the intended visibility behavior.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/430f4a4dc03c4e95975b19dcf650a9b992368fae)
🚀 **OShin New CI Build!**

Refactor(UI): Replace G2RoundedCornerShape with ContinuousRoundedRectangle and update dependencies

This commit refactors UI components to replace the deprecated with for defining shapes. Additionally, it updates several dependencies to their latest versions and adapts the component to changes in the Miuix library's Slider API.

### Key Changes:

* **Shape Refactoring:**
* In and , has been replaced with from the library. This standardizes the shape implementation for UI elements like cards and dropdowns.

* **Slider API Update:**
* The component has been updated to align with the new composable API from the Miuix library.
* The parameters , , , and have been replaced with , , and .
* The logic now passes the new value directly in the callback.

* **Dependency Updates ():**
* Multiple libraries have been updated to newer versions, including:
*
*
*
*
*
*
*
*
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/3bce86c2493bd2da3a0a2cbef5f46c542c11d9db)
🚀 **OShin New CI Build!**

feat(Settings): Add option to disable device name validation

This commit introduces a new feature that disables the server-side validation check when changing the device or Bluetooth name in the Android settings. This allows users to set custom names without being restricted by the default verification logic.

### Key Changes:

* **:**
* A new hook is added for .
* It targets the method within .
* The method is hooked to always return , effectively disabling the name validation check.
* Minor refactoring was done to cache the instance for cleaner code.

* **:**
* A new preference has been added to the settings UI.
* This switch allows users to toggle the Disable device name validation feature on or off.

* **:**
* A new string resource, , was added to provide the label for the new settings toggle.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/85f9874deb45d7d68dc9451991095820b2f6ffc2)
🚀 **OShin New CI Build!**

Refactor(Hook): Simplify constructor hook by removing explicit parameters

This commit simplifies the constructor hook in .

The explicit declaration of constructor parameters has been removed. The code now relies on to automatically resolve the target constructor without needing to specify its signature. This makes the hook more concise and less brittle to changes in the hooked constructor's parameter list.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/b1d34e95d2433659de7e41457278f1c61bb9fa4e)
🚀 **OShin New CI Build!**

Refactor(Wallet): Simplify ad removal hook and update UI text

This commit refactors the ad removal logic for the Wallet feature and cleans up the corresponding UI.

### Key Changes:

* **:**
* The ad removal hook has been significantly simplified. Instead of nullifying the URL from three different network request classes, the new logic now targets the method in .
* By hooking this method to return an empty list, it more efficiently prevents ad-related card entries from being processed and displayed on the swipe page.
* This change uses for a more robust method resolution.

* **:**
* The summary text () associated with the Remove swipe page ads switch has been removed. This simplifies the UI, as the notice was likely related to the old implementation which required clearing data.
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/6de2638eb5429eb7538b6a0acca0dec958e44ef0)
🚀 **OShin New CI Build!**

chore(CI): 优化多行提交信息的处理方式
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/cd67aa049b22cbff57a46687593bd3f76e37f08d)
🚀 **OShin New CI Build!**

feat(wallet): 新增隐藏刷卡工具栏的选项,优化提取提交信息的工作流脚本

本次提交为钱包应用增加了一个新功能,允许用户选择隐藏刷卡界面的工具栏。

**主要变更:**
- **`wallet.kt` (Hook):** 添加了新的Hook逻辑,当用户启用“隐藏刷卡工具栏”选项时,会替换`NfcSwitchCardsMenus`类的相关方法,使其返回`null`,从而达到隐藏工具栏的效果。
- **`wallet.kt` (Features):** 在钱包功能的设置界面中,新增了一个开关控件(Switch),对应"hide_swipe_toolbar"配置项。
- **`strings.xml`:** 添加了`hide_swipe_toolbar`字符串资源,用于在UI上显示“隐藏刷卡工具栏”的文本。
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/6c110af3fc1e28d60f14713b6d948e54674723bf)
🚀 **OShin New CI Build!**

feat(Wallet): 添加移除刷卡工具栏反馈按钮的选项
🔗 [查看本次提交](https://github.com/suqi8/OShin-Dev/commit/c3c6b1d58b239665bc3a2d7f2cab1e5df972e7ef)