Skip to content

Commit 6c775f7

Browse files
author
Evan Masseau
committed
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.ts
1 parent dab439a commit 6c775f7

File tree

2 files changed

+129
-332
lines changed

2 files changed

+129
-332
lines changed

example/src/AppViewInterface.ts

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)