To use Trikot.analytics/Mixpanel
with iOS, you must export analytics
and analytics-iosarm64
module in your exported framework. See Trikot.patron build.gradle file for a sample use case.
ENV['TRIKOT_FRAMEWORK_NAME']='ReplaceMeByTheFrameworkNameImportedByCocoaPods'
pod 'Trikot/analytics.Mixpanel', :git => 'https://github.com/mirego/trikot.git', :tag => properties['trikot_version']
Then, run pod install
.
Configure mixpanel like usual with ``
import Trikot_analytics
import Mixpanel
// in application didFinishLaunchingWithOptions
Mixpanel.initialize(token: YourMixpanelToken)
AnalyticsConfiguration().analyticsManager = MixpanelAnalyticsService()