mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
feat(mobile): mount native GPU BlockSuite editor in iOS and Android hosts
- Add orthogonal PointerKind, FormFactor, and EditorCapabilities matrix in blocksuite-editor, decoupling database_readonly from edgeless_readonly and enforcing page_readonly across command/toolbar paths - Attach cross-platform CJK and emoji FontFallbacks to blocksuite-editor text runs so iOS CoreText and Android CosmicTextSystem render CJK and emoji glyphs cleanly - Wire real WgpuRenderer and CosmicTextSystem into Android ANativeWindow via SwappableAtlas, deterministic ui::clock_now() dispatch_after timer draining, single-JNI UTF-16 reads, surrogate-pair composing alignment, requestCursorUpdates + Matrix CursorAnchorInfo, historical ACTION_MOVE samples, hardware keyboard/scroll forwarding, and zero shadow-buffer pollution - Frame iOS MetalHostView and SelectionOverlayView inside safeAreaInsets, gate software keyboard responder on PlaygroundView::wants_software_keyboard and pan-slop tap detection, avoid double safe_bottom subtraction on KeyboardToolbar insets, prevent spurious UITextInputDelegate textWillChange/textDidChange echo during IME composition, yield hardware pressesBegan during marked text, and guard UIEditMenuInteraction with explicit actions - Enable wgpu/cosmic-text for target_os = "android" in packages/ui/ui and add Linux fontconfig/freetype packages to np-mobile CI workflow
This commit is contained in:
1 parent
6eb02b835b
commit
4e66722b44
58 files changed
+6407
-762
No files matched your search
@@ -227,6 +227,12 @@ jobs:
|
||||
workspaces: packages/frontend -> target
|
||||
key: np-mobile-android-host
|
||||
|
||||
- name: Install Linux fontconfig and freetype headers for host tests
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends pkg-config libfontconfig1-dev libfreetype-dev
|
||||
|
||||
- name: Test host logic and link Android NDK .so binaries
|
||||
working-directory: packages/frontend
|
||||
run: |
|
||||
@@ -308,6 +314,13 @@ jobs:
|
||||
-framework QuartzCore \
|
||||
-framework Metal \
|
||||
-framework WebKit \
|
||||
-framework PDFKit \
|
||||
-framework CoreText \
|
||||
-framework CoreGraphics \
|
||||
-framework CoreVideo \
|
||||
-framework CoreFoundation \
|
||||
-framework Foundation \
|
||||
-framework UniformTypeIdentifiers \
|
||||
-o /tmp/AffineIosHost \
|
||||
packages/frontend/hosts/ios/Sources/*.swift
|
||||
test -s /tmp/AffineIosHost
|
||||
Reference in new issue
Block a user