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
Firebase Crashlytics Gradle Plugins become unresolved after migrating to versions.properties
#405
Comments
versions.properties
versions.properties
versions.properties
You need to use the Unfortunately, the issue is that the Firebase BoM used to include the Gradle plugin, but no longer does. We have a plan to improve our dependency notations so that the default is the working one. |
Ahhh, noted, yes, we're currently using BoM for Firebase, well noted then, will use the |
This is so unfortunate, after using the |
You have a clash between your dependencies and the ones from refreshVersions. The Firebase object from refreshVersions is used and uses camelCase, not snake_case. |
@jmfayard Can we make buildSrcLibs avoid clashes like that one? |
Does this issue already opened, or should I create a feature request for this one? |
Next version of refreshVersions will improve bundled Firebase dependency notations. Hopefully, it helps. In the meantime, just stick to plain hardcoded dependency notations and use the version placeholder (the underscore |
Removing our previous |
refreshVersions 0.20.0 is out with updated dependency notations. If it still doesn't work on your end, please link us a minimal reproducing project. |
android-agentapp.zip here's our private internal project, we also remove everything from credentials and our entire codebase, except the build.gradle(.kts) and a few scripting files |
we also updated to the version // implementation(Square.Retrofit2.retrofit) {
// exclude(group = "com.squareup.okhttp3")
// because("version 3.x pulled from retrofit")
// } please let us know if need anything 🙏 thank you ❤️ |
The issue is that |
looks like this is issue on firebase gradle plugins unsupported to GKD (Gradle Kotlin DSL) itself, cmiiw? |
BTW, posting big screenshots isn't very helpful to us. Giving the relevant part of the error messages, and any relevant small snippet is much less overwhelming for us, and we can sometimes reply when on mobile, which is hardly doable with these gigantic screenshots. |
well noted, my apologize for the screenshot, I should've resize it before commenting 🙏 :D
Thanks again for confirming this 🙏 |
It supports it, but you cannot configure it the way you're doing. Just search for "firebase crashlytics kotlin dsl" on Google and you'll get the info you need to do what you want. |
found it! thanks again! for future readers, see workaround using this: // app/build.gradle.kts
plugins {
//...
id("com.google.firebase.crashlytics")
}
android {
buildTypes {
getByName("release") {
(this as ExtensionAware).configure<CrashlyticsExtension> {
mappingFileUploadEnabled = true
nativeSymbolUploadEnabled = true
// etc.
}
}
}
} or // app/build.gradle.kts
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension
android {
buildTypes{
getByName("release") {
configure<CrashlyticsExtension> {
mappingFileUploadEnabled = false // to disable mapping file uploads (default=true if minifying)
nativeSymbolUploadEnabled = true // to enable NDK symbol file uploading (default=false)
unstrippedNativeLibsDir = "path/to/libs" // optional override to change the default unstripped native library path, only used in NDK builds
}
}
}
} ref: |
🐛 Describe the bug
Really not sure if this is
firebase-crashlytics-gradle
issue orrefreshVersions
, before adding therefreshVersions
, we were able to use any gradle API fromfirebase-crashlytics-gradle
.✅ Expected behavior
The
refreshVersions
able to coexist withfirebase-crashlytics-gradle
💣 Steps to reproduce
Not sure what/which information to provide here, but here's my config:
📱 Tech info
The text was updated successfully, but these errors were encountered: