0

Currently, I'm working on integration of Firebase Google Analytics 4 with MParticle.

After adding dependency:

com.mparticle:android-googleanalyticsfirebasega4-kit:5+

I've noticed the following stack trace:

Apptimize: Apptimize did not detect Flurry. If you are using Flurry, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Google Analytics V3. If you are using Google Analytics V3, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Google Analytics V4. If you are using Google Analytics V4, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Mixpanel. If you are using Mixpanel, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Omniture 2.x. If you are using Omniture 2.x, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Adobe AppMeasurement 3.x. If you are using Adobe AppMeasurement 3.x, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Adobe Mobile 4.x Config class.

Apptimize: Apptimize did not detect Adobe Mobile 4.x Analytics and will not import its event data. If you are using Adobe Mobile 4.x, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Localytics. If you are using Localytics, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Apptimize: Apptimize did not detect Amplitude. If you are using Amplitude, then the most likely cause is ProGuard. Please consult the Apptimize docs for how to adjust your ProGuard configuration.

Before adding GA4 dependency things were working just fine.

Proguard is setup according to the documentation.

Here is my dependencies:

// mParticle
    mParticle = "com.mparticle:android-core:${versions.mParticle}"
    // mParticle Braze Kit
    braze = "com.mparticle:android-appboy-kit:${versions.mParticle}"
    // mParticle Apptimize Kit
    apptimize = "com.mparticle:android-apptimize-kit:${versions.mParticle}"
    // Adjust Kit
    adjustKit = "com.mparticle:android-adjust-kit:${versions.mParticle}"
    // Firebase for GA4
    mParticleGa4 = "com.mparticle:android-googleanalyticsfirebasega4-kit:${versions.mParticle}"

What I tried to do:

  • tried to change the dependency version (same for all packages)
  • check proguard rules
  • contact support :(

My proguard:

-keep class com.apptimize.** { *; }
-keepclassmembers class * extends com.apptimize.ApptimizeTest {
    <methods>;
}

-keep class android.support.v4.view.ViewPager
-keepclassmembers class android.support.v4.view.ViewPager$LayoutParams { *; }
-keep class android.support.v4.app.Fragment { *; }

-keep class com.mixpanel.android.mpmetrics.MixpanelAPI { *; }
-keep class com.google.android.gms.analytics.Tracker { *; }
-keep class com.google.analytics.tracking.android.Tracker { *; }
-keep class com.flurry.android.FlurryAgent { *; }
-keep class com.omniture.AppMeasurementBase { *; }
-keep class com.adobe.adms.measurement.ADMS_Measurement { *; }
-keep class com.adobe.mobile.Analytics { *; }
-keep class com.adobe.mobile.Config { *; }
-keep class com.localytics.android.Localytics { *; }
Taxist Samael
  • 1,157
  • 1
  • 9
  • 23

0 Answers0