-
Notifications
You must be signed in to change notification settings - Fork 232
Reproducible build #2911
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
Reproducible build #2911
Conversation
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2911 +/- ##
===========================================
- Coverage 75.23% 75.23% -0.01%
===========================================
Files 1550 1550
Lines 36954 36956 +2
Branches 7152 7152
===========================================
Hits 27803 27803
- Misses 5415 5417 +2
Partials 3736 3736 ☔ View full report in Codecov by Sentry. |
* last digit will always be 0. | ||
*/ | ||
fun Context.getVersionCodeFromManifest(): Long { | ||
return PackageInfoCompat.getLongVersionCode( |
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.
Are we sure it does work for every OS and with R8?
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.
I do not think R8 will remove this from the manifest, since it's used by the system to manage application upgrade.
Type of change
Content
Using BuildConfig.VERSION_CODE break the reproducible build since the value will always end with 0, and should end with a digit depending on the architecture.
Motivation and context
Should fix the issue regarding diff in
versionCode
observed in #1418 (comment)Screenshots / GIFs
NA
Tests
Tested devices
Checklist