Skip to content

Add shake for feedback to test app #4138

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 1 commit into from
Sep 27, 2022

Conversation

lfkellogg
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 22, 2022

Coverage Report 1

Affected Products

  • firebase-appdistribution

    Overall coverage changed from ? (11ce2cd) to 78.16% (7804325) by ?.

    39 individual files with coverage change

    FilenameBase (11ce2cd)Merge (7804325)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_ImageUtils_ImageSize.java?35.00%?
    AutoValue_TesterApiDisabledErrorDetails.java?29.41%?
    AutoValue_TesterApiDisabledErrorDetails_HelpLink.java?54.17%?
    AutoValue_UpdateProgressImpl.java?65.96%?
    ErrorMessages.java?0.00%?
    FeedbackActivity.java?1.89%?
    FeedbackSender.java?90.91%?
    FirebaseAppDistributionExceptions.java?80.00%?
    FirebaseAppDistributionFileProvider.java?0.00%?
    FirebaseAppDistributionImpl.java?94.29%?
    FirebaseAppDistributionLifecycleNotifier.java?98.00%?
    FirebaseAppDistributionNotificationsManager.java?80.00%?
    FirebaseAppDistributionRegistrar.java?81.58%?
    FirebaseAppDistributionTesterApiClient.java?87.63%?
    HttpsUrlConnectionFactory.java?50.00%?
    ImageUtils.java?96.00%?
    InstallActivity.java?2.53%?
    LogWrapper.java?62.50%?
    NewReleaseFetcher.java?77.55%?
    PackageInfoUtils.java?42.86%?
    ReleaseIdentifier.java?88.00%?
    ReleaseUtils.java?83.33%?
    ScreenshotTaker.java?66.67%?
    SignInResultActivity.java?0.00%?
    SignInStorage.java?42.86%?
    TaskUtils.java?96.30%?
    TesterApiDisabledErrorDetails.java?93.75%?
    TesterApiHttpClient.java?89.47%?
    TesterSignInManager.java?93.62%?
    UpdateProgressImpl.java?100.00%?
    UpdateTaskImpl.java?75.71%?

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 22, 2022

Size Report 1

Affected Products

  • base

    TypeBase (11ce2cd)Merge (7804325)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.65 kB? (?)
  • firebase-annotations

    TypeBase (11ce2cd)Merge (7804325)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.89 kB? (?)
  • firebase-appdistribution

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?154 kB? (?)
    apk (aggressive)?882 kB? (?)
    apk (release)?2.01 MB? (?)
  • firebase-appdistribution-api

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?14.7 kB? (?)
    apk (aggressive)?85.7 kB? (?)
    apk (release)?689 kB? (?)
  • firebase-common

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?50.1 kB? (?)
    apk (aggressive)?85.1 kB? (?)
    apk (release)?683 kB? (?)
  • firebase-components

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?42.8 kB? (?)
    apk (aggressive)?8.68 kB? (?)
    apk (release)?31.9 kB? (?)
  • firebase-installations

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?54.9 kB? (?)
    apk (aggressive)?86.4 kB? (?)
    apk (release)?706 kB? (?)
  • firebase-installations-interop

    TypeBase (11ce2cd)Merge (7804325)Diff
    aar?8.06 kB? (?)
    apk (aggressive)?65.0 kB? (?)
    apk (release)?651 kB? (?)

Test Logs

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

@lfkellogg lfkellogg force-pushed the lk/shake-for-feedback branch from 335ac81 to 59d4b55 Compare September 27, 2022 16:08
@lfkellogg lfkellogg requested a review from kaibolay September 27, 2022 16:09
@lfkellogg lfkellogg force-pushed the lk/shake-for-feedback branch from 59d4b55 to fcc4fe8 Compare September 27, 2022 17:14
import android.app.Application

class AppDistroTestApplication : Application() {
override fun onCreate() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to this PR, but should we move more initialization code from MainActiviry.onCreate() to here?

Also, I'm curious: Would this also work if we added it to MainActivity.onCreate()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated to this PR, but should we move more initialization code from MainActiviry.onCreate() to here?

Yes I think so. I'm interested in trying to make the screenshot trigger work this way: you enable it in the Application class, and then it listens to lifecycle callbacks and attached to each Activity as it starts.

Also, I'm curious: Would this also work if we added it to MainActivity.onCreate()?

If we just picked this up and moved it there, then you run the risk of calling enable() multiple times if there are other activities in the app. I believe that would register multiple lifecycle callbacks on the Application. We could prevent that from happening by only allowing it to be enabled once. But I think it makes sense to initialize this in the Application since it enables application-wide functionality.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, makes sense. Let's explore moving the initialization code here in a separate PR once this one is merged.

Also, I think we should restore the button to launch the second activity so we can test those scenarios. Maybe you can do that when adding the radio buttons.

@lfkellogg lfkellogg merged commit feab0b3 into fad/in-app-feedback Sep 27, 2022
@lfkellogg lfkellogg deleted the lk/shake-for-feedback branch September 27, 2022 20:39
@firebase firebase locked and limited conversation to collaborators Oct 28, 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.

3 participants