Mixpanel makes every effort to optimize the Android SDK to be as lightweight as possible while simultaneously supporting complex features such as A/B testing, codeless event tracking, and push notification services.
While there isn't a way to reduce the impact of the Mixpanel library on the size of your apk, if your size constraints prevents you from using the Mixpanel Android SDK, there are a couple of alternatives you might consider:
- Integrate with the Java library directly.
- Hit the Mixpanel HTTP API directly by generating manual HTTP requests to trigger event/people updates.
Generally speaking, the recommended approach is to use the Mixpanel client-side libraries if possible, as they support a wide range of features (like surveys, A/B testing, push notifications, etc.) that would not be accessible via either of the options above.