-
-
Notifications
You must be signed in to change notification settings - Fork 735
fix: java package version always 1.0.0, current parse version not pushed to server #1130
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
Add PARSE_VERSION to all modules BuildConfig. Remove depricated versionCode and versionName from all library modules
Thanks for opening this pull request!
|
Codecov Report
@@ Coverage Diff @@
## master #1130 +/- ##
=========================================
Coverage 65.29% 65.29%
Complexity 2218 2218
=========================================
Files 122 122
Lines 9960 9961 +1
Branches 1337 1337
=========================================
+ Hits 6503 6504 +1
Misses 2945 2945
Partials 512 512
Continue to review full report at Codecov.
|
|
@mtrezza the |
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.
Amazing! I'll do a local dry-run to test it out before commit.
mtrezza
left a comment
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.
Looks good! Tested locally and correctly updated the version in gradle.properties.
## [2.0.3](2.0.2...2.0.3) (2021-10-18) ### Bug Fixes * java package version always 1.0.0, current parse version not pushed to server ([#1130](#1130)) ([3c6496a](3c6496a))
|
🎉 This pull request has been released in version 2.0.3 |
|
It worked perfectly, great job @L3K0V! |

New Pull Request Checklist
Issue Description
The Parse SDK modules ware missing versionName and versionCode configurations.
In latest version of the AGP and Android Studio, Google remove BuildConfig.VERSION_NAME and BuildConfig.VERSION_CODE for a library modules and they try to make it hard using in next releases. I got some information form here.
Related issue: #1121
Closes: #1068
Closes: #1121
Approach
Add
versiontogradle.propertieswhich can be managed using gradle-semantic-release-plugin and pass this version to the BuildConfig class, so the version is available runtime.BuildConfig.PARSE_VERSIONfield was introduced for all modules instead of using and maintain two (BuildConfig.VERSION_NAMEandBuildConfig.VERSION_CODE) which we are not sure if will work next releases.When update current
ParseInstallationwe set the Parse version to the one from the BuildConfig class.TODOs before merging
Add testsAdd changes to documentation (guides, repository pages, in-code descriptions)