-
Notifications
You must be signed in to change notification settings - Fork 624
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
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
d1626a0
to
4f6ff89
Compare
@@ -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)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://developer.android.com/studio/build/gradle-tips#share-custom-fields-and-resource-values-with-your-app-code and Crashlytics usage of this field here:
Line 129 in f104b6a
.setSdkVersion(BuildConfig.VERSION_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
...rc/main/java/com/google/firebase/appdistribution/FirebaseAppDistributionTesterApiClient.java
Show resolved
Hide resolved
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
Size Report 1Affected Products
Test Logs
Notes |
* Add version name to header * move comment above declaration
* Add version name to header * move comment above declaration
Adds version name to the header for adoption metrics
Screenshot from the networks tab of Android Studio:
