Skip to content

Add version name to header #3430

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 2 commits into from
Feb 10, 2022
Merged

Add version name to header #3430

merged 2 commits into from
Feb 10, 2022

Conversation

rachaprince
Copy link

Adds version name to the header for adoption metrics

Screenshot from the networks tab of Android Studio:
image

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 10, 2022

Coverage Report 1

Affected Products

  • firebase-appdistribution

    Overall coverage changed from 76.43% (3f29bba) to 76.47% (deb5802) by +0.03%.

    FilenameBase (3f29bba)Merge (deb5802)Diff
    FirebaseAppDistributionTesterApiClient.java91.21%91.40%+0.19%

Test Logs

Notes

  • Commit (deb5802) is created by Prow via merging PR base commit (3f29bba) and head commit (0d59665).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

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

@rachaprince rachaprince force-pushed the fad-client-version-metrics branch from d1626a0 to 4f6ff89 Compare February 10, 2022 19:55
@@ -210,6 +212,8 @@ private HttpsURLConnection openHttpsUrlConnection(
httpsURLConnection.addRequestProperty(X_ANDROID_PACKAGE_HEADER_KEY, context.getPackageName());
httpsURLConnection.addRequestProperty(
X_ANDROID_CERT_HEADER_KEY, getFingerprintHashForPackage(context));
httpsURLConnection.addRequestProperty(
X_CLIENT_VERSION_HEADER_KEY, String.format("android-sdk/%s", BuildConfig.VERSION_NAME));
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@lfkellogg lfkellogg left a comment

Choose a reason for hiding this comment

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

Awesome!

@@ -69,7 +71,7 @@
}

/**
* Fetches and returns the lastest release for the app that the tester has access to, or null if
* Fetches and returns the latest release for the app that the tester has access to, or null if
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice :)

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 10, 2022

Size Report 1

Affected Products

  • firebase-appdistribution

    TypeBase (3f29bba)Merge (deb5802)Diff
    aar123 kB123 kB+89 B (+0.1%)
    apk (release)1.55 MB1.55 MB+48 B (+0.0%)

Test Logs

Notes

  • Commit (deb5802) is created by Prow via merging PR base commit (3f29bba) and head commit (0d59665).

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

@rachaprince rachaprince merged commit d3aeffc into master Feb 10, 2022
@rachaprince rachaprince deleted the fad-client-version-metrics branch February 10, 2022 20:56
qdpham13 pushed a commit that referenced this pull request Feb 15, 2022
* Add version name to header

* move comment above declaration
jeremyjiang-dev pushed a commit that referenced this pull request Mar 9, 2022
* Add version name to header

* move comment above declaration
@firebase firebase locked and limited conversation to collaborators Mar 13, 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