Skip to content

Add Javadoc support to the DackkaPlugin #4082

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

Merged
merged 4 commits into from
Sep 14, 2022

Conversation

daymxn
Copy link
Member

@daymxn daymxn commented Sep 13, 2022

In accordance with b/245753889, this adds support to the DackkaPlugin to generate Javadoc variants.

More specifically this:

  • Removes the deleteDackkaGeneratedJavaReferences task
  • Refactors copyOutputToCommonDirectory to two separate task
  • Adds a new task to copy the Javadoc output via copyJavaDocToCommonDirectory
  • Adds a new task to copy the Kotlindoc output via copyKotlinDocToCommonDirectory
  • Adds an extension method to the Copy task in gradle for copying individual directories
  • Fixes the DackkaPlugin documentation to reflect the new changes

Keep in mind that the current implementation in this pr requires the project setting dackkaJavadoc to be equal to true, otherwise Dackka won't copy the Javadoc output to the root directory.

For example, running ./gradlew :firebase-common:kotlindoc will yield this at the root build directory

firebase-kotlindoc/
  kotlin/

Wheres running this ./gradlew -PdackkaJavadoc=true :firebase-common:kotlindoc will yield this at the root build directory

firebase-kotlindoc/
  kotlin/
  android/

Android contains the Firesite ready Javadoc files for staging.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 13, 2022

buildSrc Test Results

18 tests   18 ✔️  3m 26s ⏱️
  4 suites    0 💤
  4 files      0

Results for commit d571de8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 13, 2022

Unit Test Results

   394 files  +   394     394 suites  +394   17m 54s ⏱️ + 17m 54s
4 717 tests +4 717  4 695 ✔️ +4 695  22 💤 +22  0 ±0 
4 733 runs  +4 733  4 711 ✔️ +4 711  22 💤 +22  0 ±0 

Results for commit d571de8. ± Comparison against base commit e6226b7.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 13, 2022

Size Report 1

Affected Products

  • firebase-perf

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?2.47 MB? (?)
  • firebase-perf-ktx

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?3.03 MB? (?)
  • firebase-segmentation

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?712 kB? (?)
  • firebase-storage

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?1.01 MB? (?)
  • firebase-storage-ktx

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?1.57 MB? (?)
  • protolite-well-known-types

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?663 kB? (?)
  • transport-api

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?14.9 kB? (?)
  • transport-backend-cct

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?105 kB? (?)
  • transport-runtime

    TypeBase (e6226b7)Merge (e271122)Diff
    apk (release)?83.0 kB? (?)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 13, 2022

Coverage Report 1

Affected Products

  • firebase-appdistribution

    Overall coverage changed from ? (e6226b7) to 79.31% (e271122) by ?.

    34 individual files with coverage change

    FilenameBase (e6226b7)Merge (e271122)Diff
    AabUpdater.java?98.68%?
    ApkInstaller.java?96.88%?
    ApkUpdater.java?93.75%?
    AppDistributionReleaseImpl.java?100.00%?
    AppDistributionReleaseInternal.java?100.00%?
    AppIconSource.java?85.71%?
    AutoValue_AppDistributionReleaseImpl.java?65.45%?
    AutoValue_AppDistributionReleaseInternal.java?66.67%?
    AutoValue_TesterApiDisabledErrorDetails.java?29.41%?
    AutoValue_TesterApiDisabledErrorDetails_HelpLink.java?54.17%?
    AutoValue_UpdateProgressImpl.java?65.96%?
    ErrorMessages.java?0.00%?
    FirebaseAppDistributionExceptions.java?80.00%?
    FirebaseAppDistributionFileProvider.java?0.00%?
    FirebaseAppDistributionImpl.java?94.90%?
    FirebaseAppDistributionLifecycleNotifier.java?75.00%?
    FirebaseAppDistributionNotificationsManager.java?80.00%?
    FirebaseAppDistributionRegistrar.java?92.59%?
    FirebaseAppDistributionTesterApiClient.java?87.63%?
    HttpsUrlConnectionFactory.java?50.00%?
    InstallActivity.java?2.53%?
    LogWrapper.java?53.33%?
    NewReleaseFetcher.java?77.55%?
    PackageInfoUtils.java?42.86%?
    ReleaseIdentifier.java?88.00%?
    ReleaseUtils.java?83.33%?
    SignInResultActivity.java?0.00%?
    SignInStorage.java?57.14%?
    TaskUtils.java?96.30%?
    TesterApiDisabledErrorDetails.java?93.75%?
    TesterApiHttpClient.java?89.19%?
    TesterSignInManager.java?93.62%?
    UpdateProgressImpl.java?100.00%?
    UpdateTaskImpl.java?75.71%?

  • firebase-database

    FilenameBase (e6226b7)Merge (e271122)Diff
    ChildChangeAccumulator.java83.33%96.67%+13.33%
    WebsocketConnection.java35.03%32.77%-2.26%

Test Logs

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

@daymxn daymxn merged commit 0c11f12 into master Sep 14, 2022
@daymxn daymxn deleted the daymon-add-javadoc-support-to-dackka branch September 14, 2022 17:45
kaibolay added a commit that referenced this pull request Sep 15, 2022
* Deflake firebase_common HeartBeat tests. (#4083)

The tests relied on `TestOnCompleteListener` that was not safe to call
more than once since it was based on a count down latch. So reusing it
multiple times would cause await() to return immediately.

This change makes it so that a new latch is created for every await()
call, making all await() calls work.

Fixes: http://b/245956774

* Add Javadoc support to the DackkaPlugin (#4082)

* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task

* Add reference to kotlin stdlib package list (#4093)

Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>
kaibolay added a commit that referenced this pull request Sep 15, 2022
* Minor updates to the App Distribution test app. (#4088)

* Update various versions (#4090)

* Updated various versions (dependencies and SDK to fix Android resource linking failure (AAPT: error: resource android:attr/lStar not found.)

* Update compileSdk/targetSdkVersion from 31 to 33

* Update with latest changes from master (#4091)

* Deflake firebase_common HeartBeat tests. (#4083)

The tests relied on `TestOnCompleteListener` that was not safe to call
more than once since it was based on a count down latch. So reusing it
multiple times would cause await() to return immediately.

This change makes it so that a new latch is created for every await()
call, making all await() calls work.

Fixes: http://b/245956774

* Add Javadoc support to the DackkaPlugin (#4082)

* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task

* Add reference to kotlin stdlib package list (#4093)

Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>

Co-authored-by: Lee Kellogg <[email protected]>
Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>
kaibolay added a commit that referenced this pull request Sep 15, 2022
* Deflake firebase_common HeartBeat tests. (#4083)

The tests relied on `TestOnCompleteListener` that was not safe to call
more than once since it was based on a count down latch. So reusing it
multiple times would cause await() to return immediately.

This change makes it so that a new latch is created for every await()
call, making all await() calls work.

Fixes: http://b/245956774

* Add Javadoc support to the DackkaPlugin (#4082)

* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task

* Add reference to kotlin stdlib package list (#4093)

Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>
kaibolay added a commit that referenced this pull request Sep 15, 2022
* Minor updates to the App Distribution test app. (#4088)

* Update various versions (#4090)

* Updated various versions (dependencies and SDK to fix Android resource linking failure (AAPT: error: resource android:attr/lStar not found.)

* Update compileSdk/targetSdkVersion from 31 to 33

* Update with latest changes from master (#4091)

* Deflake firebase_common HeartBeat tests. (#4083)

The tests relied on `TestOnCompleteListener` that was not safe to call
more than once since it was based on a count down latch. So reusing it
multiple times would cause await() to return immediately.

This change makes it so that a new latch is created for every await()
call, making all await() calls work.

Fixes: http://b/245956774

* Add Javadoc support to the DackkaPlugin (#4082)

* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task

* Add reference to kotlin stdlib package list (#4093)

Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>

* Resolve strict mode violations in firebase-appdistribution (#4092)

* merge master into fad/next (#4102)

* Deflake firebase_common HeartBeat tests. (#4083)

The tests relied on `TestOnCompleteListener` that was not safe to call
more than once since it was based on a count down latch. So reusing it
multiple times would cause await() to return immediately.

This change makes it so that a new latch is created for every await()
call, making all await() calls work.

Fixes: http://b/245956774

* Add Javadoc support to the DackkaPlugin (#4082)

* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task

* Add reference to kotlin stdlib package list (#4093)

Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>

Co-authored-by: Lee Kellogg <[email protected]>
Co-authored-by: Vladimir Kryachko <[email protected]>
Co-authored-by: Daymon <[email protected]>
Co-authored-by: emilypgoogle <[email protected]>
qdpham13 pushed a commit that referenced this pull request Sep 20, 2022
* Add util method for copying directories

* Add javadoc support to our dackka plugin

* Remove the extension check on fromDirectory

* Add a note about cache compliance and the javadoc task
@firebase firebase locked and limited conversation to collaborators Oct 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants