Skip to content

First

Latest

Choose a tag to compare

@adhamkhwaldeh adhamkhwaldeh released this 03 Oct 22:25
· 26 commits to main since this release
feat: Refactor and restructure UserBehaviorSDK

This commit introduces a major refactoring and restructuring of the UserBehaviorSDK.

Key changes include:
- Renamed the root package from `com.behaviosec.android.userBehaviorSDK` to `com.github.adhamkhwaldeh.userBehaviorSDK`.
- Introduced a `BaseManager` class to consolidate common functionality for listeners, error handling, and configuration, reducing code duplication across different managers.
- Created specific configuration classes (`AccelerometerConfig`, `TouchConfig`) inheriting from a new `BaseManagerConfig`, replacing the generic `TouchTrackerConfig`.
- Refactored manager and listener interfaces (`IBaseManager`, `ICallbackListener`, `IErrorListener`, etc.) to improve type safety and structure.
- Updated the main `UserBehaviorCoreSDK` facade to use the new manager structure and configuration system.
- Adjusted ProGuard rules, documentation, and test files to reflect the new package name and class structure.