Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 28 or lower support #45

Open
marcelpallares opened this issue Sep 27, 2022 · 1 comment
Open

Android 28 or lower support #45

marcelpallares opened this issue Sep 27, 2022 · 1 comment

Comments

@marcelpallares
Copy link

We are adding the Segment Firebase integration but it's crashing for devices on Android 28 or lower (our min SDK is 26).

I see there is a vague mention in the README file about this and it points to a link without much explanation to use the version 1.2.0.
Is using 1.2.0 the only way of making the integration work on Android 28 and lower?
What do we do with higher versions, do they get stuck forever in 1.2.0?

@AndrazP
Copy link

AndrazP commented Sep 28, 2022

README is very confusing.
What does “For Android 28 or Lower: here” mean? Are you referring to targetSdk, maybe minSdk?

README is actually mentioning “To avoid issues with app crashes please implement using the aar package.” But that was not enough. Adding transitive = true finally solved the crashes for me.

    implementation('com.segment.analytics.android.integrations:firebase:2.3.3@aar') {
        transitive = true
    }

Bonus if you are using version catalog:

analytics-segment-firebase = "com.segment.analytics.android.integrations:firebase:2.3.3"

implementation(libs.analytics.segment.firebase) {
    transitive = true
    artifact {
        type = "aar"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants