-
Notifications
You must be signed in to change notification settings - Fork 614
Feature Request: Bundle Sources in Maven SDK Distribution #6
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
Comments
i totally agree it would be better in a bundle, |
This sounds like a great idea. I have one question. Since our SDKs are proguarded, would this still have value if source names (and possibly code) don't have a 1:1 mapping with the classes we produce? |
Well, my first thought on this is: don't minify the SDK! The cat's already out of the bag, given that we're discussing this on GH! 😄 However, since I get that large orgs move slowly, having un-minified sources bundled with minified binaries is fine as a stopgap. |
The TL;DR of the next bit is, I am trying to get buy in to stop proguarding the open source SDKs this week. If I can, I'll make both changes by the next time we release these SDKs. Just as an update, I'm trying to get buy-in to stop proguarding our open source SDKs.
|
Totally makes sense! RE size impact, what if you offered two binaries: minified and un-minified?
Thoughts? |
@ParthPadg we've thought about that too, but that would create confusion and probably end up with a lot of people just shipping As @bjornick said we are making real progress towards removing proguard from at least some of the SDKs. In my personal opinion once we remove it in a few places and world civilization fails to collapse, we'll have much more momentum to do it more broadly. |
Good news, we'll stop proguarding our open source SDKs. Would you still want the source jars there as well? If so, I'll track the removal of proguard in a separate issue. |
I'll admit a bit of ignorance RE difference between source JARs versus a non-minified binary...does one have javadocs + comments out-of-the-box? |
When can we expect the non-proguarded version to land? Also the README mentions this repository does not contain all the source for SDK. What's missing and why? |
|
An update here: you can now use "Go to definition" in Android Studio to see source code for all of our open-source SDKs: However you'll notice that this Java view is produced by Android Studio on the fly by decompiling the If we were to ship source JARs, Android Studio (and other tools) would have access to the original The question is: is there much more value to this than what we have now? |
It's an awesome start! But the Android Studio tooling is not as string with decompiled sources as it is with actual sources -- things like Find Usage Of don't work as well. It's definitely not a blocker, but the point of shipping un-minified is to aid in developer understanding...so this seems like the logical next step. |
In my opinion, including original java sources brings a lot of value:
|
Hey folks, great news. All releases of our open-source SDKs going forward will contain sources.jar. The first one to come out is firestore and firestore-ktx in the coming days. |
What feature would you like to see?
First off, I think it's awesome that the Firebase SDK is being open-sourced. However, as an Android developer, my primary use-case for open source is being able to explore the sources from inside Android Studio.
Thus, I think it'd be even more awesome if y'all should ship the sources as part of the Maven bundle that we request through Gradle.
The text was updated successfully, but these errors were encountered: