analytics-kotlin:1.10.3 + destinations-amplitude:1.5.2 make R8 build fail due to missing classes
julioromano opened this issue · comments
Steps to reproduce
Apply both these dependencies to an android project:
"com.segment.analytics.kotlin:android:1.10.3"
"com.segment.analytics.kotlin.destinations:amplitude:1.5.2"
Enable proguard and build it.
Build will fail with this error:
ERROR:R8: Missing class com.segment.analytics.kotlin.core.platform.plugins.logger.LogFilterKind (referenced from: com.segment.analytics.kotlin.core.BaseEvent com.segment.analytics.kotlin.destinations.amplitude.AmplitudeSession.alias(com.segment.analytics.kotlin.core.AliasEvent) and 4 other contexts)
Missing class com.segment.analytics.kotlin.core.platform.plugins.logger.LogTargetKt (referenced from: com.segment.analytics.kotlin.core.BaseEvent com.segment.analytics.kotlin.destinations.amplitude.AmplitudeSession.alias(com.segment.analytics.kotlin.core.AliasEvent) and 4 other contexts)
Downgrading to 1.10.2 solves the issue.
hey @julioromano, thanks for bring this to our attention. we'll get the amplitude destination updated asap
@julioromano the amplitude destination 1.5.3 is live. please try it out.
The fix has been verified ok. Thanks!