Skip to content

Conversation

emilypgoogle
Copy link
Collaborator

Adds a new field for firebase libraries to enable kotlindoc-only publishing if they publish docs. This has been enabled for Dataconnect as well. When this is enabled, no android folder is generated by Dackka.

Copy link
Contributor

github-actions bot commented Sep 4, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @emilypgoogle, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new configuration option for Firebase libraries, allowing them to specify that only Kotlin documentation should be published. This change streamlines the documentation process by preventing the generation of Java documentation artifacts by Dackka when not needed. The new setting has been applied to the Dataconnect library as an initial implementation.

Highlights

  • New Configuration Option: Introduced "onlyPublishKotlindoc" property in FirebaseLibraryExtension to control documentation publishing behavior, allowing libraries to specify that only Kotlin documentation should be generated.
  • Dataconnect Integration: Enabled the new "onlyPublishKotlindoc" setting for the firebase-dataconnect library, ensuring it publishes only Kotlin documentation and avoids Java documentation artifacts.
  • Dackka Generation Logic Update: Modified the Dackka documentation generation task to respect the "onlyPublishKotlindoc" flag, preventing the creation of the "android" folder (Java documentation) when this setting is true.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new onlyPublishKotlindoc flag for Firebase libraries, allowing them to generate only Kotlindoc documentation and skip Javadoc. The changes are well-implemented across the Gradle plugins. My review includes a couple of suggestions to improve code clarity and adhere to Kotlin best practices. One suggestion is to refactor a variable assignment to be more idiomatic and immutable. The other is to enhance the documentation for the new flag to clarify its dependency on the existing publishJavadoc flag.

Copy link
Contributor

github-actions bot commented Sep 4, 2025

plugins test results

67 tests   67 ✅  1m 20s ⏱️
12 suites   0 💤
12 files     0 ❌

Results for commit e845dac.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 4, 2025

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 4, 2025

Coverage Report 1

Affected Products

  • firebase-database

    Overall coverage changed from 50.41% (ca9ec52) to 50.38% (0ea5911) by -0.03%.

    FilenameBase (ca9ec52)Merge (0ea5911)Diff
    ChildChangeAccumulator.java96.67%83.33%-13.33%
    DefaultPersistenceManager.java74.76%75.73%+0.97%
  • firebase-firestore

    Overall coverage changed from 45.76% (ca9ec52) to 45.75% (0ea5911) by -0.00%.

    FilenameBase (ca9ec52)Merge (0ea5911)Diff
    PatchMutation.java100.00%98.39%-1.61%
  • firebase-messaging

    Overall coverage changed from 84.32% (ca9ec52) to 84.17% (0ea5911) by -0.15%.

    FilenameBase (ca9ec52)Merge (0ea5911)Diff
    FirebaseMessaging.java76.00%75.60%-0.40%
    Metadata.java41.27%36.51%-4.76%
  • firebase-storage

    Overall coverage changed from 84.97% (ca9ec52) to 85.31% (0ea5911) by +0.34%.

    FilenameBase (ca9ec52)Merge (0ea5911)Diff
    StorageException.java65.45%69.09%+3.64%
    StorageTask.java83.38%83.99%+0.60%
    UploadTask.java81.85%83.17%+1.32%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/78Ph2pIwRV.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 4, 2025

Startup Time Report 1

The report is too large (117,082 chars) to be displayed on GitHub. Please check this report on GCS.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/SD2jWavMCH/index.html

@emilypgoogle emilypgoogle merged commit c965745 into main Sep 8, 2025
167 of 170 checks passed
@emilypgoogle emilypgoogle deleted the ep/kotlindoc-only-publishing branch September 8, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants