Skip to content

Conversation

lfkellogg
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 14, 2023

Coverage Report 1

Affected Products

  • firebase-appdistribution

    Overall coverage changed from ? (05f8d44) to 0.00% (b9aaa74) by ?.

    66 individual files with coverage change

    FilenameBase (05f8d44)Merge (b9aaa74)Diff
    AabUpdater.java?0.00%?
    AabUpdater_Factory.java?0.00%?
    ApkInstaller.java?0.00%?
    ApkInstaller_Factory.java?0.00%?
    ApkUpdater.java?0.00%?
    ApkUpdater_Factory.java?0.00%?
    AppDistributionReleaseImpl.java?0.00%?
    AppDistributionReleaseInternal.java?0.00%?
    AppDistroComponent.java?0.00%?
    AppDistroComponent_MainModule_BindContentResolverFactory.java?0.00%?
    AppIconSource.java?0.00%?
    AppIconSource_Factory.java?0.00%?
    AutoValue_AppDistributionReleaseImpl.java?0.00%?
    AutoValue_AppDistributionReleaseInternal.java?0.00%?
    AutoValue_ImageUtils_ImageSize.java?0.00%?
    AutoValue_TesterApiDisabledErrorDetails.java?0.00%?
    AutoValue_TesterApiDisabledErrorDetails_HelpLink.java?0.00%?
    AutoValue_UpdateProgressImpl.java?0.00%?
    DaggerAppDistroComponent.java?0.00%?
    ErrorMessages.java?0.00%?
    FeedbackActivity.java?0.00%?
    FeedbackActivity_MembersInjector.java?0.00%?
    FeedbackSender.java?0.00%?
    FeedbackSender_Factory.java?0.00%?
    FeedbackTrigger.java?0.00%?
    FirebaseAppDistributionExceptions.java?0.00%?
    FirebaseAppDistributionFileProvider.java?0.00%?
    FirebaseAppDistributionImpl.java?0.00%?
    FirebaseAppDistributionImpl_Factory.java?0.00%?
    FirebaseAppDistributionLifecycleNotifier.java?0.00%?
    FirebaseAppDistributionLifecycleNotifier_Factory.java?0.00%?
    FirebaseAppDistributionNotificationsManager.java?0.00%?
    FirebaseAppDistributionNotificationsManager_Factory.java?0.00%?
    FirebaseAppDistributionRegistrar.java?0.00%?
    FirebaseAppDistributionTesterApiClient.java?0.00%?
    FirebaseAppDistributionTesterApiClient_Factory.java?0.00%?
    HttpsUrlConnectionFactory.java?0.00%?
    HttpsUrlConnectionFactory_Factory.java?0.00%?
    ImageUtils.java?0.00%?
    InstallActivity.java?0.00%?
    LogWrapper.java?0.00%?
    NewReleaseFetcher.java?0.00%?
    NewReleaseFetcher_Factory.java?0.00%?
    PackageInfoUtils.java?0.00%?
    ReleaseIdentifier.java?0.00%?
    ReleaseIdentifier_Factory.java?0.00%?
    ReleaseUtils.java?0.00%?
    ScreenshotTaker.java?0.00%?
    ScreenshotTaker_Factory.java?0.00%?
    SequentialReference.java?0.00%?
    SignInResultActivity.java?0.00%?
    SignInStorage.java?0.00%?
    SignInStorage_Factory.java?0.00%?
    TakeScreenshotAndStartFeedbackActivity.java?0.00%?
    TakeScreenshotAndStartFeedbackActivity_MembersInjector.java?0.00%?
    TaskCache.java?0.00%?
    TaskCompletionSourceCache.java?0.00%?
    TaskUtils.java?0.00%?
    TesterApiDisabledErrorDetails.java?0.00%?
    TesterApiHttpClient.java?0.00%?
    TesterApiHttpClient_Factory.java?0.00%?
    TesterSignInManager.java?0.00%?
    TesterSignInManager_Factory.java?0.00%?
    UpdateProgressImpl.java?0.00%?
    UpdateTaskCache.java?0.00%?
    UpdateTaskImpl.java?0.00%?

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2023

Unit Test Results

185 tests   185 ✔️  50s ⏱️
  17 suites      0 💤
  17 files        0

Results for commit 24456dc.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 14, 2023

Size Report 1

Affected Products

  • base

    TypeBase (05f8d44)Merge (b9aaa74)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.65 kB? (?)
  • firebase-appdistribution

    TypeBase (05f8d44)Merge (b9aaa74)Diff
    aar?245 kB? (?)
    apk (aggressive)?904 kB? (?)
    apk (release)?2.64 MB? (?)
  • firebase-appdistribution-api

    TypeBase (05f8d44)Merge (b9aaa74)Diff
    aar?16.0 kB? (?)
    apk (aggressive)?112 kB? (?)
    apk (release)?1.27 MB? (?)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 14, 2023

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Startup time comparison between the CI merge commit (b9aaa74) and the base commit (05f8d44) are not available.

No macrobenchmark data found for the base commit (05f8d44). Analysis for the CI merge commit (b9aaa74) can be found at:

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

@kaibolay kaibolay changed the title Support PNGs as feedback screenshots and set content-type/filename Support JPGs (in addition to PNGs) as feedback screenshots and set correct content-type/filename Mar 14, 2023
String.format(
"Unable to get filename from URI '%s', using default '%s'",
contentUri, DEFAULT_FILENAME));
return DEFAULT_FILENAME;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be based on the content type (if we were able to figure that out), so have a default filename for each (supported) content type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I am also letting unknown content types through, with a filename with no extension. It will still fail to upload in our backend but this way we're less rigid in the SDK, and can always add support for more file types in the backend.

"Error getting filename from URI '%s', using default '%s'",
contentUri, DEFAULT_FILENAME),
e);
return DEFAULT_FILENAME;
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@lfkellogg lfkellogg marked this pull request as ready for review March 14, 2023 20:10
} else if (screenshotUri.getScheme().equals("content")) {
contentType = contentResolver.getType(screenshotUri);
}
if (contentType == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd flip the condition:

  if (contentType != null} {
    return contentType;
  }
  LogWrapper...
  return CONTENT_TYPE_PNG

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@lfkellogg lfkellogg merged commit 5127f45 into fad/next Mar 14, 2023
@lfkellogg lfkellogg deleted the lk/support-pngs branch March 14, 2023 20:55
lfkellogg added a commit that referenced this pull request Mar 14, 2023
…rrect content-type/filename (#4783)

* Support PNGs as feedback screenshots

* Add tests and inject ContentResolver

* Address feedback

* Flip order of conditional
lfkellogg added a commit that referenced this pull request Mar 15, 2023
* Some App Distribution javadoc updates (#4740)

* Support JPGs (in addition to PNGs) as feedback screenshots and set correct content-type/filename (#4783)

* Support PNGs as feedback screenshots

* Add tests and inject ContentResolver

* Address feedback

* Flip order of conditional

* Update changelog and version for M129
@firebase firebase locked and limited conversation to collaborators Apr 14, 2023
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.

3 participants