-
Notifications
You must be signed in to change notification settings - Fork 571
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
Applying CrashlyticsExtension in a convention plugin #6131
Comments
Hi @nuhkoca, thank you for reaching out. I tried reproducing the issue, however, I'm not familiar with composite build so I was having difficulty. By any chance, could you share an MCVE to help us investigate the issue? Could you check, if it's possible, if the import for
|
Hi @lehcar09 thanks for getting back to me. Will prepare a reproducible for you and let you know here |
Hey @nuhkoca, we'll keep the needs-info tag for now. Don't worry if the issue closes due to stale, we can always reopen this once we have new information. Thanks! |
Hey @lehcar09 please find the repro: https://github.com/nuhkoca/firebase-crashlytics-convention-plugin-repro |
@lehcar09 you looked into this by any chance? |
Thank you for the repro you shared @nuhkoca. I was able to reproduce the issue you raised. After some debugging, it looks like the issue occurs because of incorrect context. The Crashlytics configuration applies to the specific build type. After changing to
Could you check if this works for you? |
@lehcar09 ohh cool that worked, thanks for helping out! Still would like it to work under |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
We use
build-logic
composite build in our project to manage and share common build logic across the project. We almost have a convention plugin for everything. Recently, we decided to create another one forFirebase
setup such asApp Distribution
,Crashlytics
andPerformance
. Whereas,App Distribution
andPerformance
were moved without any hassle, however,Crashlytics
is throwing an exception when trying to configure it in a convention plugin as following:Relevant Code:
Version
plugin-firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "firebaseCrashlytics" }
build-logic:convention/build.gradle.kts
Convention Plugin
configureFirebase
functionThe text was updated successfully, but these errors were encountered: