-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Installation appVersion shows versionName instead of versionCode #902
Comments
Hmm. Any thoughts on what to do here @flovilmart ? |
Uhm, that’s indeed problematic as it’s been a while. Can we feature flag it so it’s picked at initialization time by the developer? |
I like the feature flag idea. It should be also a feature in the iOS SDK then. |
Good idea |
I suggest tagging this as up for grabs, good first PR. |
I'm going for just correcting the If we introduce a switch for the developer as to what @rogerhu can you take a look at this? |
Issue:
The Android SDK sets the app's
versionName
(e.g.2.0
) instead of itsversionCode
(e.g. build200
) in theInstallation
fieldappVersion
.Expected:
The build number (i.e.
versionCode
) should be set.Rationale:
It makes sense to set the version code, because:
versionCode
being an integer, instead ofversionName
being a String.However, correcting this inconsistency would be a breaking change for existing server logic.
Note: The API request header contains both, the build number and version name.
Affected Code:
Parse-SDK-Android/parse/src/main/java/com/parse/ParseInstallation.java
Line 212 in 0cfc67e
Parse-SDK-Android/parse/src/test/java/com/parse/ParseInstallationTest.java
Line 292 in 0cfc67e
The text was updated successfully, but these errors were encountered: