Skip to content

Refactor#15

Closed
cango91 wants to merge 3 commits intomainfrom
refactor
Closed

Refactor#15
cango91 wants to merge 3 commits intomainfrom
refactor

Conversation

@cango91
Copy link
Owner

@cango91 cango91 commented Sep 3, 2025

No description provided.

- Add ClipboardContentFilter for privacy-aware content analysis and filtering
- Add RegexValidator with ReDoS protection and timeout safety mechanisms
- Add UrlPrivacyAnalyzer for detecting sensitive URLs and embedded credentials
- Enhance MainActivity with blur toggle controls and real-time clipboard preview
- Update AppConfig with privacy and security configuration options
- Strengthen RuleCompiler with security validation and safe regex compilation
- Add comprehensive test coverage with 5 new instrumented test suites
- Improve ClipboardAnalysis with risk factor detection and filtering
- Implement special handling for embedded credentials (preserved but not blurred)
- Add PrivacySettings and SecurityConfig for granular user control

Key features:
- Real-time privacy analysis of clipboard content
- Protection against ReDoS attacks in user-defined regex patterns
- Smart filtering of sensitive data (credentials, tokens, personal info)
- Enhanced UI with blur effects and privacy controls
- Comprehensive integration and unit testing
…using on core URL cleaning

This major refactor removes the comprehensive privacy/security analysis framework
in favor of a streamlined, focused URL cleaning system.

Key changes:
- Remove complex privacy analysis system (ClipboardContentFilter, UrlPrivacyAnalyzer, RegexValidator)
- Replace with simplified RuleEngine using direct regex matching
- Introduce smart UrlAnalyzer with partial-blur segment rendering
- Simplify ConfigManager and UrlCleanerService for better performance
- Remove comprehensive test suites and UI theming to reduce maintenance burden
- Focus on core URL cleaning functionality with credential detection

Breaking changes:
- ConfigActivity removed (configuration now handled in MainActivity)
- Privacy analysis features removed
- UI theme customization removed
- Complex rule pattern types simplified to basic regex

This refactor reduces codebase by ~7,000 lines while maintaining core functionality.
@cango91 cango91 closed this Sep 3, 2025
@cango91 cango91 deleted the refactor branch September 3, 2025 01: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