Skip to content

v1.1.2 - Complete Refactoring & Critical Fixes

Choose a tag to compare

@JALAL591 JALAL591 released this 22 Oct 18:03
· 6 commits to main since this release

🚀 What's New in v1.1.2

🏗️ Architectural Refactoring (5 Phases)

We have completely restructured the core of ComposeBridge for better maintainability, scalability, and performance:

  • Split Monolithic Files: 4 massive files were broken down into 25+ specialized modules:
    • source_analyzer.py: 2,116 lines → 72 lines
    • state_editor.py: 1,146 lines → 86 lines
    • mcp_server.py: 1,209 lines → 59 lines
    • server.py: 1,493 lines → 67 lines
  • New Modules: Introduced common/, analysis/, editor/, mcp/, network/, handlers/, and cli/ packages.
  • Zero Circular Imports: Cleaned up all interdependent imports.

🔧 Critical Bug Fixes (P0)

  • Text Editing Fixed: Resolved the issue where text editing failed after refactoring due to relative imports in text_editor.py.
  • AppStrings Resolution: Fixed text extraction that was showing AppStrings.Da instead of the actual rendered text.
  • Multi-Registry Dimensions: You can now edit padding/dimensions on lines that contain multiple BridgeDimensionRegistry.get calls.
  • Release Builds: Created a lightweight composebridge-runtime module to ensure assembleRelease works flawlessly without duplicate classes.
  • Auth Token: Added a dynamic token system with a --dev-token fallback for local testing.
  • Theme Indexer: Now dynamically discovers AppStrings.kt and DesignSystem.kt instead of relying on hardcoded paths.
  • Port Conflict: Unified all ports to 8711 to prevent connection drops.

✅ Verification

  • 100% of Python files compile without errors.
  • 15/15 Unit Tests passing.
  • End-to-End (E2E) integration tests passed 100%.
  • Verified text and dimension editing directly from the phone.