Commit 6c775f7
Evan Masseau
Clean up unused code and improve documentation
**Removed:**
- AppViewInterface.ts (no longer needed with new app structure)
- Duplicate and unused functions from KlaviyoReactWrapper.ts
- Legacy random data setters (setEmail, setPhoneNumber, setExternalId)
- Unused getters (getEmail, getPhoneNumber, getExternalId, getPushToken)
- Complex unused functions (setProfile, setProfileAttribute, setPushToken)
- Unused imports (Location, Profile, ProfileProperty, random generators)
**Improved:**
- Added comprehensive JSDoc comments to all exported functions
- Organized code into clear sections (Initialization, Profile, Events, Forms, Push)
- Simplified error handling with consistent patterns
- Better function descriptions explaining purpose and behavior
- Noted iOS-only methods where applicable
The wrapper now contains only the functions actually used by the example app,
making it cleaner, easier to understand, and better as a reference for developers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
� Conflicts:
� example/src/AppViewInterface.ts
� example/src/KlaviyoReactWrapper.ts1 parent dab439a commit 6c775f7
2 files changed
+129
-332
lines changedThis file was deleted.
0 commit comments