Skip to content

refactor(native): several significant improvements around preferences#546

Merged
ACTCD merged 10 commits into
mainfrom
refactor/native_preferences
Oct 4, 2023
Merged

refactor(native): several significant improvements around preferences#546
ACTCD merged 10 commits into
mainfrom
refactor/native_preferences

Conversation

@ACTCD

@ACTCD ACTCD commented Oct 2, 2023

Copy link
Copy Markdown
Collaborator

There are some significant improvements due to the newly written preferences wrapper:

  • Adding and using various preferences is easier and they are shared between the app and ext.

  • The same preference list and calls are shared between iOS and macOS versions, with differences smoothed out by wrappers.

  • With a new preference item, the logger is now disabled by default, and a toggle has been added in iOS and macOS.

    • In iOS, the toggle is located in the Userscripts sub pane of the system Settings app
    • In macOS, the toggle is under the DEBUG menu in the menu bar of Userscripts app
  • The old save location will be smoothly and imperceptibly imported into the new preferences.

    • Fully optimized storage and reading processes, eliminating potential kernel resources leaks.
    • Only use shared containers and have updates between app and ext done auto via wrappers.
  • In iOS, enable the feature of displaying the app's document directory to the system Files app.

    • It also supports importing and exporting document content through iTunes or Finder.
    • Supports in-place editing or viewing of third-party applications that supports file providers.
    • This directory is automatically set by default when the app is launched for the first time.
      • Optimize the first-time use experience, no longer require to manually set a directory.
      • Retain the ability to change the save location and optimize relevant text prompts.
[macOS-Menus-toggle]

macos_toggle

[iOS-Settings-toggle]

ios_settings_toggle

[iOS-Files-document]

ios_files_document

@ACTCD ACTCD requested a review from quoid October 2, 2023 16:55

@quoid quoid left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work 🥇

@ACTCD ACTCD merged commit 92a003c into main Oct 4, 2023
@ACTCD ACTCD deleted the refactor/native_preferences branch October 4, 2023 01:01
@ACTCD ACTCD restored the refactor/native_preferences branch October 6, 2023 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants